From my pythonAnywhere app I send a get request to a external webserver and in the console i get following error message, see below. Sending the same request in my mozilla forefox webbrowser I get a JSON response. Can you add the url to your pythonAnywhere white-list or do I need a paid account? Mayn thanks for your help. Fred59
Traceback (most recent call last):
File "/home/Fred59status/mysite/flask_app.py", line 41, in <module>
response_status = requests.get(urlAPI + order_id) # raise OSError("Tunnel connection failed: %d %s" % (code, OSError: Tunnel connection failed: 403 Forbidden
File "/usr/lib/python3.8/site-packages/requests/api.py", line 75, in get
return request('get', url, params=params, kwargs)
File "/usr/lib/python3.8/site-packages/requests/api.py", line 60, in request
return session.request(method=method, url=url, kwargs)
File "/usr/lib/python3.8/site-packages/requests/sessions.py", line 533, in request
resp = self.send(prep, send_kwargs)
File "/usr/lib/python3.8/site-packages/requests/sessions.py", line 646, in send
r = adapter.send(request, kwargs)
File "/usr/lib/python3.8/site-packages/requests/adapters.py", line 510, in send
raise ProxyError(e, request=request)
requests.exceptions.ProxyError: HTTPSConnectionPool(host='www.vitaland.ch', port=443): Max retries exceeded with url: /scripts/get_order_data.php?api_key=XXXXXXXXXXXXXXXX
&order_id=200496459 (Caused by ProxyError('Cannot connect to proxy.', OSError('Tunnel connection failed: 403 Forbidden')))