Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

getSharedUserEmails throws Plex API Error (Connection Refused) #77

Open
AmansRevenger opened this issue May 13, 2017 · 0 comments
Open

Comments

@AmansRevenger
Copy link

AmansRevenger commented May 13, 2017

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:

2017-05-07 00:00:07,488 - INFO:getSharedUserEmails: response = <Response [201]>
2017-05-07 00:00:07,490 - INFO:getSharedUserEmails: response = {"user":{"id":4855486,"uuid":"XXXXXXXXXXXXXX","email":"XXXXXXXXXX","joined_at":"2015-04-09T22:45:45.000Z","username":"XXXXXXX","title":XXXXXXXXX","thumb":"https://plex.tv/users/XXXXXXXXXXXX/avatar?c=1494108008","authToken":"XXXXXXXXXXXXXXX","authentication_token":"XXXXXXXXXXXXXXXXXX","subscription":{"active":false,"status":"Inactive","plan":null,"features":[]},"roles":{"roles":[]},"entitlements":["ios"],"confirmedAt":"2015-04-09T22:54:08.000Z","forumId":0,"rememberMe":false}}
2017-05-07 00:00:07,490 - INFO:getSharedUserEmails: token = XXXXXXXXXXXXXXXX PLEX TOKEN
2017-05-07 00:00:07,490 - INFO:getSharedUserEmails: url = https://plex.tv/pms/friends/all
2017-05-07 00:00:08,089 - INFO:getSharedUserEmails: response = <Response [200]>
2017-05-07 00:00:08,091 - INFO:getSharedUserEmails: response = <?xml version="1.0" encoding="UTF-8"?>
<MediaContainer friendlyName="myPlex" identifier="com.plexapp.plugins.myplex" machineIdentifier="XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX" totalSize="19" size="19">

EDITED OUT , COLLECTION OF MY USERS

</MediaContainer>

2017-05-07 00:00:08,160 - INFO:getSharedUserEmails: adding email - XXXXXXXXXXXXXXXXXXXX
2017-05-07 00:00:08,160 - INFO:getSharedUserEmails: adding email - XXXXXXXXXXXXXXXXXXXX
2017-05-07 00:00:08,160 - INFO:getSharedUserEmails: adding email - XXXXXXXXXXXXXXXXXXXX
2017-05-07 00:00:08,160 - INFO:getSharedUserEmails: adding email - XXXXXXXXXXXXXXXXXXXX
2017-05-07 00:00:08,160 - INFO:getSharedUserEmails: adding email - XXXXXXXXXXXXXXXXXXXX
....
2017-05-07 00:00:08,162 - INFO:getSharedUserEmails: Returning shared emails

@AmansRevenger AmansRevenger changed the title Shared Users throws error getSharedUserEmails throws Plex API Error (Connection Refused) May 13, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant