Skip to content

fix(jsonrpc): report malformed input - #230

Open
benbrandt wants to merge 1 commit into
mainfrom
fix/jsonrpc-invalid-input
Open

fix(jsonrpc): report malformed input#230
benbrandt wants to merge 1 commit into
mainfrom
fix/jsonrpc-invalid-input

Conversation

@benbrandt

Copy link
Copy Markdown
Member

Summary

  • return JSON-RPC parse errors for malformed NDJSON and WebSocket frames
  • return invalid-request errors for parsed primitives and malformed calls
  • never reply to malformed response-shaped messages
  • reject a matching pending request when its response envelope is malformed
  • keep transports usable for subsequent valid messages

Testing

  • npm run build
  • npm run lint
  • npm run format:check
  • npm test (836 tests)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant