We're using OkHttp (through Ktor) and getting on o...
# android
l
We're using OkHttp (through Ktor) and getting on one of our servers an
UnknownHostException
caused by
android.system.GaiException: android_getaddrinfo failed: EAI_NODATA (No address associated with hostname)
. However the same URL opens without problems on the same mobile device in Chrome browser. Also it's independent if I'm in the mobile network or WiFi. Also running adb shell ping on this URL gets an unknown host.
not kotlin but kotlin colored 4
h
You should first verify you are using the same dns servers. Esp Chrome might have Google's 8.8.8.8 hard coded.
thank you color 1
c
Image from iOS.jpg
And cross posting to multiple channels is against the guidelines and considered spamming.
l
Yes, but the other communities are unfortunately not very active.
Sorry for spamming
g
Enable internet permission in your manifest
l
It is enabled
Look like it's a bug in Android: https://github.com/square/okhttp/issues/6903
c
late to the game here, but I always use https://www.ssllabs.com/ssltest/ any time i get some ssl issues and it's always eye opening because it'll tell me what versions of android might have issues with my servers cert setup, etc.
thank you color 1