I have created and API using python+flask. When is try to hit the api using postman or chrome it works fine and I am able to get to the api.
On the other hand when I try to use python
import requests
requests.get("http://localhost:5050/")
I get 407. I guess that the proxy of the our environment is not allowing me to hit the localhost. But due to LAN settings in IE/Chrome the request went through.
I did try to set proxies , auth in request and now I start getting 502(bad gateway). If I see on the API side I can't see a request come through. What can I do to troubleshoot the same.