Good Day everbody!
I have the problem, that I want to set up a Asana Bot from behind a proxy.
But i cant figure out how to enable the asana API with a proxy config. What i tried so far:
s.proxies = {
"http": 'http://usr:pw@proxy',
"https:": 'http://usr:pw@proxy'
}
client = asana.Client(session=s)
token = client.access_token(bot_token)
me = client.users.me()
Isn’t there a Script method that enables the python API to verify itself to the proxy server?
I also tried this:
http_proxy='http://http://usr:pw@proxy'
https_proxy='http://usr:pw@proxy'
python hello_asana.py
In a Terminal
Was due to misconfiguration of my Computer. There was a script active which sets Proxy configurations, needed to uncheck it.
have you tried using any specific proxies that worked well for you???
I noticed this is an old post, but I wanted to chime in. I had a situation where my Python script kept failing because of some old proxy settings I had forgotten about. I ended up digging into my configuration and found a script that was messing things up. Once I disabled it, everything worked smoothly again.
If you’re working with the Asana Python API and want to make sure your requests go through a proxy without issues, mobile proxies could be a solid choice. They offer a bunch of different IPs, which can help with stability and access. It’s worth checking out if you’re looking for more flexibility with your connections.