-
Notifications
You must be signed in to change notification settings - Fork 20
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
Improve error messages on failures #810
base: master
Are you sure you want to change the base?
Conversation
My testing currently is limited to the following:
I am looking for a more comprehensive FreeBSD or pfSense network fault-injection toolkit, to test:
If this doesn't exist we have to implement something ourselves, like saboteur. |
c271b2b
to
47aca93
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I don't think we need to add rather technical error messages to a small Kodi ok dialog when it also states to look at the Kodi log for more information.
I'm not against implementing a network fault-injection toolkit, but personally I think logging error messages suffices because the add-on will fail anyway when network problems occur.
I think we do. Why ask for the user to go and look in the Kodi log if we basically know the problem is: "Connection refused" or "Name or service not found"? These small hints can pinpoint much better what could be the cause, or relate recurring issues. Most users will never go look into the logs when it fails. My plan was actually to translate the specific error in a more user-friendly advice in the future, but we will always need to include the specific error message IMO. PS The practical issue we do have is that an ok-dialog has only 4 visible lines shown, and while it can scroll it looks quite messy if you provide it with e.g. 8 lines of output. |
To be clear, I'm totally okay with providing more detailed user-friendly information in a kodi ok dialog if the message fits 4 visible lines and respects the language choice of the user. In that case we don't need to ask the user to look at the log. |
Well, the hint cannot be translated, but I am not sure it needs to be. This is what people may be looking for in issues, so it gives a tangible item that relates to the problem they are having. And at some point we may have a Wiki page with more elaborate info on what could be the problem. It does fit in 4 lines currently (but depends on the message, luckily the network-related messages are all quite short). Maybe we could discuss with upstream to have less messy ok-dialogs. |
4 visible lines should be enough to show an error message. If a user has selected Dutch as the GUI language, I don't think it's very nice to show a message in English and expect him to understand what it means. Showing an error code that can be reported to the developers is also an option. Showing less info and adding "Please try again later" is also an option to deal with unavoidable network errors in Kodi GUI. Feel free to merge this when you think this is ready. |
@mediaminister So, my preference would definitely be to have more specific error messages where we know the cause of the problem, or at least can pinpoint it to something specific. But it may not be as easy to pinpoint the cause, even for the ones below:
But we can never cover all possible issues, or offer a plausible explanation and resolution, so I prefer the fallback to include a bit more detail when we have it. If errors persist intermittently over a longer period this would make it easier to relate these issues together and give us some better understanding when we have to support these cases. That the specific error is in English is in my opinion not as much a concern than not having it in the first place, even when it looks awkward. |
Yes, in general we should advise to:
|
Another issue I just got. Starting a video from the recent menu (that was not up-to-date) return first this error: followed by this error: followed by this error: And I could repeat it from the same menu. Refreshing the menu fixed this. It would be nice if this was just one error dialog. Here is the log:
Update: Looked into why this was not correctly covered, and I am not sure what is the best way to not have these cascading errors.
We do not check the response immediately after returning from |
I started injecting failures to Kodi and this makes it handle them better.
08ba8f5
to
7b34198
Compare
This prevents the add-on from entering an empty virtual directory when the request could not be handled. We may want to do this for other specific HTTP errors...
7b34198
to
905531c
Compare
I started injecting network failures and this makes it handle some of them better.
This relates to #385
Before::
After: