jakewaldron / PlexEmail

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

erro sending mails my.plexapp.com #90

Open carlosmg2 opened 6 years ago

carlosmg2 commented 6 years ago

Today mails didn't go out because of this error:

2018-01-12 13:03:27,868 - INFO:getSharedUserEmails: begin 2018-01-12 13:03:27,868 - INFO:getSharedUserEmails: url = https://my.plexapp.com/users/sign_in.json 2018-01-12 13:03:28,081 - INFO:Starting new HTTPS connection (1): my.plexapp.com 2018-01-12 13:03:28,581 - ERROR:Logging an uncaught exception Traceback (most recent call last): File "C:\Program Files (x86)\Plex\PlexEmail-master\scripts\plexEmail.py", line 1683, in <module> sharedEmails = getSharedUserEmails() File "C:\Program Files (x86)\Plex\PlexEmail-master\scripts\plexEmail.py", line 323, in getSharedUserEmails response = requests.post(url, headers=headers) File "C:\Python27\lib\requests\api.py", line 99, in post return request('post', url, data=data, json=json, **kwargs) File "C:\Python27\lib\requests\api.py", line 49, in request response = session.request(method=method, url=url, **kwargs) File "C:\Python27\lib\requests\sessions.py", line 461, in request resp = self.send(prep, **send_kwargs) File "C:\Python27\lib\requests\sessions.py", line 573, in send r = adapter.send(request, **kwargs) File "C:\Python27\lib\requests\adapters.py", line 431, in send raise SSLError(e, request=request) SSLError: hostname 'my.plexapp.com' doesn't match either of 'plex.tv', 'www.plex.tv'

jakewaldron commented 6 years ago

Hey there, looks like things might have changed on the plex side for authentication. Could you try replacing line 327 in plexEmail.py with this:

url = 'https://plex.tv/users/sign_in.json'

carlosmg2 commented 6 years ago

Yup. Worked nice. Thanks a lot for the fix

El 12 ene. 2018 21:18, "Jake Waldon" notifications@github.com escribió:

Hey there, looks like things might have changed on the plex side for authentication. Could you try replacing line 327 in plexEmail.py with this:

url = 'https://plex.tv/users/sign_in.json'

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub https://github.com/jakewaldron/PlexEmail/issues/90#issuecomment-357332602, or mute the thread https://github.com/notifications/unsubscribe-auth/AFotiISkBv_Z5gdvhUIwEXB8hhIgifqaks5tJ73bgaJpZM4RcNY3 .

Tolagarf commented 6 years ago

Doesn't work for me, now I get this error:

C:\Python27>python c:\tools\plexemail\scripts\plexemail.py File "c:\tools\plexemail\scripts\plexemail.py", line 327 url = 'https://plex.tv/users/sign_in.json' ^ IndentationError: unindent does not match any outer indentation level

Edit: I completely reinstalled PlexEmail and manually added in my info again, edited line 327 in plexEmail.py and now it seems to work, at least with a -t. It's possibly my install somehow got corrupted.