-
Notifications
You must be signed in to change notification settings - Fork 286
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: X-GM-LABELS - Causing GmVault to stop sync #198
Comments
@dazbradbury For some reasons, now the Gmail IMAP API can return an empty response. |
@dazbradbury I have implemented a fix that I am testing. I am trying to reproduce the error but it isn't easy in my case ? Will let you know when I have a version available for testing. |
Sounds great - thanks! From my experience it does seem somewhat sporadic, and not actually related to any individual email ID - so can imagine it's hard to reproduce. Just running again now (with the same code base on the same machine) and I can't reproduce - so perhaps Google changed something too? |
I think they did change something because I cannot reproduce it anymore On 8 May 2015 at 12:25, Daz notifications@github.com wrote:
|
Sounds sensible - and thanks for the quick fix and responses! |
Just had the same issue : No matter how many times I try to run it, it seems to get this error on random emails... |
@drcursor It has been fixed in 1.9.1 which has not yet been released. |
I also saw this problem just now, but it went away when I restarted with |
In backing up 100K emails, I've gotten this error 5 times, each time requiring a manual |
@gaubert I suppose this may be fixed by checking the key exists like this? Before #decode the labels that are received as utf7 => unicode
new_data[the_id][imap_utils.GIMAPFetcher.GMAIL_LABELS] = \
imap_utils.decode_labels(new_data[the_id][imap_utils.GIMAPFetcher.GMAIL_LABELS]) After #decode the labels that are received as utf7 => unicode
if imap_utils.GIMAPFetcher.GMAIL_LABELS in new_data[the_id]:
new_data[the_id][imap_utils.GIMAPFetcher.GMAIL_LABELS] = \
imap_utils.decode_labels(new_data[the_id][imap_utils.GIMAPFetcher.GMAIL_LABELS])
else:
new_data[the_id][imap_utils.GIMAPFetcher.GMAIL_LABELS] = [] Lines 486 to 488 in 1ae1613
|
I have the same problem. Is it possible to release at least beta version (macos) I'm not able to get pass this error |
@gaubert any chance to release 1.9.1? |
Love the potential of GmVault, but when trying to run a gmvault sync, we keep getting errors, after syncing anywhere from the first 500-3500 emails that state:
Latest (1.9)
Windows Server (Running on Amazon EC2 Large Instance)
Am using a sync of the format:
The text was updated successfully, but these errors were encountered: