Forums

FAILED TO RETRIEVE TICKERS

Migrated account to EU account but still unable to connect to API. What could be wrong? "requests.exceptions.ConnectionError: HTTPSConnectionPool(host='uvevg-iyaaa-aaaa k-ac27q-cai.raw.ic0.app', port=443): Max retries exceeded with url: /tickers (C aused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x77 169c621090>: Failed to establish a new connection: [Errno 101] Network is unrea chable'))"

That looks like you're using code that is trying to access the Internet directly rather than using the proxy. Free PythonAnywhere accounts can only make requests to sites on our allowlist, and have to make those requests via a proxy. By default, the requests library will pick up the proxy details from the environment, but if you have some code in place to override that behaviour (perhaps to use a different proxy) then it won't work.