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

KeyError: 'labels' results in [73196] Failed to execute script 'gyb' due to unhandled exception! #435

Open
larsstempfle opened this issue Sep 5, 2023 · 5 comments

Comments

@larsstempfle
Copy link

running normal gam call (gyb --email [email protected] --action restore --local-folder [email protected]/ --service-account results in the following output:

Traceback (most recent call last):
File "gyb.py", line 2767, in
File "gyb.py", line 2258, in main
File "gyb.py", line 1632, in labelsToLabelIds
KeyError: 'labels'
[73196] Failed to execute script 'gyb' due to unhandled exception!

Same thing happenes with mbox restoration.
I am running Got Your Back 1.74

I tried to comment the line out but to no avail.

@bradbomb
Copy link

bradbomb commented Sep 7, 2023

I have the same error with three different versions 1.62, 1.72, 17.4. I'm on macOS Ventura and trying to restore using service account

@LinU777
Copy link

LinU777 commented Sep 12, 2023

Same error, tried versions 1.74, 1.70, 1.60

@polyevolver54
Copy link

Seeing the same issue

@polyevolver54
Copy link

I can add that it went away on a subsequent run a couple days later. I haven't done anything to test this theory, but in my case the restore is happening milliseconds after the destination user is created with a gam command, and the user is still in part being provisioned inside google.

probably need to test and wait for label creation to work with the new user before running the restore which as one step recreates all the labels in the archive.

perhaps there could be more detailed error messaging/handling in gyb, but i can work around if i'm correct

@Celestica-Edward
Copy link

Also affected with GYB 1.80.


C:\GYB_PROD>gyb --version
Got Your Back 1.80
jaylee.us/gyb
Jay Lee - [email protected]
Python 3.12.1 64-bit final
google-api-client 2.114.0
Windows-2016Server-10.0.14393-SP0 AMD64
Path: C:\GYB_PROD
ConfigPath: C:\GYB_PROD
OpenSSL 3.2.0 23 Nov 2023
gmail.googleapis.com connects using TLSv1.3 TLS_AES_256_GCM_SHA384

C:\GYB_PROD>gyb --service-account --email [email protected] --action restore-mbox --local-folder E:\downloads\[email protected]

Restoring from 25.86gb file E:\downloads\[email protected]\All mail Including Spam and Trash-003.mbox...
Traceback (most recent call last):
  File "gyb.py", line 2817, in <module>
  File "gyb.py", line 2486, in main
  File "gyb.py", line 1633, in labelsToLabelIds
KeyError: 'labels'
[5472] Failed to execute script 'gyb' due to unhandled exception!

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

5 participants