Forums

Max retries exceeded with url: /api/cook (Caused by ProxyError('Cannot connect to proxy.', OSError('Tunnel connection failed: 403 Forbidden')))

Hi I am sending a post request to an API and am getting this error: requests.exceptions.ProxyError: HTTPSConnectionPool(host='carbonara.solopov.dev', port=443): Max retries exceeded with url: /api/cook (Caused by ProxyError('Cannot connect to proxy.', OSError('Tunnel connection failed: 403 Forbidden'))) I've read somewhere it may be related to a DNS whitelist.

could you add "carbonara.solopov.dev" to the white list? Here is the official documentation: https://github.com/petersolopov/carbonara

Thank you

Follow https://help.pythonanywhere.com/pages/RequestingAllowlistAdditions/

Thank you

Glad to help!