Forums

Get a 403 Forbidden error even though I have a paid subscription

Hello, I have received this error even though I currently have a paid subscription.

requests.exceptions.ProxyError: HTTPSConnectionPool(host='www.espn.com', port=443): Max retries exceeded with url: /nfl/stats/team/_/table/passing/sort/netYardsPerGame/dir/desc (Caused by ProxyError('Cannot connect to proxy.', OSError('Tunnel connection failed: 403 Forbidden')))

I have destroyed all previous Bash consoles, files, and web apps and restarted after paying for my subscription. Why am I still receiving this error?

You don't need to destroy files or web apps for the upgrade to have effect -- the only thing after an upgrade to a paid plan is needed is to start new Bash consoles and reload the web app.

Regarding the main issue -- is your code working outside of PythonAnywhere? Maybe the service is just blocking requests coming from PythonAnywhere?