Closed siliconpi closed 1 year ago
Some weird things are happening!!
I left the terminal alone and I come back after a while to see this: ... Processing emails: 1%|▏ | 1581/126232 [04:34<5:40:16, 6.11it/s]
Okay, but the Google Group is completely empty! Where is the program placing the emails? They are not in my gmail.com either!
Sigh... its just dumping gigabytes of errors into errors.mbox and not actually processing anything.
No helpful error message anywhere. Just raw data of the email being saved there for some reason.
I'm seeing this same issue. errors.mbox contains every message in my mbox file and no errors, but my Google Group is empty. @siliconpi did your messages ever get uploaded to your Google Group? How did you fix/work around this issue?
Looks like the error message is thrown away when logging to the errors file - msg_string
is the e-mail message and error
is the caught exception:
I edited this file (i.e. ~/.local/lib/python3.10/site-packages/mail2gg/__init__.py
) to log the exception and discovered that the issue in my case was a 401 Unauthorized error:
googleapiclient.errors.HttpError: <HttpError 401 when requesting https://groupsmigration.googleapis.com/upload/groups/v1/groups/redacted%40redacted.com/archive?alt=json&uploadType=media returned "Authorization Failed". Details: "[{'message': 'Authorization Failed', 'domain': 'global', 'reason': 'authError', 'location': 'Authorization', 'locationType': 'header'}]">