Hi,
I am using the Asana API Python module to test an automated workflow. My python script will call the Asana API each day, firstly creating an authenticated session then using the create task method to post a task to Asana.
However, on some days, my script logs this error:
“Failed to establish a new connection: [Errno 111] Connection refused’”
This does not happen often, maybe once in 1-2 weeks of testing. I was wondering what could be the cause for this, as I don’t think it’s a rate limiting issue as my script is operating way below the threshold.
The primary concern is that unforeseen failures can disrupt an automated workflow, no matter how dispersed/infrequent. Would you be able to help me in understanding the underlying cause for this error, thanks a lot.
Full Error in Python:
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='app.asana.com', port=443): Max retries exceeded with url: /api/1.0/tasks (Caused by NewConnectionError('urllib3.connection.HTTPSConnection: Failed to establish a new connection: [Errno 111] Connection refused'))