Forums

urllib3.exceptions.MaxRetryError - API is whitelisted?

I checked here and webservices.amazon.com is whitelisted, so I'm confused as to why I'm getting the below error seeing as it works locally?

urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='webservices.amazon.com', port=443): Max retries exceeded with url: /paapi5/searchitems (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fb18cbfee50>: Failed to establish a new connection: [Errno 111] Connection refused'))

If a whitelisted endpoint returns erros it might be a proxy problem (see: https://help.pythonanywhere.com/pages/403ForbiddenError/) or other issues that we don't have control over.