Open
Description
Currently, if RPC error occurs, the error message just gives
unexpected end of JSON input
Because the error format provided by the rpc server is as follows:
{
code: -32032,
message: 'Not Enough Balance',
data: 'InsufficientBalance { address: Address(~~), balance: ~, cost: ~ }'
}
unexpected end of JSON input
comes from line 75.
(body
has the error message in byte slice)
Lines 64 to 77 in 6ad3e76
Metadata
Metadata
Assignees
Labels
No labels