-
Notifications
You must be signed in to change notification settings - Fork 27
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
room power-levels
should fail gracefully when Synapse not reachable
#164
Comments
I've removed the "good first issue" label because glancing over how stuff is handled, it doesn't seem easy. The easiest thing is adding conditions to check if it's Retries are already handled apparently, just from reading your logs:
It's just that we don't have a nice way of displaying requests errors and complain (I think, could we do fatal logging?), and instead the query function just returns Also should point out that the rest of the codebase has a similar issue with failed requests handling: It doesn't. Here's an output from
If it mentions So some of my ideas with how to proceed with this codebase-wise:
I'm currently not sure. Might think about this later. (Also please don't cut off stacktraces!) |
This seems like the best idea here. A try/except wrapper around "everything" (not sure yet what everything is) or maybe just around the query function? Would that work? Another idea would be to more precisely return what Synapse/requests "experiences". Elsewhere (and I know it's a very basic and maybe not the most sophisticated strategy) I had requests functions like
Again, this is very basic, also it would mean we would have to change every CLI and every API function. But once we had it in place, it might help with "reacting" to other less-fatal errors and work with that. And yes I'm aware of that this is something similar or maybe just a little better as what you point out in "- Continue as-is ....." , but still more control....and we still would have to finally do it everywhere For fatal-only probably putting a "global" wrapper "somewhere" and simply ending sounds easier to implement. |
...and now that you mention typing.....we should talk about that too ;-) |
The text was updated successfully, but these errors were encountered: