fix(qwen): add User-Agent to OAuth refresh request - #7782
Closed
konsisumer wants to merge 1 commit into
Closed
Conversation
konsisumer
force-pushed
the
fix/qwen-oauth-refresh-user-agent
branch
2 times, most recently
from
April 12, 2026 04:04
3d746ce to
d815aab
Compare
konsisumer
marked this pull request as ready for review
April 12, 2026 04:36
konsisumer
force-pushed
the
fix/qwen-oauth-refresh-user-agent
branch
7 times, most recently
from
April 14, 2026 09:05
5a18d61 to
be0470a
Compare
konsisumer
force-pushed
the
fix/qwen-oauth-refresh-user-agent
branch
from
April 24, 2026 16:22
cbe5559 to
3950b44
Compare
konsisumer
force-pushed
the
fix/qwen-oauth-refresh-user-agent
branch
14 times, most recently
from
April 28, 2026 07:28
eedf6bb to
11d8a19
Compare
konsisumer
force-pushed
the
fix/qwen-oauth-refresh-user-agent
branch
11 times, most recently
from
May 2, 2026 23:22
42193b8 to
4eb6581
Compare
konsisumer
force-pushed
the
fix/qwen-oauth-refresh-user-agent
branch
from
May 3, 2026 03:28
4eb6581 to
f2a6099
Compare
Contributor
Author
|
Closing — on reflection, the diff adds changes to tools/code_execution_tool.py and tests outside the Qwen OAuth scope. If this still seems valuable, please reopen with feedback on what to change. |
This was referenced Jul 29, 2026
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
Fixes #7746
User-Agentheader (QwenCode/0.14.0 (linux; x64)) to the OAuth token refresh POST request. Without this header, Qwen's endpoint may return an empty or non-JSON response, causingresponse.json()to fail withExpecting value: line 1 column 1.qwen_refresh_invalid_jsonerror message to include HTTP status code,Content-Type, and a body preview — making future auth failures much easier to diagnose.Test plan
User-Agentheader is present and the enhanced error message includes diagnostics.