mtimkovich / plex2letterboxd

Export your watched movies on Plex to the Letterboxd Import Format.
MIT License
71 stars 7 forks source link

Can't Connect? #11

Open paterson37 opened 9 months ago

paterson37 commented 9 months ago

Hi,

Just wondering if you know what I've done wrong here?

`C:\Users\Craig\plex2letterboxd>python -m plex2letterboxd Traceback (most recent call last): File "C:\Users\Craig\AppData\Local\Programs\Python\Python39-32\lib\site-packages\urllib3\connection.py", line 198, in _new_conn sock = connection.create_connection( File "C:\Users\Craig\AppData\Local\Programs\Python\Python39-32\lib\site-packages\urllib3\util\connection.py", line 85, in create_connection raise err File "C:\Users\Craig\AppData\Local\Programs\Python\Python39-32\lib\site-packages\urllib3\util\connection.py", line 73, in create_connection sock.connect(sa) TimeoutError: [WinError 10060] A connection attempt failed because the connected party did not properly respond after a period of time, or established connection failed because connected host has failed to respond

The above exception was the direct cause of the following exception:

Traceback (most recent call last): File "C:\Users\Craig\AppData\Local\Programs\Python\Python39-32\lib\site-packages\urllib3\connectionpool.py", line 793, in urlopen response = self._make_request( File "C:\Users\Craig\AppData\Local\Programs\Python\Python39-32\lib\site-packages\urllib3\connectionpool.py", line 496, in _make_request conn.request( File "C:\Users\Craig\AppData\Local\Programs\Python\Python39-32\lib\site-packages\urllib3\connection.py", line 400, in request self.endheaders() File "C:\Users\Craig\AppData\Local\Programs\Python\Python39-32\lib\http\client.py", line 1250, in endheaders self._send_output(message_body, encode_chunked=encode_chunked) File "C:\Users\Craig\AppData\Local\Programs\Python\Python39-32\lib\http\client.py", line 1010, in _send_output self.send(msg) File "C:\Users\Craig\AppData\Local\Programs\Python\Python39-32\lib\http\client.py", line 950, in send self.connect() File "C:\Users\Craig\AppData\Local\Programs\Python\Python39-32\lib\site-packages\urllib3\connection.py", line 238, in connect self.sock = self._new_conn() File "C:\Users\Craig\AppData\Local\Programs\Python\Python39-32\lib\site-packages\urllib3\connection.py", line 213, in _new_conn raise NewConnectionError( urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPConnection object at 0x03ED2A18>: Failed to establish a new connection: [WinError 10060] A connection attempt failed because the connected party did not properly respond after a period of time, or established connection failed because connected host has failed to respond

The above exception was the direct cause of the following exception:

Traceback (most recent call last): File "C:\Users\Craig\AppData\Local\Programs\Python\Python39-32\lib\site-packages\requests\adapters.py", line 486, in send resp = conn.urlopen( File "C:\Users\Craig\AppData\Local\Programs\Python\Python39-32\lib\site-packages\urllib3\connectionpool.py", line 847, in urlopen retries = retries.increment( File "C:\Users\Craig\AppData\Local\Programs\Python\Python39-32\lib\site-packages\urllib3\util\retry.py", line 515, in increment raise MaxRetryError(_pool, url, reason) from reason # type: ignore[arg-type] urllib3.exceptions.MaxRetryError: HTTPConnectionPool(host='172.18.0.7', port=32400): Max retries exceeded with url: / (Caused by NewConnectionError('<urllib3.connection.HTTPConnection object at 0x03ED2A18>: Failed to establish a new connection: [WinError 10060] A connection attempt failed because the connected party did not properly respond after a period of time, or established connection failed because connected host has failed to respond'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last): File "C:\Users\Craig\AppData\Local\Programs\Python\Python39-32\lib\runpy.py", line 197, in _run_module_as_main return _run_code(code, main_globals, None, File "C:\Users\Craig\AppData\Local\Programs\Python\Python39-32\lib\runpy.py", line 87, in _run_code exec(code, run_globals) File "C:\Users\Craig\plex2letterboxd\plex2letterboxd__main.py", line 4, in plex2letterboxd.main() File "C:\Users\Craig\plex2letterboxd\plex2letterboxd\plex2letterboxd.py", line 67, in main plex = PlexServer(auth['baseurl'], auth['token']) File "C:\Users\Craig\AppData\Local\Programs\Python\Python39-32\lib\site-packages\plexapi\server.py", line 116, in init__ data = self.query(self.key, timeout=self._timeout) File "C:\Users\Craig\AppData\Local\Programs\Python\Python39-32\lib\site-packages\plexapi\server.py", line 759, in query response = method(url, headers=headers, timeout=timeout, kwargs) File "C:\Users\Craig\AppData\Local\Programs\Python\Python39-32\lib\site-packages\requests\sessions.py", line 602, in get return self.request("GET", url, kwargs) File "C:\Users\Craig\AppData\Local\Programs\Python\Python39-32\lib\site-packages\requests\sessions.py", line 589, in request resp = self.send(prep, send_kwargs) File "C:\Users\Craig\AppData\Local\Programs\Python\Python39-32\lib\site-packages\requests\sessions.py", line 703, in send r = adapter.send(request, kwargs) File "C:\Users\Craig\AppData\Local\Programs\Python\Python39-32\lib\site-packages\requests\adapters.py", line 519, in send raise ConnectionError(e, request=request) requests.exceptions.ConnectionError: HTTPConnectionPool(host='172.18.0.7', port=32400): Max retries exceeded with url: / (Caused by NewConnectionError('<urllib3.connection.HTTPConnection object at 0x03ED2A18>: Failed to establish a new connection: [WinError 10060] A connection attempt failed because the connected party did not properly respond after a period of time, or established connection failed because connected host has failed to respond'))

C:\Users\Craig\plex2letterboxd>python -m plex2letterboxd Traceback (most recent call last): File "C:\Users\Craig\AppData\Local\Programs\Python\Python39-32\lib\site-packages\urllib3\connection.py", line 198, in _new_conn sock = connection.create_connection( File "C:\Users\Craig\AppData\Local\Programs\Python\Python39-32\lib\site-packages\urllib3\util\connection.py", line 85, in create_connection raise err File "C:\Users\Craig\AppData\Local\Programs\Python\Python39-32\lib\site-packages\urllib3\util\connection.py", line 73, in create_connection sock.connect(sa) TimeoutError: [WinError 10060] A connection attempt failed because the connected party did not properly respond after a period of time, or established connection failed because connected host has failed to respond

The above exception was the direct cause of the following exception:

Traceback (most recent call last): File "C:\Users\Craig\AppData\Local\Programs\Python\Python39-32\lib\site-packages\urllib3\connectionpool.py", line 793, in urlopen response = self._make_request( File "C:\Users\Craig\AppData\Local\Programs\Python\Python39-32\lib\site-packages\urllib3\connectionpool.py", line 496, in _make_request conn.request( File "C:\Users\Craig\AppData\Local\Programs\Python\Python39-32\lib\site-packages\urllib3\connection.py", line 400, in request self.endheaders() File "C:\Users\Craig\AppData\Local\Programs\Python\Python39-32\lib\http\client.py", line 1250, in endheaders self._send_output(message_body, encode_chunked=encode_chunked) File "C:\Users\Craig\AppData\Local\Programs\Python\Python39-32\lib\http\client.py", line 1010, in _send_output self.send(msg) File "C:\Users\Craig\AppData\Local\Programs\Python\Python39-32\lib\http\client.py", line 950, in send self.connect() File "C:\Users\Craig\AppData\Local\Programs\Python\Python39-32\lib\site-packages\urllib3\connection.py", line 238, in connect self.sock = self._new_conn() File "C:\Users\Craig\AppData\Local\Programs\Python\Python39-32\lib\site-packages\urllib3\connection.py", line 213, in _new_conn raise NewConnectionError( urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPConnection object at 0x04192A18>: Failed to establish a new connection: [WinError 10060] A connection attempt failed because the connected party did not properly respond after a period of time, or established connection failed because connected host has failed to respond

The above exception was the direct cause of the following exception:

Traceback (most recent call last): File "C:\Users\Craig\AppData\Local\Programs\Python\Python39-32\lib\site-packages\requests\adapters.py", line 486, in send resp = conn.urlopen( File "C:\Users\Craig\AppData\Local\Programs\Python\Python39-32\lib\site-packages\urllib3\connectionpool.py", line 847, in urlopen retries = retries.increment( File "C:\Users\Craig\AppData\Local\Programs\Python\Python39-32\lib\site-packages\urllib3\util\retry.py", line 515, in increment raise MaxRetryError(_pool, url, reason) from reason # type: ignore[arg-type] urllib3.exceptions.MaxRetryError: HTTPConnectionPool(host='172.18.0.7', port=32400): Max retries exceeded with url: / (Caused by NewConnectionError('<urllib3.connection.HTTPConnection object at 0x04192A18>: Failed to establish a new connection: [WinError 10060] A connection attempt failed because the connected party did not properly respond after a period of time, or established connection failed because connected host has failed to respond'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last): File "C:\Users\Craig\AppData\Local\Programs\Python\Python39-32\lib\runpy.py", line 197, in _run_module_as_main return _run_code(code, main_globals, None, File "C:\Users\Craig\AppData\Local\Programs\Python\Python39-32\lib\runpy.py", line 87, in _run_code exec(code, run_globals) File "C:\Users\Craig\plex2letterboxd\plex2letterboxd__main.py", line 4, in plex2letterboxd.main() File "C:\Users\Craig\plex2letterboxd\plex2letterboxd\plex2letterboxd.py", line 67, in main plex = PlexServer(auth['baseurl'], auth['token']) File "C:\Users\Craig\AppData\Local\Programs\Python\Python39-32\lib\site-packages\plexapi\server.py", line 116, in init__ data = self.query(self.key, timeout=self._timeout) File "C:\Users\Craig\AppData\Local\Programs\Python\Python39-32\lib\site-packages\plexapi\server.py", line 759, in query response = method(url, headers=headers, timeout=timeout, kwargs) File "C:\Users\Craig\AppData\Local\Programs\Python\Python39-32\lib\site-packages\requests\sessions.py", line 602, in get return self.request("GET", url, kwargs) File "C:\Users\Craig\AppData\Local\Programs\Python\Python39-32\lib\site-packages\requests\sessions.py", line 589, in request resp = self.send(prep, send_kwargs) File "C:\Users\Craig\AppData\Local\Programs\Python\Python39-32\lib\site-packages\requests\sessions.py", line 703, in send r = adapter.send(request, kwargs) File "C:\Users\Craig\AppData\Local\Programs\Python\Python39-32\lib\site-packages\requests\adapters.py", line 519, in send raise ConnectionError(e, request=request) requests.exceptions.ConnectionError: HTTPConnectionPool(host='172.18.0.7', port=32400): Max retries exceeded with url: / (Caused by NewConnectionError('<urllib3.connection.HTTPConnection object at 0x04192A18>: Failed to establish a new connection: [WinError 10060] A connection attempt failed because the connected party did not properly respond after a period of time, or established connection failed because connected host has failed to respond'))`

mtimkovich commented 9 months ago

I'm not sure... I'll need some more information.