Skip to content

Don't try to parse response as JSON if it is an error.#37

Merged
wlynch merged 1 commit intoocto-sts:mainfrom
wlynch:noparse-error
Sep 26, 2025
Merged

Don't try to parse response as JSON if it is an error.#37
wlynch merged 1 commit intoocto-sts:mainfrom
wlynch:noparse-error

Conversation

@wlynch
Copy link
Contributor

@wlynch wlynch commented Sep 26, 2025

If we get an error, this will often be a plain text string, and gets obfuscated by the attempted json parsing. Return it as-is so we can read it in full.

@wlynch wlynch requested a review from cpanato September 26, 2025 16:12
If we get an error, this will often be a plain text string, and gets obfuscated by
the attempted json parsing. Return it as-is so we can read it in full.

Also remove unused call that isn't being used.
@wlynch wlynch requested a review from imjasonh September 26, 2025 16:20
@wlynch wlynch enabled auto-merge (squash) September 26, 2025 16:22
@wlynch wlynch merged commit a26b0c6 into octo-sts:main Sep 26, 2025
2 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants