-
Notifications
You must be signed in to change notification settings - Fork 2.2k
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
Couldn't resolve host name #1884
Comments
@azchatlanin sorry for the late replay. Could you show me the smallest example (server code and client code, and Dockerfile files for each, and docker compose yaml) to reproduce this problem? Then, I'll take a look at it. Thanks! |
@azchatlanin I made to test code to reproduce it on my machine, but I am not able. You can test in [this branch] with the following command. $ docker compose -f docker-compose-issue1884.yml up
...
[+] Running 1/0
✔ Container cpp-httplib-client-1 Created 0.0s
Attaching to client-1
client-1 | ### cpp-httplib client test...
client-1 | Could not establish connection (2)
client-1 exited with code 0 I'll close it for now since I am not able to reproduce it. Thanks! |
There are two docker containers. Both are on the same network.
When I make a post request from the first to the second, everything is fine. But if the second container is disabled, the first one crashed during the execution of the post request. (exited with code 0)
When I do the same thing, but using curl. curl throw an exception:
I would like to be able to intercept this exception, and not completely crushed the docker.
The text was updated successfully, but these errors were encountered: