Bad Request: Mcp-Session-Id header is required in release mode #1214
Replies: 2 comments
-
|
ok if (!streamableHttpHandler.HttpServerTransportOptions.Stateless)
{
// The GET endpoint is not mapped in Stateless mode since there's no way to send unsolicited messages.
// Resuming streams via GET is currently not supported in Stateless mode.
streamableHttpGroup.MapGet("", streamableHttpHandler.HandleGetRequestAsync)
.WithMetadata(new ProducesResponseTypeMetadata(StatusCodes.Status200OK, contentTypes: ["text/event-stream"]));now wondering why that option is false in release but true in debug |
Beta Was this translation helpful? Give feedback.
0 replies
-
|
this is how sdk do mapping this is how i map so the fastest workaround is by give prefix when calling MapMcp especially in blazor project or just standarize it everywhere still wondering why only happen in release mode, dont think i can find the why for now |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Pre-submission Checklist
Question Category
Your Question
I will create issue if this is real issue
I just deployed mcp server that is running in the project that also use blazor
Suddenly, all my request to blazor and even faveicon get following error
which is weird because its only happen when its deployed, works fine during debugging
This is the first time i deploy mcp server with blazor project
Previous deployment mcp server with minimal api project does not have this issue
Investigating...
Beta Was this translation helpful? Give feedback.
All reactions