working fine until it is tested in android Oreo, but when I hit api request in android Pie, it always go in onError method