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

undefined method `[]' for nil:NilClass #42

Closed
dolik-rce opened this issue Jan 26, 2018 · 10 comments
Closed

undefined method `[]' for nil:NilClass #42

dolik-rce opened this issue Jan 26, 2018 · 10 comments
Assignees
Labels

Comments

@dolik-rce
Copy link

Hi,

I have two messages in my inbox, which imap-backup fails to backup, with the message stated in the title. This migt be related to #40, but in my case those are regular messages, not invites.

Also, none of the invites in my Calendar folder are synced, but there is no error message. The gem just dies with exit code 1.

@dolik-rce
Copy link
Author

Here is a slightly annonymized log: https://pastebin.com/raw/UNH7SVkS

@joeyates
Copy link
Owner

Hello, thanks for the bug report.

It looks like the imap gem is failing to parse the message body in those two cases.

Could send me a link (like a secret Gist) to the full content of the messages?
My GMail address is in this gem's metadata.

@joeyates
Copy link
Owner

Thanks for the log dump.

I'm unable to see why those messages are causing problems.

In the meantime, I've released version 1.2.2 with (#48) and better handling of failed server responses.
Could you check if you get a more informative log from that?

@dolik-rce
Copy link
Author

Hi, I have updated to 1.2.2 and updated the gist. Hopefully the traceback will help you to pinpoint what is the problem...

@joeyates
Copy link
Owner

@dolik-rce The Gist is still the original (21/1/2018 with version 1.2.1). Could you post a link to the updated Gist?

@dolik-rce
Copy link
Author

My apologies, I totally forgot about that. I have updated to the 1.2.2 from gem and updated the original gist.

@joeyates
Copy link
Owner

@dolik-rce I'm still seeing the original log here: https://pastebin.com/raw/UNH7SVkS

Have you creted a new pastebin?

@dolik-rce
Copy link
Author

No, I have updated the secret gist. Also, I sent the url to your email again just a minute ago, just to make sure.

@joeyates
Copy link
Owner

@dolik-rce Thanks.

The failing emails have no 'From' field, and that's what's causing the failure.

Earlier today I released 1.2.3 that fixed the failure, and I've just released 1.3.0 that handles one of your cases better as it grabs the 'Sender' field if there is no 'From'.

Please upgrade to 2.3.0 and let me know if the problem is fixed.

@dolik-rce
Copy link
Author

Yes, 1.3.0 works without errors. Thank you for the fix!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants