WebClient failed to resolve domain name

See original GitHub issue

Version

  • 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:closed
  • Created 5 years ago
  • Comments:9 (5 by maintainers)

github_iconTop GitHub Comments

1reaction
slinkydevelopercommented, Apr 15, 2019

@oualidbouh you should be able to use get method. Can we close it?

1reaction
vietjcommented, Dec 30, 2018

getAbs URL needs to use http:// or https:// in front of

On 29 Dec 2018, at 18:15, oualidbouh notifications@github.com wrote:

Hello,

When using getAbs with a valid URL it throws a VertxException with an invalid URL.

the used URL is api.openweathermap.org/data/2.5/find?q=Lyon&APPID=776921509aa0ed53483c74b4980ccc78

The given URL is valid you can using a postman to get the data.

— You are receiving this because you commented. Reply to this email directly, view it on GitHub https://github.com/vert-x3/vertx-web/issues/1124#issuecomment-450506874, or mute the thread https://github.com/notifications/unsubscribe-auth/AANxiqvP12nxaIn094LzTeyEIsSe_SITks5u96MagaJpZM4Zkl3J.

Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found