axios-better-stacktrace

JSON →
library 2.1.7 ·javascript
verified Jun 7, 2026

An axios plugin (v2.1.7) that enhances stack traces for axios errors by preserving the call site of the original request, making debugging easier. It works by wrapping axios methods to add a custom error message and the calling context to the stack trace. Currently stable with monthly-ish releases. Compared to alternatives like axios-error, it is lighter and integrates as a simple function call.