-
Notifications
You must be signed in to change notification settings - Fork 4.1k
Unable to resolve host "xxx.xxx.61.116:8087": No address associated with hostname #998
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Comments
I'm having the same error but with a different IP address, I'm testing in android 4.3, 4.4 and 5.1 and I'm having the same error with the version 1.4.9. I change the version of the library in my app to 1.4.8 and using the org.apache.http.legacy.jar library and everything works fine. |
I'm compiling the app with gradle and android sdk version 23. |
Simular error with 46.101.219.185 (DigitalOcean Droplet), this IP resolves to Droplet name... |
I have the same problem when i use the version 1.4.9, but 1.4.7 works fine |
Same error but I'm using 80 port, I have many servers using IP addresses directly to access URL resource, I need advice to quick fix this problem under 1.4.9 version, could you help me, thank you |
Scheme() was changed since 4.1 When connecting a server with a IP in the URL and the IP is under another domain that has many IPs, the client may try to connect another IP resolved from that domain. try this case |
@alexdg09 but, how add this librarys, i try to add to my projct but not solved the error. |
@alexdg09 when i add the library 1.4.7 i has a error in HEader class, this class no exists in this version. |
@indiefr you need to work for now with the version 1.4.8 from the android-async-http library. To use this library you can add to your gradle file this line: compile 'com.loopj.android:android-async-http:1.4.8' Also you need to download the jar file org.apache.http.legacy.jar and also add this file to your gradle file, just copy that file to your libs folder and then add this line in your gradle file: compile files('libs/org.apache.http.legacy.jar') The Header class is from that jar file not from android-async-http library. I hope this help you. |
@alexdg09 I did what you prefered, but I still have the same problem. |
Your network cannot resolve the hostname api.forecast.io. Are you connected to the internet? |
got the same problem on 1.4.9, but finally switched to 1.4.8 is ok. |
Lib for classes such as Header[] and BasicClientCookie (deprecated)
Working version Fixed my issue : No address associated with hostname |
Hi all, cz\msebera\android\httpclient\conn\scheme\SchemeSocketFactoryAdaptor.java @OverRide |
* issue #998: update httpclient to fix unable resolve host issue * fix issue #998 update http client to fix unable resolve host issue * update project gradle version * change ConcurrentSkipList to ConcurrentSkipListMap - ConcurrentSkipList is unavailable in java anymore * remove buildToolsVersion and compileOptions to clear gradle warning * remove buildToolsVersion and compileOptions to clear gradle warning * fix productFlavors config to clear gradle error * change withLeakCanaryCompile to withLeakCanaryImplementation to clear gradle warning
This issue should be fixed with PR #1317 merged just now, release containing this fix will be ready on monday |
I'm trying to consume a SOAP service with the version 1.4.9 but I have an error and with the version 1.4.7 works fine.
The error happens when the url has a port associated, with not using the port works well.
example:
This works:
This does not work:
This is my code:
The text was updated successfully, but these errors were encountered: