Repository navigation
fix(multimodal): ignore outputless SSE metadata frames - #285
Merged
Merged
Conversation
added 3 commits
November 3, 2026 12:38
Propagate request IDs through HTTP/SSE, WebSocket, and audio logs so users can correlate failures with service requests. Add regression coverage for header, body, task ID, and unknown fallbacks.
This was referenced Nov 3, 2026
lzsweb
pushed a commit
that referenced
this pull request
Nov 25, 2026
Newer gateways emit successful usage/search/metadata SSE frames without a model output; skip them while still surfacing explicit error frames, in both the legacy 2.x layer and v3 multimodal streaming. Resolve requestId from the body first, then x-request-id / x-dashscope-requestid / x-dashscope-request-id headers, and include it in response-level logs (parse failures, server errors, websocket handshake failures/disconnects/task-failed, ASR/TTS runtime errors, result-no-output). Pre-send, configuration and static utility logs are left unchanged. Ported from dashscope-sdk-java PR #285, without the version bump.
lzsweb
pushed a commit
that referenced
this pull request
Nov 25, 2026
Newer gateways emit successful usage/search/metadata SSE frames without a model output; skip them while still surfacing explicit error frames, in both the legacy 2.x layer and v3 multimodal streaming. Resolve requestId from the body first, then x-request-id / x-dashscope-requestid / x-dashscope-request-id headers, and include it in response-level logs (parse failures, server errors, websocket handshake failures/disconnects/task-failed, ASR/TTS runtime errors, result-no-output). Pre-send, configuration and static utility logs are left unchanged. Ported from dashscope-sdk-java PR #285, without the version bump.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Context
Java SDK 2.x treated every SSE event as a model result. The new gateway may emit successful auxiliary frames without output, which caused misleading
Result no outputERROR logs and null request IDs.Tests
mvn -q -Dtest=TestMultiModalConversation,TestSseErrorHandling,TestHalfDuplexHttpApi testgit diff --check