We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 6c26d08 commit 88b5b8dCopy full SHA for 88b5b8d
1 file changed
src/mcp/client/streamable_http.py
@@ -157,7 +157,7 @@ async def _handle_sse_event(
157
is_initialization: bool = False,
158
) -> bool:
159
"""Handle an SSE event, returning True if the response is complete."""
160
- if sse.event == "message":
+ if sse.event in {"message", "error"}:
161
try:
162
message = JSONRPCMessage.model_validate_json(sse.data)
163
logger.debug(f"SSE message: {message}")
0 commit comments