-
Notifications
You must be signed in to change notification settings - Fork 1.1k
Body unusable auth error #11550
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merged
petebacondarwin
merged 2 commits into
cloudflare:main
from
hiendv:body-unusable-auth-error
Dec 11, 2025
Merged
Body unusable auth error #11550
petebacondarwin
merged 2 commits into
cloudflare:main
from
hiendv:body-unusable-auth-error
Dec 11, 2025
Conversation
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
🦋 Changeset detectedLatest commit: d71b47a The changes in this PR will be included in the next version bump. Not sure what this means? Click here to learn what changesets are. Click here if you're a maintainer who wants to add another changeset to this PR |
create-cloudflare
@cloudflare/kv-asset-handler
miniflare
@cloudflare/pages-shared
@cloudflare/unenv-preset
@cloudflare/vite-plugin
@cloudflare/vitest-pool-workers
@cloudflare/workers-editor-shared
@cloudflare/workers-utils
wrangler
commit: |
petebacondarwin
approved these changes
Dec 11, 2025
7f2e897 to
d71b47a
Compare
Contributor
|
The original PR that introduced this bug also did not provide tests |
Merged
petebacondarwin
added a commit
that referenced
this pull request
Dec 11, 2025
* fix(wrangler): remove fetchAuthToken's early response.text() for logging * chore: add changeset --------- Co-authored-by: hiendv <[email protected]>
dario-piotrowicz
pushed a commit
that referenced
this pull request
Dec 11, 2025
* fix(wrangler): remove fetchAuthToken's early response.text() for logging * chore: add changeset
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.
We merged #11181 but forgot to remove some legacy code which read the response.text() for logging. Resulting in this kind of error when
getJSONFromResponsetries to parse themAn example from another user, although the issue is not really related but the error is causing confusion: #11488
Since the logging is done with
getJSONFromResponse, we can safely remove the earlierresponse.text()mockOAuthFlowbecause it's really confusing with the global state and stuff. Already didmockOAuthServerCallback('failure')and msw handler for 400 but it doesn't resolve. Will happily retry if you could give some pointer.