GAM-team / GAM-team/got-your-back

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

Open
#435 5 comments 0 reactions 0 assignees View on GitHub
Dominant language
Python
Stars
3.1k
Forks
245
PR merge metrics
No merged PRs in 30d

Description

running normal gam call (gyb --email email@example.com --action restore --local-folder GYB-GMail-Backup-email@example.com/ --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.

Contributor guide

No contributing guide indexed for this repository

Research direction

Start by reproducing the normal Gmail restore and mbox restoration commands with GYB 1.74. Inspect labelsToLabelIds at gyb.py line 1632 and its call from main at line 2258 to determine why the 'labels' key is missing. Done means both restoration paths complete without the KeyError or unhandled-exception message.

Written by the indexing model from the issue text.

Assessment

Tech stack
python
Domain
api, cli
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
42/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.