-
Notifications
You must be signed in to change notification settings - Fork 119
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
Remote closing connection leads to unhandled exceptions in _sync #278
Comments
I am using the same client SDK : matrix-client (0.3.2) Exception thrown during sync
|
I am using on_exception handler in order to just reconnect in case of any exception happens, but this one seems to not be captured at all:
|
i am struggeling with the same exception, any way to fix it? |
I don't think so. This SDK is kind of abandoned. I have switched to matrix-nio and it works much better. |
@Artiom-M thanks for the heads-up, i am currently using https://gitlab.com/gibberfish/python-matrixbot and i was not planning to write my own bot as of right now :) |
I catch same issue(( How solve it? Who know? |
I just wanted to point out, that without an error callback, the current implementation of having listen_forever in a thread created by the library can lead to unhandled exceptions that cannot be intercepted.
Following traceback sometimes occurs during running my currently developed bridge software, which atm. lets matrix clients run with start_listener_thread() - it happens very occasionally. I only get a real palpable error later, when i try to send with one of those clients - so until then it does not get noticed. i can also provide more information, but i think this is a more general issue.
I also should mention, my client was connected via https externally
I am of course rewriting it to handle threading on my own anyway so it is not an issue for me i hope in the future - however documentation should probably point out problems like this to the user, so he can prepare or set a general exception handler, and maybe if you keep a "simple we do the threading" solution, an exception callback for the thread would also be a solution.
from pip:
used package: matrix-client==0.3.2
the error logged:
matrix_client.client [ERROR]: Exception thrown during sync
the traceback:
The text was updated successfully, but these errors were encountered: