fix: status is missing in AxiosError on and after v1.13.3#7368
Merged
jasonsaayman merged 5 commits intoaxios:v1.xfrom Feb 4, 2026
Merged
fix: status is missing in AxiosError on and after v1.13.3#7368jasonsaayman merged 5 commits intoaxios:v1.xfrom
jasonsaayman merged 5 commits intoaxios:v1.xfrom
Conversation
Contributor
There was a problem hiding this comment.
2 issues found across 2 files
Prompt for AI agents (all issues)
Check if these issues are valid — if so, understand the root cause of each and fix them.
<file name="lib/adapters/fetch.js">
<violation number="1" location="lib/adapters/fetch.js:250">
P2: Using `err.request` causes the `request` object to be lost in the `AxiosError` for network errors, as the native `TypeError` does not contain it. Restore using the local `request` variable.</violation>
<violation number="2" location="lib/adapters/fetch.js:257">
P2: If `err.request` is missing (e.g. for non-Axios errors), the error should fallback to using the local `request` variable to preserve context.</violation>
</file>
Since this is your first cubic review, here's how it works:
- cubic automatically reviews your code and comments on bugs and improvements
- Teach cubic by replying to its comments. cubic learns from your replies and gets better over time
- Ask questions if you need clarification on any suggestion
Reply with feedback, questions, or to request a fix. Tag @cubic-dev-ai to re-run a review.
Co-authored-by: cubic-dev-ai[bot] <191113872+cubic-dev-ai[bot]@users.noreply.github.com>
This was referenced Feb 8, 2026
This was referenced Feb 10, 2026
14 tasks
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.
Fixes #7364
Included request and response in AxiosError when using the fetch adapter.
Summary by cubic
Fixes missing status in AxiosError when using the fetch adapter. Failed requests now include error.status.
Written for commit be90c25. Summary will update on new commits.