Forums

Coming back to an old task and suddenly requests aren't working

It seems like none of my requests are working in my python code anymore and I have no idea why. Did some sort of packaging change? This is happening for all requests

Traceback (most recent call last):
  File "/usr/lib/python3.8/site-packages/urllib3/connection.py", line 158, in _new_conn
    conn = connection.create_connection(
  File "/usr/lib/python3.8/site-packages/urllib3/util/connection.py", line 80, in create_connection
    raise err
  File "/usr/lib/python3.8/site-packages/urllib3/util/connection.py", line 70, in create_connection
    sock.connect(sa)
ConnectionRefusedError: [Errno 111] Connection refused

[formatted by admin]

If you're using some API wrapper, check if it handles ports correctly. See: https://help.pythonanywhere.com/pages/403ForbiddenError/.