-
-
Notifications
You must be signed in to change notification settings - Fork 11.6k
Uses ECONNABORTED for timeouts instead of ETIMEDOUT #1543
Copy link
Copy link
Closed
Description
Summary
Axios seems to set a code of ECONNABORTED when a request times out:
Line 107 in 0b3db5d
| reject(createError('timeout of ' + config.timeout + 'ms exceeded', config, 'ECONNABORTED', |
This makes it difficult to tell when a request actually timed out vs. being aborted in a different way:
Line 89 in 0b3db5d
| reject(createError('Request aborted', config, 'ECONNABORTED', request)); |
Should ETIMEDOUT be used instead?
Context
- axios version: 0.18.0
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
No labels