axel-angel / whatsapp-email-bridge

WhatsApp <-> Email (two-way bridge) in Python (supports IMAP/SMTP)
Other
51 stars 23 forks source link

No handlers could be found for logger "yowsup.layers.axolotl.layer" #19

Open dreamflasher opened 8 years ago

dreamflasher commented 8 years ago

I can't receive any messages. In debug mode I get the error No handlers could be found for logger "yowsup.layers.axolotl.layer" -- could you please include a logger for that to get those error messages too? My assumption is that there is a problem in yowsup, because yowsup gives the error message ERROR:yowsup.layers.axolotl.layer:No valid sessionsBad Mac! on incoming messages.

dreamflasher commented 8 years ago

Proposed fix, include:

import logging
logging.basicConfig()

in WhatsAppEmailForwarder.py

axel-angel commented 8 years ago

Do you see something interesting when receiving and sending?

dreamflasher commented 8 years ago

What I expected ERROR:yowsup.layers.axolotl.layer:No valid sessionsBad Mac! -- so I would have found the issue quicker/I am now certain that this is indeed the problem. https://github.com/tgalal/yowsup/issues/1130

axel-angel commented 8 years ago

I see. Does it works if you follow their fix which is to delete the keys, send a message first, etc?

dreamflasher commented 8 years ago

Awesome! You're great, I've overlooked that they propose to send a message first! Okay looks like that this is something what needs to be fixed in yowsup.

axel-angel commented 8 years ago

If you see something that may be implemented in this project, just (re)open an issue to keep me informed. thanks.

dreamflasher commented 8 years ago

Thank you, well we could implement the workaround here (whenever there is an incoming message which throws that exception, send an empty message to that recipient to establish the encrypted exchange).

Oh actually yes, there would be a great addition to this project here: Report that error (and others) via email, so that one at least knows that something is going wrong. Ideally including the debug payload of yowsup!

axel-angel commented 8 years ago

Oh actually yes, there would be a great addition to this project here: Report that error (and others) via email, so that one at least knows that something is going wrong. Ideally including the debug payload of yowsup!

Actually, it's already the case https://github.com/axel-angel/whatsapp-email-bridge/blob/master/WhatsAppEmailForwarder.py#L239

dreamflasher commented 8 years ago

I think the reason is that No handlers could be found for logger "yowsup.layers.axolotl.layer" is thrown in yowsup and caught in yowsup and just logged in yowsup, and with my above mentioned fix one could at least see the error message, but it wouldn't get out as an email.