Skip to content

Streamable HTTP endless retry loop #459

@Shapur1234

Description

@Shapur1234

Bug description

When the McpClient with WebClientStreamableHttpTransport is provided a url that does not point to a valid streamable http mcp endpoint, exception io.modelcontextprotocol.spec.McpTransportSessionNotFoundException: Session [missing_session_id] not found on the server is thrown during client initialization, which then leads to initialization being retired... why causes initialization to get stuck in an endless retry loop.

To reproduce:

McpClient.async(
    WebClientStreamableHttpTransport
                                .builder(webClientBuilder)
                                .endpoint("Url to not a streamable http endpoint")
                                .build()
).build().initialize()

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions