filecoin-saturn / L1-node

Filecoin Saturn L1 Node • The edge cache layer of Filecoin's decentralized CDN 🪐
Other
140 stars 50 forks source link

User-friendly error message for a new node, not `SyntaxError Unexpected token < in JSON at position 0` #385

Closed Reiers closed 1 year ago

Reiers commented 1 year ago

During the initial registration process, users are encountering an error message that says,

registration Failed initial registration: SyntaxError Unexpected token < in JSON at position 0

It seems that this error is an HTML formatted error response that the system is trying to parse as JSON.

In my opinion there's a need for a more intuitive and user-friendly error message while we're waiting for a new node to register.

This error is reported frequently, and it would be beneficial to improve the user experience by providing a clearer message or handling this error more gracefully.