Replies: 1 comment
-
Hi, can you provide the 'docker-compose.yml' file? |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
When I use
httpx
inside a Docker container that was built with thehttp_proxy
andhttp_proxy
environment variables, I cannot ignore these variables when starting the container via docker-compose.I set the
no_proxy
variable when starting the container so that the container should ignore any proxies it was built with.httpx
still uses those proxies. To solve this I had to settrust_env=False
in myAsyncClient
.Is this expected behaviour? I thought that disabling the proxies in the docker-compose file would automatically tell
httpx
to ignore them when making a request.Beta Was this translation helpful? Give feedback.
All reactions