MatrixAI / js-rpc

Stream-based JSON RPC for JavaScript/TypeScript Applications
https://polykey.com
Apache License 2.0
4 stars 0 forks source link

Throwing of Unserializable Issue Should Serialize to Undefined #36

Closed amydevs closed 1 year ago

amydevs commented 1 year ago

Specification

In the case where a handler throws an unserializable error (bigint, symbol, etc.), the server should return a ErrorRPCRemote error to the client with the cause being undefined. The server should also dispatch an event to tell the user that a recoverable error has happened, and that one of their handlers is possibly erroneous.

Additional context

34

CMCDragonkai commented 1 year ago

Was solved here: https://github.com/MatrixAI/js-rpc/commit/b98a3b07361eff0636571e03e2aa1cf1041f1e22