Skip to content

Fix issue with Axios > 1.13.2#282

Merged
mfal merged 2 commits intomasterfrom
fix-axios-error-handling
Feb 27, 2026
Merged

Fix issue with Axios > 1.13.2#282
mfal merged 2 commits intomasterfrom
fix-axios-error-handling

Conversation

@mfal
Copy link
Member

@mfal mfal commented Feb 27, 2026

The API client is designed to return all responses, regardless of the status code. This allows the caller to handle error responses as needed.

Since Axios 1.13.3 the error object does not contain the response anymore, even if the error is an HTTP error. To maintain the previous behavior of returning the response even for HTTP errors, the validateStatus option is set to always return true, which means that HTTP errors will not even throw an error.

@mfal mfal marked this pull request as ready for review February 27, 2026 11:27
@mfal mfal enabled auto-merge (rebase) February 27, 2026 13:30
@mfal mfal merged commit ea4fd7d into master Feb 27, 2026
1 check passed
@ins0 ins0 deleted the fix-axios-error-handling branch February 27, 2026 14:22
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.

2 participants