Forums

Getting error - heroku api with pythonanywhere

The error message


raise ProxyError(e, request=request)

requests.exceptions.ProxyError: HTTPSConnectionPool(host='myapp.herokuapp.com', port=443): Max retries exceeded with url: / (Caused by ProxyError('Cannot connect to proxy.', OSError('Tunnel connection failed: 403 Forbidden',)))


can you help me to solve this problem? In Local its work perfectly code is


url = 'https://myapp.herokuapp.com/' data = {'data': "data"} data = json.dumps(data) send=requests.post(url, data)


hi there- as free users you can only access a whitelist of sites. See this for more info.

We are happy to add any public api's to the whitelist if you provide us with any api documentation that is hosted on that domain and shows the official api endpoints.