-
Notifications
You must be signed in to change notification settings - Fork 434
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
1.23.0 causes nxdomain error #764
Comments
I have tested with 1.22.0 and same issue. |
Hi, we also have the same problem for v1.22 / v1.23 |
well how can I reproduce? How do you define the ip attached to this host name? on which os? |
I am sorry for the lazy description. I managed to reproduced it in a docker compose. Create a file test.ex Mix.install([{:hackney, "== 1.23.0"}])
:hackney.request(
:get,
"http://rabbitmq:15672/api/vhosts",
[{"Authorization", "Basic Z3Vlc3Q6Z3Vlc3Q="}],
<<>>,
[]
)
|> IO.inspect() docker-compose.yaml services:
rabbitmq:
image: rabbitmq:3.13-management-alpine
ports:
- "5672:5672"
- "15672:15672"
environment:
RABBITMQ_DEFAULT_USER: guest
RABBITMQ_DEFAULT_PASS: guest
elixir:
image: elixir:1.18-otp-26-alpine
depends_on:
- rabbitmq
command: sh -c "elixir /test.ex"
volumes:
- ./test.ex:/test.ex |
This strangely works for me with the provided example above (run on an M1 Mac) The bug sounds like #758 which was fixed (for me) with 1.23.0. |
I have similar issue and it seems to be linked to the fact that docker compose might not be configured to run with IPv6. I was able to reproduce this ( Is there a way to configure hackney not to use IPv6? Just to confirm that this is causing the issue? I'm an Elixir dev, so if there is a way to put something in |
I was able to solve my issue, the fault seems to have been with the configuration of my DNS server. After some digging I found out that on a different network I couldn't reproduce the issue, but it was happening on my home wifi. Looking at hackney code, I tried running It is still strange, because all the other things (like @Kalaww maybe this can help you fix your issue as well |
@sandromehic which os is used inside the docker instance? |
alpine, However, I had the issue even on my host machine, so it looks like it was more related to my entire home network configuration, that to a particular docker setting. When running something like this on my host machine (with both erlang OTP 25 and 27) I would still get the nxdomain error:
|
I can confirm this error also in a project of Elixir we have. |
@alvarodoofinder do you have any logs, setup to share that allows to reproduce the issue? |
@benoitc Yes, but its complicated. Some of members of the team where not suffering this error, one of them even was suffering only in house, not in the office. The problem emerges SOMETIMES when starts locally project, and I can provide this log: In the project the line from
Of course instances ARE started before
Hope it helps! |
I have upgraded hackney from 1.20 to 1.23 and I noticed some of my http requests are failing with
nxdomain
in my gitlab ci job. I am using hackney through tesla lib.Trace
The text was updated successfully, but these errors were encountered: