Skip to content

Client fails to deserialize JSON-RPC response without id field #588

Closed

Description

@devcrocod
  • Target: client
  • Component: sdk-client
  • Scenarios: initialize

Root cause

The conformance runner server sends a JSON-RPC response that contains a result field but no id
field. The JSONRPCMessagePolymorphicSerializer classifies it as a JSONRPCResponse, but JSONRPCResponse.id is
non-nullable and has no default, so kotlinx.serialization throws MissingFieldException. The
StreamableHttpClientTransport does not handle this case.

Activity

  1. added theissue type on Mar 7, 2026
  2. added a commit that references this issue on Mar 9, 2026
    d9e82b2
  3. added a commit that references this issue on Mar 12, 2026
  4. added this to the 0.10 milestone on Mar 12, 2026
  5. kpavlov commented on Mar 12, 2026

    @kpavlov
    Contributor

    fixed in #592

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    Projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions