More descriptive error messages for partial failure of API call
amydevs opened this issue · comments
Specification
The PKNS is going to be able to return partial failures regarding the RPC responses of particular nodes. We want to be able to provide more descriptive messages for these errors on the frontend.
The current error messages will need to be replaced depending on whether:
- PKNS backend is able to connect to the Polykey nodes
- RPC call timed out
- The RPC method doesn't exist on the Polykey agent
Additional context
PKND issue: https://gitlab.com/MatrixAI/Engineering/Polykey/Polykey-Network-Status/-/issues/5
Tasks
- Make use of ErrorBoundary Suspense components for loading and error states
- Provide better messages on the frontend regarding specific in the responses from PKNS
@faithveloro09 Roger told me that Polykey-Network-Dashboard deserves a redesign. He mainly talked in particular about the current error messages and how they are displayed in the current site. (screenshot in issue description).