Skip to content

SSE GET session crashes on 404 instead of treating it as "SSE not supported" #589

Closed

Description

@devcrocod
  • Target: client
  • Component: sdk-client
  • Scenarios: tools_call, auth/scope-step-up, auth/scope-retry-limit

Root cause

After sending notifications/initialized, StreamableHttpClientTransport.startSseSession opens a GET
SSE stream. The conformance runner returns 404 for GET. The transport only handles 405 (Method Not Allowed) as "server
doesn't support SSE" but does not handle 404. The Ktor SSE client throws
SSEClientException("Expected status code 200 but was 404"), which propagates up and crashes the client during
initialization

Activity

  1. added theissue type on Mar 7, 2026
  2. added a commit that references this issue on Mar 9, 2026
    c7695d3
  3. added a commit that references this issue on Mar 12, 2026
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

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions