Skip to content

fix: parse json error response#1367

Open
Vinzent03 wants to merge 1 commit into
v3from
fix/parse-error
Open

fix: parse json error response#1367
Vinzent03 wants to merge 1 commit into
v3from
fix/parse-error

Conversation

@Vinzent03
Copy link
Copy Markdown
Collaborator

What kind of change does this PR introduce?

Bug fix!

What is the current behavior?

For head requests or downlaods the noResolveJson attribute is set to true, which makes sense for successful responses, but errors still contain the error code and message in json format, which should be parsed and properly reported.

What is the new behavior?

Always try to parse an error response as json.

Additional context

From what I can tell, the js sdk works the same way.

Since this can produce different status codes than before, I would merge this in v3.

close #1312

@Vinzent03 Vinzent03 requested a review from a team as a code owner May 28, 2026 22:18
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.

1 participant