I have dockerized a flask app inside a docker container using docker on windows and i'm running the containers in debian wsl2. i need to send requests from this container to an outside api but i get this error:
(Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f19fa4207f0>: Failed to establish a new connection: [Errno -5] No address associated with hostname')
but i can access the website in my browser and i can access it in wsl. and requests to other apis work without any problems. also I'm using the default networking in docker.