You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Errors are structured in the same way as the errors you receive from the API, so with the details array, where you need to find the object with "@type": "type.googleapis.com/ttn.lorawan.v3.ErrorDetails" to get TTN error details.
Why do we need this?
Because the errors returned from the backend need to be properly displayed to the user.
What is already there? What do you see now?
We have a screen design ready:
This should cover most cases as it can display: Error Code, Error Name, Error Message.
My only concern would be the state of the header/nav-bar. Depending on the situation it could make sense to have it rendered fully (with links and user info) and in others it might not be possible. I will come up with something here.
What is missing? What do you want to see?
A logic in the console/oauth app that checks for the existence of PAGE_DATA.error and displays the error respectively.
How do you propose to implement this?
We could use the common init component (lib/components/init.js) to take care of this. The component could make the check and pass possible errors to an error view component that would need to be built with styling according to the screen design above.
What can you do yourself and what do you need help with?
This should be pretty straight-forward.
The text was updated successfully, but these errors were encountered:
So from a technical perspective, this is already implemented as defined in the OP. Our outermost error boundary will catch errors and render the error view. I will close this issue and open a new one about static HTML/CSS templates for backend error responses on routes that are not handled by our frontend react apps.
Summary:
As a result of #41, we need a proper error page that will be shown when fatal errors occur that prevent the app from loading. This error page should match the static ones that are rendered by the backend (https://github.com/TheThingsIndustries/lorawan-stack/issues/1315#issuecomment-440804413).
A request
curl -H "Accept: text/html" -XPOST http://localhost:1885/oauth/api/auth/login
results in the following (formatted for readability):Errors are structured in the same way as the errors you receive from the API, so with the
details
array, where you need to find the object with"@type": "type.googleapis.com/ttn.lorawan.v3.ErrorDetails"
to get TTN error details.Why do we need this?
Because the errors returned from the backend need to be properly displayed to the user.
What is already there? What do you see now?
We have a screen design ready:
This should cover most cases as it can display: Error Code, Error Name, Error Message.
My only concern would be the state of the header/nav-bar. Depending on the situation it could make sense to have it rendered fully (with links and user info) and in others it might not be possible. I will come up with something here.
What is missing? What do you want to see?
A logic in the console/oauth app that checks for the existence of
PAGE_DATA.error
and displays the error respectively.How do you propose to implement this?
We could use the common init component (
lib/components/init.js
) to take care of this. The component could make the check and pass possible errors to an error view component that would need to be built with styling according to the screen design above.What can you do yourself and what do you need help with?
This should be pretty straight-forward.
The text was updated successfully, but these errors were encountered: