Skip to content

Comments

fix: capture async stack only for rejections with native error object…#5

Open
MitchLewis930 wants to merge 1 commit intopr_025_beforefrom
pr_025_after
Open

fix: capture async stack only for rejections with native error object…#5
MitchLewis930 wants to merge 1 commit intopr_025_beforefrom
pr_025_after

Conversation

@MitchLewis930
Copy link

@MitchLewis930 MitchLewis930 commented Jan 30, 2026

PR_025


Note

Low Risk
Tightly scoped change to error stack formatting and a related unit test; main risk is subtle differences in stack strings across runtimes.

Overview
Improves error stack preservation in Axios.request() by only capturing and appending the async call-site stack when the rejection is a native Error, and by handling cases where err.stack is missing before merging.

Updates the HTTP adapter unit test for stack preservation to use async/await server startup (startHTTPServer) and return the assert.rejects promise, keeping the single-occurrence stack assertion intact.

Written by Cursor Bugbot for commit 1a08f90. This will update automatically on new commits. Configure here.

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