IgnoredAmbience / yahoo-group-archiver

Scrapes and archives a Yahoo groups email archives, photo galleries and file contents using the non-public API
MIT License
93 stars 46 forks source link

401 error getting the calendar causing python to bail. #100

Open WildOne69 opened 4 years ago

WildOne69 commented 4 years ago

MacOS Mojave 10.14.6 Git cloned today.

seeing this in a few different groups im the moderator or owner of:

2019-11-05 17:48:12.148 PST INFO archive_links Written 8 links from /[REDACTED]folder 2019-11-05 17:48:12.149 PST INFO archive_links Fetching links folder '[REDACTED]' (3/4) 2019-11-05 17:48:12.463 PST INFO archive_links Written 3 links from /[REDACTED] folder 2019-11-05 17:48:12.463 PST INFO archive_links Fetching links folder '[REDACTED]' (4/4) 2019-11-05 17:48:12.782 PST INFO archive_links Written 5 links from /[REDACTED] folder Traceback (most recent call last): File "./yahoo.py", line 412, in archive_calendar yga.download_file(tmpUri) # We expect a 403 or 401 here File "/Users/me/yahoo-group-archiver/yahoogroupsapi.py", line 84, in download_file r.raise_for_status() File "/opt/local/Library/Frameworks/Python.framework/Versions/3.5/lib/python3.5/site-packages/requests/models.py", line 940, in raise_for_status raise HTTPError(http_error_msg, response=self) requests.exceptions.HTTPError: 401 Client Error: Unauthorized for url: https://calendar.yahoo.com/ws/v3/users/@@groups_65f7211e-ce48-4d87-a393-a57f72f7d719/calendars/events/?format=json&dtstart=20000101dtend=20000201&wssid=Dummy

During handling of the above exception, another exception occurred:

Traceback (most recent call last): File "./yahoo.py", line 778, in archive_calendar(yga) File "./yahoo.py", line 417, in archive_calendar tmpJson = json.loads(e.response.content)['calendarError'] File "/opt/local/Library/Frameworks/Python.framework/Versions/3.5/lib/python3.5/json/init.py", line 312, in loads s.class.name)) TypeError: the JSON object must be str, not 'bytes' MacBook-Pro:yahoo-group-archiver me$