As the title said, My project is to host a Flask server on pythonanywhere as a file storage, and download files through python requests
module.
Yesterday I found that my requests is frequently blocked by the server with the following error message:
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='~~my web domain~~', port=443): Max retries exceeded with url: '~~endpoint to download file~~' Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x0000024D8BF21100>: Failed to establish a new connection: [WinError 10060]'))
I've filtered away some possible causes to this error:
- SSL verification
- Internet connection
- Correct URL endpoint and parameters
And it left me with Rate limitation
, which I now think is most likely the cause of this problem
(yeah... got rate limit blocked by my own server... kinda ridiculous
So is there any way to disable
- Flask server rate limitation
- PythonAnyWhere Webapp rate limitation
(can't find rate limit option in custom paid plans