Probrlem with getting http response on api 19

0

I have an app which is working with an API (Wunderlist). So, when the app sends http request it doesn't get the response from the server. But the weird thing is that this is true only for devices working on API 19 (tried on several devices). Also, when I'm running the app debug in Android Studio it is getting the response as expected on api 19 device. I'm using retrofit asynchronous request, like:

call.enqueue(new Callback<AccessToken>() {
        @Override
        public void onResponse(Call<AccessToken> call, Response<AccessToken> response) {
            if (response.isSuccessful()) {
                ................................
            } else {
                ................................
            }
        }

        @Override
        public void onFailure(Call<AccessToken> call, Throwable t) {
            ...................................
        }
    });

Also, there are no errors shown in the logcat, just:

817-1297/world.achiever.PlanYourDay D/OkHttp: --> POST https://www.wunderlist.com/oauth/access_token http/1.1
817-1297/world.achiever.PlanYourDay D/OkHttp: Content-Type: application/x-www-form-urlencoded
132-556/? I/FrameworkListener: onDataAvailable get 39 bytes 
132-556/? D/FrameworkListener: dispatchCommand data = (getaddrinfo planyourday ^ 1024 0 1 0 ^)
132-1301/? D/libc-netbsd: default dns: query_ipv6=0, query_ipv4=1
132-1301/? D/libc-netbsd: iface=wlan0, dns0:192.168.1.1
132-1301/? D/libc-netbsd: iface=wlan0, dns1:8.8.8.8
132-1301/? D/libc-netbsd: res_queryN name = planyourday., class = 1, type = 1
132-1301/? D/libc-netbsd: iface=wlan0, dns0:192.168.1.1
132-1301/? D/libc-netbsd: iface=wlan0, dns1:8.8.8.8
817-1297/world.achiever.PlanYourDay D/OkHttp: Content-Length: 131
817-1297/world.achiever.PlanYourDay D/OkHttp: client_id=a47b47006620fc2faf48&client_secret=44b87b9b36df75d3fd5388ced7f5b3f75197da0f377305bda1f920521b02&code=061957597a64fb2b9719
817-1297/world.achiever.PlanYourDay D/OkHttp: --> END POST (131-byte body)
132-556/? I/FrameworkListener: onDataAvailable get 46 bytes 
132-556/? D/FrameworkListener: dispatchCommand data = (getaddrinfo www.wunderlist.com ^ 1024 0 1 0 ^)
132-1302/? D/libc-netbsd: default dns: query_ipv6=0, query_ipv4=1
132-1302/? D/libc-netbsd: res_queryN name = www.wunderlist.com, class = 1, type = 1
132-1302/? D/libc-netbsd: res_queryN name = www.wunderlist.com succeed
132-1302/? D/SocketClient: SocketClient sendDatalocked done: 222
132-1302/? D/SocketClient: SocketClient sendDatalocked done: 
132-1302/? D/SocketClient: SocketClient sendDatalocked done: 
132-1302/? D/SocketClient: SocketClient sendDatalocked done: 
132-1302/? D/SocketClient: SocketClient sendDatalocked done: 
132-1302/? D/SocketClient: SocketClient sendDatalocked done: 
132-1302/? D/SocketClient: SocketClient sendDatalocked done: 
132-1302/? D/SocketClient: SocketClient sendDatalocked done: 
132-1302/? D/SocketClient: SocketClient sendDatalocked done: 
132-1302/? D/SocketClient: SocketClient sendDatalocked done: 
132-1302/? D/SocketClient: SocketClient sendDatalocked done: 
132-1302/? D/SocketClient: SocketClient sendDatalocked done: 
132-1302/? D/SocketClient: SocketClient sendDatalocked done: 
132-1302/? D/SocketClient: SocketClient sendDatalocked done: 
132-1302/? D/SocketClient: SocketClient sendDatalocked done: 
132-1302/? D/SocketClient: SocketClient sendDatalocked done: 
132-1302/? D/SocketClient: SocketClient sendDatalocked done: 
817-1297/world.achiever.PlanYourDay D/libc-netbsd: getaddrinfo: www.wunderlist.com get result from proxy >>
817-1297/world.achiever.PlanYourDay I/System.out: propertyValue:true
817-1297/world.achiever.PlanYourDay I/System.out: [CDS]rx timeout:10000
817-1297/world.achiever.PlanYourDay I/System.out: [socket][0] connection www.wunderlist.com/176.34.185.62:443;LocalPort=39910(10000)
132-1301/? D/libc-netbsd: res_queryN name = planyourday, class = 1, type = 1
132-1301/? D/SocketClient: SocketClient sendDatalocked done: 401
132-1301/? D/SocketClient: SocketClient sendDatalocked done: 
817-1297/world.achiever.PlanYourDay I/System.out: [CDS]connect[www.wunderlist.com/176.34.185.62:443] tm:10
817-1269/world.achiever.PlanYourDay D/libc-netbsd: getaddrinfo: planyourday NO result from proxy 
817-1297/world.achiever.PlanYourDay D/Posix: [Posix_connect Debug]Process world.achiever.PlanYourDay :443 
817-817/world.achiever.PlanYourDay D/WebViewCallback: onReceivedError=http://planyourday/?state=21023c3582340216ad70e891aadb4bc4&code=061957597a64fb2b9719
137-301/? D/SurfaceFlinger: SurfaceFlingerWatchdog:ERROR: open /dev/RT_Monitor failed.
817-817/world.achiever.PlanYourDay D/WebViewCallback: doUpdateVisitedHistory=http://planyourday/?state=21023c3582340216ad70e891aadb4bc4&code=061957597a64fb2b9719 reload=false
817-817/world.achiever.PlanYourDay I/chromium: [INFO:CONSOLE(12)] "Not allowed to load local resource: file:///android_asset/webkit/android-weberror.png", source: data:text/html,chromewebdata (12)
817-817/world.achiever.PlanYourDay D/WebViewCallback: onPageFinished=http://planyourday/?state=21023c3582340216ad70e891aadb4bc4&code=061957597a64fb2b9719
817-817/world.achiever.PlanYourDay I/GraphicBuffer: allocate buffer (w:512 h:320 f:1) handle(0x63a41b90) err(0)
817-817/world.achiever.PlanYourDay A/libc: Fatal signal 11 (SIGSEGV) at 0x00000038 (code=1), thread 817 (ver.PlanYourDay)

Thank you!

android
retrofit
android-4.4-kitkat
asked on Stack Overflow Jan 27, 2018 by userVadim

0 Answers

Nobody has answered this question yet.


User contributions licensed under CC BY-SA 3.0