Skip to content

fix: reject empty JSON-RPC batch with Invalid Request (-32600) - #6

Open
VedantMadane wants to merge 1 commit into
AgentPostmortem:mainfrom
VedantMadane:fix/issue-4
Open

fix: reject empty JSON-RPC batch with Invalid Request (-32600)#6
VedantMadane wants to merge 1 commit into
AgentPostmortem:mainfrom
VedantMadane:fix/issue-4

Conversation

@VedantMadane

Copy link
Copy Markdown

Summary

fix: reject empty JSON-RPC batch with Invalid Request (-32600)

Changes

  • A body of [] is invalid per JSON-RPC 2.0 and must not return HTTP 202.
  • Return error code -32600 before dispatching an empty batch.

Fixes #4

- A body of [] is invalid per JSON-RPC 2.0 and must not return HTTP 202.
- Return error code -32600 before dispatching an empty batch.

Fixes AgentPostmortem#4

Signed-off-by: Vedant Madane <6527493+VedantMadane@users.noreply.github.com>
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.

Return Invalid Request for an empty JSON-RPC batch

1 participant