Skip to content

RPC: near-parity with JSON-RPC 2.0 specification - #692

Open
redsh4de wants to merge 1 commit into
Cuprate:mainfrom
redsh4de:feat/jsonrpc2-compl
Open

RPC: near-parity with JSON-RPC 2.0 specification#692
redsh4de wants to merge 1 commit into
Cuprate:mainfrom
redsh4de:feat/jsonrpc2-compl

Conversation

@redsh4de

@redsh4de redsh4de commented Aug 24, 2026

Copy link
Copy Markdown
Contributor

What

Brings the RPC closer to compliance with the JSON-RPC 2.0 specification

Not implemented are support for negative ids and batch requests (#694). The latter could be done after the rate limit changes in #685

Why

Correctness

Where

rpc

How

  • Executes notifications without returning a JSON-RPC response
  • Distinguishes missing id from explicit "id": null
  • Returns -32700 Parse error for malformed JSON
  • Returns -32600 Invalid Request for invalid request structures
  • Returns -32601 Method not found for unknown methods
  • Returns -32602 Invalid params for malformed method parameters
  • Returns -32603 Internal error for internal failures
  • Uses "id": null when the request ID cannot be determined

@github-actions github-actions Bot added A-docs Area: Related to documentation. A-rpc Area: Related to RPC. A-books Area: Related to Cuprate's books. A-book-architecture Area: Related to the Architecture book. labels Aug 24, 2026
@redsh4de
redsh4de force-pushed the feat/jsonrpc2-compl branch from 1bce07b to cacc603 Compare August 24, 2026 19:16
@redsh4de
redsh4de force-pushed the feat/jsonrpc2-compl branch from cacc603 to ba7abab Compare August 26, 2026 13:31
@redsh4de
redsh4de marked this pull request as ready for review August 26, 2026 18:26
@redsh4de
redsh4de force-pushed the feat/jsonrpc2-compl branch 2 times, most recently from 5347081 to 98e1f29 Compare August 27, 2026 08:49
@redsh4de
redsh4de force-pushed the feat/jsonrpc2-compl branch from a0f4fa6 to 9aef740 Compare August 27, 2026 09:33
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

A-book-architecture Area: Related to the Architecture book. A-books Area: Related to Cuprate's books. A-docs Area: Related to documentation. A-rpc Area: Related to RPC.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant