Asana API Error "Failed to establish a new connection: [Errno 111] Connection refused'"

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'))

I believe the [Errno 111] is indicative of a socket error. Leading me to believe that perhaps the API service went down for a beat ? Or I could be wrong on this.