gauteh / lieer

Fast email-fetching, sending, and two-way tag synchronization between notmuch and GMail
http://lieer.gaute.vetsj.com
Other
555 stars 62 forks source link

Suddenly can't sync due to "Invalid label name" but no idea which label might be causing the problem #284

Open ajmac opened 4 months ago

ajmac commented 4 months ago

I've been using lieer for a few years now and it's generally been great (thank you), but recently I've been unable to sync due to the following error message:

googleapiclient.errors.HttpError: <HttpError 400 when requesting https://gmail.googleapis.com/gmail/v1/users/REDACTED/labels?alt=json returned "Invalid label name". Details: "[{'message': 'Invalid label name', 'domain': 'global', 'reaso
n': 'invalidArgument'}]">

I've checked my notmuch tags using notmuch search --output=tags '*' but nothing looks amiss to me. How can I find which tag is being choked on?

wu0lss4j commented 1 month ago

try running again the sync, pull, or posh, with -v, then -vv and check all 1 to 3 lines exactly before the error, it can be that you have a tag/label that cannot be pushed to gmail