MatrixAI / Polykey-Network-Dashboard

Polykey Network Dashboard

Home Page:https://mainnet.polykey.com

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

More descriptive error messages for partial failure of API call

amydevs opened this issue · comments

commented

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.

image

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

  1. Make use of ErrorBoundary Suspense components for loading and error states
  2. Provide better messages on the frontend regarding specific in the responses from PKNS
commented

@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).