Dear PythonAnywhere,
I have this app on the domain: http://r3ap3rpy.pythonanywhere.com/udemy
It tries to pull information from the API of udemy based on my client ID and client SECRET, it works on my test PC. But when I try to push it on the pythonanywhere it fails.
Maybe it needs some whitelisting if possible? I saw other forum posts which indicated the same type of error.
This is an error I get.
Start of ERROR
2018-12-10 09:47:58,158: requests.exceptions.ProxyError: HTTPSConnectionPool(host='www.udemy.com', port=443): Max retries exceeded with url: /api-2.0/courses/?search=Szab%C3%B3%20D%C3%A1niel%20Ern%C5%91 (Caused by ProxyError('Cannot connect to proxy.', OSError('Tunnel connection failed: 403 Forbidden',)))
2018-12-10 09:50:04,915: [2018-12-10 09:50:04,902] ERROR in app: Exception on /udemy [GET]
2018-12-10 09:50:04,915: Traceback (most recent call last):
2018-12-10 09:50:04,915: File "/home/r3ap3rpy/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 594, in urlopen
2018-12-10 09:50:04,916: self._prepare_proxy(conn)
2018-12-10 09:50:04,916: File "/home/r3ap3rpy/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 815, in _prepare_proxy
2018-12-10 09:50:04,916: conn.connect()
2018-12-10 09:50:04,916: File "/home/r3ap3rpy/.local/lib/python3.6/site-packages/urllib3/connection.py", line 324, in connect
2018-12-10 09:50:04,916: self._tunnel()
2018-12-10 09:50:04,916: File "/usr/lib/python3.6/http/client.py", line 919, in _tunnel
2018-12-10 09:50:04,916: message.strip()))
2018-12-10 09:50:04,916: OSError: Tunnel connection failed: 403 Forbidden
END OF ERRROR
Can you please help?
Cheers, Daniel
[edit by admin: formatting]