HTTPSConnectionPool Read timed out. (read timeout=30)

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

I have this code:
try:
response = requests.get(url, timeout=30)
except requests.RequestException as e:
logger.info(f"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?
TY

Hi,

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.

Alan