You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Commit 44574ad
Browse filesBrowse the repository at this point in the historyBrowse files
fix: align JSONRPCDispatcher error shapes with existing server
Three pinned wire shapes the interaction suite locks in:
- Peer-cancelled requests are answered with ErrorData(code=0,
message="Request cancelled"). Spec says SHOULD NOT respond, but the
existing server always has.
- Unhandled handler exceptions become code=0 (not INTERNAL_ERROR),
message=str(e). Matches Server._handle_request.
- ValidationError becomes the fixed "Invalid request parameters" /
data="" shape rather than leaking the pydantic error text.
All three carry TODO(maxisbey) markers; they're compat with current
behavior, not the intended end state.
0 commit comments