node-mole-rpc icon indicating copy to clipboard operation
node-mole-rpc copied to clipboard

Passing in invalid JSON kills the process

Open jottinger opened this issue 2 years ago • 1 comments

If you submit invalid JSON, the parser blows up exits the process.

jottinger avatar Mar 02 '22 21:03 jottinger

There doesn't appear to be any exception handling of JSON.stringify or JSON.parse calls on the client. The server at least catches exceptions on JSON.parse, but it should return a proper JSON-RPC error, instead it silently ignores the message.

justin0mcateer avatar May 24 '24 23:05 justin0mcateer