fix: domain prefix dispatch + application error for service methods #2
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "development_fix_service_error_dispatch"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Summary
Two fixes for the JSON-RPC dispatch layer:
1. Domain prefix for 3-part dispatch (Fixes #3)
rpc_callnow correctly prefixes method names withdomain.for 3-part dispatch (domain.Type.method)2. Application error for service method failures (Fixes #1)
-32601 Method not foundapplication_error()constructor toJsonRpcErrorusing code-32000(JSON-RPC server error range)dispatch_to_handlerto useapplication_errorinstead ofmethod_not_foundforhandle_service_callfailuresTest plan
cargo checkpassesRPC error [-32000]: Authentication failedinstead ofRPC error [-32601]: Method not found1c9f8596a2to0ae498c0d7fix: application error dispatch for service methodsto fix: domain prefix dispatch + application error for service methods