WebClient failed to resolve domain name
See original GitHub issueVersion
- vert.x core: 3.5.3
- vert.x web: 3.5.3
- vertx.web-client : 3.5.3
Context
I encountered an exception which looks suspicious while trying to make a get request to a public API on the internet using its own domain name (api.openweathermap.org).
Do you have a reproducer?
WebClient webClient = WebClient.create(vertx); webClient.get(80, getAbs(WEATHER_API_URL), "/data/2.5/find?q=" + city + "&APPID=" +APP_KEY).send(ar -> { if (ar.succeeded()) { LOG.info(ar.result().body()); } else { LOG.error(ar.cause().getCause()); Arrays.asList(ar.cause().getStackTrace()).forEach(stackTraceElement -> { LOG.error(stackTraceElement); }); } });
- Link to github project/gist
Extra
- Anything that can be relevant :
Using the ip adress is working :p
Issue Analytics
- State:
- Created 5 years ago
- Comments:9 (5 by maintainers)
Top Results From Across the Web
Spring Boot API Gateway Unable to resolve name
But I managed to fix this problem by using the reactor.netty.http.client.HttpClient with DefaultAddressResolverGroup.INSTANCE resolver. So, when ...
Read more >Getting 'The remote name could not be resolved' with WebClient
That error basically means it can not resolve the domain. If you are using a proxy server you should make sure that the...
Read more >Dealing with Spring's reactive WebClient - Kode Krunch
I am currently facing an error while trying to use SSL and OAuth via WebClient. Pretty much the issue mentioned here: https://stackoverflow.com/ ...
Read more >DNS not resolved with WebClient in reactor-netty - 博问 - 博客园
Failed to resolve 'cloud.tencent.com' after 7 queries ; nested exception is java.net.UnknownHostException: Failed to resolve ...
Read more >Re: [vertx:47417] How smart is the web client dns resolver?
Search domain query failed. Original hostname: 'xyz' failed to resolve 'xyz'. Exceeded max queries per resolve 4.
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
@oualidbouh you should be able to use get method. Can we close it?
getAbs URL needs to use http:// or https:// in front of