Open strangeman opened 2 years ago
./gyb --email torestore@example.com --action restore --service-account --local-folder ./GYB-GMail-Backup-tobackup\@example.com Using backup folder ./GYB-GMail-Backup-tobackup\@example.com Creating label Приоритетные 400: Invalid label name - invalidArgument
--extra-reserved-labels "Приоритетные" don't help, got the same error. It looks like gyb cannot recognize non-ASCII characters in labels.
--extra-reserved-labels "Приоритетные"
When I launched gyb in debug mode, I saw it trying to post Unicode characters but got 400 error from Gmail.
send: b'POST /gmail/v1/users/me/labels?fields=id&prettyPrint=true&alt=json HTTP/1.1\r\nHost: gmail.googleapis.com\r\naccept: application/json\r\naccept-encoding: gzip, deflate\r\nuser-agent: Got Your Back 1.70 | jaylee.us/gyb | Jay Lee - jay0lee@gmail.com | Python 3.10.5 64-bit final | google-api-client 2.51.0 | Linux-3.10.0-862.9.1.el7.x86_64-x86_64-with-glibc2.35 x86_64 (gzip)\r\nx-goog-api-client: gdcl/2.51.0 gl-python/3.10.5\r\ncontent-type: application/json\r\ncont ent-length: 153\r\nauthorization: Bearer XXXXXXXX\r\n\r\n' send: b'{"labelListVisibility": "labelShow", "messageListVisibility": "show", "name": "\\u041f\\u0440\\u0438\\u043e\\u0440\\u0438\\u0442\\u0435\\u0442\\u043d\\u044b\\u0435"}' reply: 'HTTP/1.1 400 Bad Request\r\n'
See #227 for a workaround.
@krystof-k thank you for the link but looks like it's not applicable for backup via service account.
--extra-reserved-labels "Приоритетные"
don't help, got the same error. It looks like gyb cannot recognize non-ASCII characters in labels.When I launched gyb in debug mode, I saw it trying to post Unicode characters but got 400 error from Gmail.