HTTPSConnectionPool Read timed out. (read timeout=30)

I’m working with python/flask on render gunicorn.

I have this code:
response = requests.get(url, timeout=30)
except requests.RequestException as e:"Error: {e}")

If I run this from my local pc targeting url on render it works.
If I run from render targeting the same url, I get timeout error.

I raise timeout without success.
I try https and http but same error.

Is there something that block requests.get inside render?


Is the URL on Render using free services? They will spin down with inactivity and often take longer that 30 seconds to spin up on the next request.


This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.