Forums

Tunnel connection failed: 403 Forbidden

I got this error on a project. Im trying to use Quicknode api. i don't know if its whitelisted

im a beginner please help....

Error:
Traceback (most recent call last):
  File "/usr/local/lib/python3.10/site-packages/urllib3/connectionpool.py", line 700, in urlopen
    self._prepare_proxy(conn)
  File "/usr/local/lib/python3.10/site-packages/urllib3/connectionpool.py", line 994, in _prepare_proxy
    conn.connect()
  File "/usr/local/lib/python3.10/site-packages/urllib3/connection.py", line 369, in connect
    self._tunnel()
  File "/usr/local/lib/python3.10/http/client.py", line 924, in _tunnel
    raise OSError(f"Tunnel connection failed: {code} {message.strip()}")
OSError: Tunnel connection failed: 403 Forbidden

[edit by admin: formatting]

Yes, that looks like you're trying to access a site that's not on the allowlist for free accounts. If you'd like to get something added to the list, check out this help page.