Forums

Requests Get Error

Whenever I try "requests.get('https://api.kanye.rest')" locally I have no issues but when I run this on pythonanywhere I get the following error in my logs:

**NO MATCH**
Traceback (most recent call last):
  File "/home/samch/.virtualenvs/env/lib/python3.9/site-packages/requests/adapters.py", line 439, in send
    resp = conn.urlopen(
  File "/home/samch/.virtualenvs/env/lib/python3.9/site-packages/urllib3/connectionpool.py", line 755, in urlopen
    retries = retries.increment(
  File "/home/samch/.virtualenvs/env/lib/python3.9/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='api.kanye.rest', port=443): Max retries exceeded with url: / (Caused by ProxyError('Cannot connect to proxy.', OSError('Tunnel connection failed: 403 Forbidden')))

[edit by admin: formatting]

Free accounts have restricted Internet access -- they can only access sites on our whitelist. If that site is an official documented public API, then send us a link to the API documentation, and we'll see if we can add it to the list.

Hopefully some of the following links are helpful: https://github.com/ajzbc/kanye.rest https://kanye.rest/ https://pypi.org/project/kanye/

it would have to be something on the api.kanye.rest website

I see, that website does not provide any other information other than a quote unfortunately. However, the GitHub page seems to provide documentation, the code, and a license.

We need a connection between the site and the repo.

please add this https://api.song.link under your white-list as I am too facing the error of 403 while sending get request.

Send us a link to the API documentation and we'll consider it for the whitelist.

Exactly same Issue Here!