MainKronos / Sonarr-AnimeDownloader

It is a Docker Container that uses Sonarr to download anime from AnimeWorld site (ITALY).
https://mainkronos.github.io/Sonarr-AnimeDownloader/
MIT License
43 stars 10 forks source link

Failed to establish a new connection #68

Closed MainKronos closed 2 years ago

MainKronos commented 2 years ago

@berta24 Apro un nuovo issue perchè il problema è diverso (from #31)

finalmente risolto con la 1.8.1 🎉😂

ho aggiornato solo oggi e mi ritrovo questo errore:

GID/UID
-------------------------------------

User uid:    0
User gid:    0
-------------------------------------

WARNING: Retrying (Retry(total=4, connect=None, read=None, redirect=None, status=None)) after connection broken by 'NewConnectionError('<pip._vendor.urllib3.connection.HTTPSConnection object at 0x14f7f8a7ea60>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution')': /simple/animeworld/
WARNING: Retrying (Retry(total=3, connect=None, read=None, redirect=None, status=None)) after connection broken by 'NewConnectionError('<pip._vendor.urllib3.connection.HTTPSConnection object at 0x14f7f8a7ed90>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution')': /simple/animeworld/
WARNING: Retrying (Retry(total=2, connect=None, read=None, redirect=None, status=None)) after connection broken by 'NewConnectionError('<pip._vendor.urllib3.connection.HTTPSConnection object at 0x14f7f8a7ee80>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution')': /simple/animeworld/
WARNING: Retrying (Retry(total=1, connect=None, read=None, redirect=None, status=None)) after connection broken by 'NewConnectionError('<pip._vendor.urllib3.connection.HTTPSConnection object at 0x14f7f8aa91f0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution')': /simple/animeworld/
WARNING: Retrying (Retry(total=0, connect=None, read=None, redirect=None, status=None)) after connection broken by 'NewConnectionError('<pip._vendor.urllib3.connection.HTTPSConnection object at 0x14f7f8aa93a0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution')': /simple/animeworld/
Traceback (most recent call last):
  File "/usr/local/lib/python3.9/site-packages/urllib3/connection.py", line 174, in _new_conn
    conn = connection.create_connection(
  File "/usr/local/lib/python3.9/site-packages/urllib3/util/connection.py", line 72, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/local/lib/python3.9/socket.py", line 953, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/local/lib/python3.9/site-packages/urllib3/connectionpool.py", line 703, in urlopen
    httplib_response = self._make_request(
  File "/usr/local/lib/python3.9/site-packages/urllib3/connectionpool.py", line 386, in _make_request
    self._validate_conn(conn)
  File "/usr/local/lib/python3.9/site-packages/urllib3/connectionpool.py", line 1042, in _validate_conn
    conn.connect()
  File "/usr/local/lib/python3.9/site-packages/urllib3/connection.py", line 358, in connect
    self.sock = conn = self._new_conn()
  File "/usr/local/lib/python3.9/site-packages/urllib3/connection.py", line 186, in _new_conn
    raise NewConnectionError(
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x14754d4678b0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/local/lib/python3.9/site-packages/requests/adapters.py", line 489, in send
    resp = conn.urlopen(
  File "/usr/local/lib/python3.9/site-packages/urllib3/connectionpool.py", line 787, in urlopen
    retries = retries.increment(
  File "/usr/local/lib/python3.9/site-packages/urllib3/util/retry.py", line 592, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.animeworld.tv', port=443): Max retries exceeded with url: / (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x14754d4678b0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/script/main.py", line 12, in <module>
    from anime_downloader import job
  File "/script/anime_downloader/__init__.py", line 4, in <module>
    import animeworld as aw
  File "/usr/local/lib/python3.9/site-packages/animeworld/__init__.py", line 4, in <module>
    from .utility import find
  File "/usr/local/lib/python3.9/site-packages/animeworld/utility.py", line 151, in <module>
    SES = MySession() # sessione contenente Cookie e headers
  File "/usr/local/lib/python3.9/site-packages/animeworld/utility.py", line 23, in __init__
    self.fixCookie()
  File "/usr/local/lib/python3.9/site-packages/animeworld/utility.py", line 30, in fixCookie
    res = self.get("https://www.animeworld.tv")
  File "/usr/local/lib/python3.9/site-packages/requests/sessions.py", line 600, in get
    return self.request("GET", url, **kwargs)
  File "/usr/local/lib/python3.9/site-packages/requests/sessions.py", line 587, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/local/lib/python3.9/site-packages/requests/sessions.py", line 701, in send
    r = adapter.send(request, **kwargs)
  File "/usr/local/lib/python3.9/site-packages/requests/adapters.py", line 565, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.animeworld.tv', port=443): Max retries exceeded with url: / (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x14754d4678b0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

** Press ANY KEY to close this window **

Sinceramente non capisco da cosa sia causato, ho cambiato anche PUID e PGID

MainKronos commented 2 years ago

A occhio mi parrebbe un problema DNS, rieci ad accede a questa pagina dal tuo browser: https://www.animeworld.tv/ ?

berta24 commented 2 years ago

Era un problema temporaneo dell ISP tranquillo, ho nascosto il commento perché dopo mezzoretta è tornato a funzionare...