Open dreamflasher opened 8 years ago
Proposed fix, include:
import logging
logging.basicConfig()
in WhatsAppEmailForwarder.py
Do you see something interesting when receiving and sending?
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
I see. Does it works if you follow their fix which is to delete the keys, send a message first, etc?
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.
If you see something that may be implemented in this project, just (re)open an issue to keep me informed. thanks.
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!
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
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.
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 messageERROR:yowsup.layers.axolotl.layer:No valid sessionsBad Mac!
on incoming messages.