This script aggregates all new TV, movie and music releases for the past configured time then optionally writes to your web directory and sends out an email.
206
stars
32
forks
source link
getSharedUserEmails throws Plex API Error (Connection Refused) #77
2017-05-14 00:49:02,631 - INFO:getSharedUserEmails: begin 2017-05-14 00:49:02,631 - INFO:getSharedUserEmails: url = https://my.plexapp.com/users/sign_in.json 2017-05-14 00:49:02,671 - ERROR:Logging an uncaught exception Traceback (most recent call last): File "/opt/PlexEmail/scripts/plexEmail.py", line 1718, in <module> sharedEmails = getSharedUserEmails() File "/opt/PlexEmail/scripts/plexEmail.py", line 332, in getSharedUserEmails response = requests.post(url, headers=headers) File "/usr/local/lib/python2.7/dist-packages/requests/api.py", line 110, in post return request('post', url, data=data, json=json, **kwargs) File "/usr/local/lib/python2.7/dist-packages/requests/api.py", line 56, in request return session.request(method=method, url=url, **kwargs) File "/usr/local/lib/python2.7/dist-packages/requests/sessions.py", line 488, in request resp = self.send(prep, **send_kwargs) File "/usr/local/lib/python2.7/dist-packages/requests/sessions.py", line 609, in send r = adapter.send(request, **kwargs) File "/usr/local/lib/python2.7/dist-packages/requests/adapters.py", line 487, in send raise ConnectionError(e, request=request) ConnectionError: HTTPSConnectionPool(host='my.plexapp.com', port=443): Max retries exceeded with url: /users/sign_in.json (Caused by NewConnectionError('<requests.packages.urllib3.connection.VerifiedHTTPSConnection object at 0x7f2beae448d0>: Failed to establish a new connection: [Errno 111] Connection refused',))
I have verified that I use the correct login data for Plex , but PlexEmail fails to connect to the PlexAPI , last week it worked just fine. Everything else also works when I add the emails manually so its only not working when it tries to getsharedUserEmails.
2017-05-14 00:49:02,631 - INFO:getSharedUserEmails: begin 2017-05-14 00:49:02,631 - INFO:getSharedUserEmails: url = https://my.plexapp.com/users/sign_in.json 2017-05-14 00:49:02,671 - ERROR:Logging an uncaught exception Traceback (most recent call last): File "/opt/PlexEmail/scripts/plexEmail.py", line 1718, in <module> sharedEmails = getSharedUserEmails() File "/opt/PlexEmail/scripts/plexEmail.py", line 332, in getSharedUserEmails response = requests.post(url, headers=headers) File "/usr/local/lib/python2.7/dist-packages/requests/api.py", line 110, in post return request('post', url, data=data, json=json, **kwargs) File "/usr/local/lib/python2.7/dist-packages/requests/api.py", line 56, in request return session.request(method=method, url=url, **kwargs) File "/usr/local/lib/python2.7/dist-packages/requests/sessions.py", line 488, in request resp = self.send(prep, **send_kwargs) File "/usr/local/lib/python2.7/dist-packages/requests/sessions.py", line 609, in send r = adapter.send(request, **kwargs) File "/usr/local/lib/python2.7/dist-packages/requests/adapters.py", line 487, in send raise ConnectionError(e, request=request) ConnectionError: HTTPSConnectionPool(host='my.plexapp.com', port=443): Max retries exceeded with url: /users/sign_in.json (Caused by NewConnectionError('<requests.packages.urllib3.connection.VerifiedHTTPSConnection object at 0x7f2beae448d0>: Failed to establish a new connection: [Errno 111] Connection refused',))
I have verified that I use the correct login data for Plex , but PlexEmail fails to connect to the PlexAPI , last week it worked just fine. Everything else also works when I add the emails manually so its only not working when it tries to getsharedUserEmails.
Here is the censored response from last week: