Skip to content

fix: return -32600 for non-object JSON-RPC bodies - #15

Merged
royalpinto007 merged 1 commit into
AgentPostmortem:mainfrom
4studiolabs:treino/bk-9
Sep 6, 2026
Merged

fix: return -32600 for non-object JSON-RPC bodies#15
royalpinto007 merged 1 commit into
AgentPostmortem:mainfrom
4studiolabs:treino/bk-9

Conversation

@4studiolabs

Copy link
Copy Markdown
Contributor

Closes #9. Failing test first (null, [], plus string/number/boolean primitives), then object check after parse returning -32600 Invalid Request with id null. Verified: npm test 24 pass / 0 fail, npm run typecheck clean.

@royalpinto007
royalpinto007 merged commit 08298d5 into AgentPostmortem:main Sep 6, 2026
@4studiolabs
4studiolabs deleted the treino/bk-9 branch September 6, 2026 20:06
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.

Non-object JSON-RPC bodies crash or get the wrong error code

2 participants