Open vgrichina opened 4 years ago
@vgrichina @marcinbodnar nearprotocol/nearcore#1839 is now merged
@kcole16 it's not live yet.
@vgrichina Re: your comments on Notion
I think it's counterproductive to list all possible errors. Instead it makes sense to start from what user can do in case of failure and distinguish recoverable / unrecoverable errors for given action.
How about determining the potential error states for these three categories, and what the user should do for each (as opposed to each action)?
Adding more detail to the above:
Thoughts? @vgrichina @Patrick1904 @marcinbodnar @corwinharrell
I gather some possible situations that are not handled, regarding user experience:
Create Account:
Protect your Account:
Send Money:
Login:
contract_id
is correct, but we should also check if it's in URL / Session Storage (maybe also checking other necessary parameters):
https://wallet.nearprotocol.com/loginReset Account:
No network:
@kcole16 if rpc times out it is better to first check if the transaction is still valid to avoid sending double the amount of tokens for example.
I'm curious what is the status here?
I understand there are unstructured errors from nearcore, but for structured errors that are coming from runtime - can we show them to the user?
Because we still just showing "username is taken" even when contract for linkdrop has failed for example.
@ilblackdragon this is largely one by one implementation for different part of wallet. Some errors have specific handling, some still don't.
Need to do fine-grained error handling once https://github.com/nearprotocol/nearcore/issues/1839 lands.