-
Notifications
You must be signed in to change notification settings - Fork 4
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
Handle HTTP errors. #130
Comments
@PhotoNomad0 please add the error table here. |
HTTP Error Codes (see https://developer.mozilla.org/en-US/docs/Web/HTTP/Status for reference):
Notes: |
Notes: Modules to update:
|
Note: gitea-react-toolkit responds to communication errors by doing a check to see if server is online (using checkIfServerOnline):
We can make use of checkIfServerOnline() in gateway-edit app. |
GatewayEdit - Network access to convert tasks:
|
@birchamp , @cckozie , @elsylambert - Need some feedback on UI design for the Network error Prompt. This is a quick mock up using defaults. It is drag-able. How should it look? |
@PhotoNomad0 I really like it. Can you add a button labeled 'close' to the lower right corner and move the feedback button over to the left of the close button? |
@PhotoNomad0 From me: |
@birchamp , @cckozie , @elsylambert - Does this look better? |
@PhotoNomad0 @birchamp @elsylambert |
Looks good. Go ahead and switch the buttons but leave the colors the same. |
@birchamp , @cckozie , @elsylambert - OK, swapped buttons and added a bit of vertical spacing per @mannycolon 's suggestion. Note that for the final implementation the send feedback button will only be shown if we can connect to server (see issue description). |
I like it:) |
@PhotoNomad0 Looks really good. I assume the cancel button will be right-aligned when the 'send feedback' is hidden. |
@birchamp , @cckozie , @elsylambert - When the app starts up seems to be a special case when there is a network error validating their user token. If the user just clicks cancel, they cannot really do anything. Wondering if we should add a retry button which would reload the page such as: |
@birchamp , @cckozie , @elsylambert - the only time this would show up for the user is when the internet is up but DCS is not responding. Since if their network was down or the internet was not functioning, the app would not launch. |
@PhotoNomad0 yes a retry makes sense, but in this case do we want the Retry to be the default? In other words should you make the retry blue? |
@birchamp @cckozie @elsylambert @mannycolon In after party we decided that for the resource cards, on network error we will display a single popup (even though there are multiple cards having problems). |
@birchamp @cckozie @elsylambert @mannycolon Just be aware that clicking retry before networking is fixed will cause the browser to show an error such as: This is because the app itself cannot be reloaded. Perhaps we should add instructions to the end of the message when the retry button is displayed. Something like "Correct the network issue and then Retry."? |
Notes:
|
@cckozie @elsylambert This is in v0.9.0 build abbbdd5 |
v0.9.0 build abbbdd5
After 30 (or sometimes 60) seconds this message is displayed After another 30 seconds this message is displayed: If the internet connection is reestablished and the user clicks the Retry button, the Login screen is presented. On Macbook and Firefox, the results are similar, but the last message is different |
When the connection is lost while user is on the Project page and user tries to navigate the verses from the top navigation, the Network connection error message is shown, which is fine, but when the Cancel button is clicked, it is stuck cause the app tries to load the previous page but fails and the error message is shown again. Please see the video for more clarity: |
@cckozie I am not seeing what you are seeing. When you say disconnect from internet, are you disconnecting your ethernet or wifi? Or are you disconnecting your cable modem? FYI - what I saw reproducing your steps (disconnecting the WIFI):
|
@cckozie On Firefox I see a very long delay before seeing the above popup. Likely because the page is already cached. If I clear the firefox webpage cache, it while take me to a white page with error message that page could not be loaded. |
@cckozie I am seeing an incorrect error when I disable the WAN connection in the router. It is showing your first error message, and then after a long delay replacing with the correct error message. Looks like the text in red is showing the older message until the network checking times out. Taking a look into how to improved that. |
@cckozie @elsylambert @birchamp - I'm thinking of adding a timeout when checking that DCS is responding. Does 5 seconds sound good enough? It's a difficult balance since you don't want to set the wait too low or you will get too many annoying popups on a slow connection. But waiting for 10 seconds will seem like an eternity to the user. |
In standup it was decided to set timeout to 5 seconds the first time, and maybe 10 seconds on retry. |
@PhotoNomad0 - Just to clarify, when I say disconnect from Internet, that is disconnecting the router from the cable modem. |
@cckozie @elsylambert Fixes for long networking timeouts are here: https://develop--gateway-edit.netlify.app/, v1.0.0 build b334dd8 |
Wrote up my observation in #229- when user tries to close the network error modal in the Project page, the app seems to be stuck. |
v0.9.0 build b6be351
|
1.0.0 build 1c04778. |
Issue:
Users need to be informed of network errors that will cause problems with the app. The app needs to handle network issues gracefully.
4 categories of issues should be distinguished for the user:
DoD:
HTTP errors result in one of the 4 responses above.
Details:
From tC: translationCore has encountered an unknown communications error. If this problem continues, please send "User Feedback" which is on option on the "Actions" button.
The text was updated successfully, but these errors were encountered: