Anyone know why "socket.py" give an error with "create_connection"?

So in the log I just got:

  File "/usr/local/lib/python3.10/socket.py", line 845, in create_connection
    raise err
  File "/usr/local/lib/python3.10/socket.py", line 833, in create_connection
    sock.connect(sa)
TimeoutError: timed out

Any ideas? or is this by design?