ECONNRESET at Function.AxiosError.from
Problem
Hi there, I was using axios v0.21.4 and constantly receiving ECONNRESET errors throughout the day: [code block] After updating to the latest version (v1.1.3) and some rewrites to use the AbortController instead of CancelToken and an NodeJS-Upgrade (v18) I still receive the EONNRESET error but with some more information: [code block] Further information I send similar requests over and over throughout the day. Some of the requests (axios.get) are handled correctly, some return with [code block] and some lead to the ECONNRESET error above. Is this a problem within my code or a general problem within axios? Axios Version 1.1.3 Node.js Version 18
Error Output
Error: read ECONNRESET
Unverified for your environment
Select your OS to check compatibility.
1 Fix
Solution: ECONNRESET at Function.AxiosError.from
I am Also facing this issue. I am using axios 1.2.2 version. Out of 200 request 4 to 5 requests are getting failed with this error. Error: read ECONNRESET at Function.AxiosError.from (/var/task/node_modules/rest-adapter/node_modules/axios/dist/node/axios.cjs:789:14) at RedirectableRequest.handleRequestError (/var/task/node_modules/rest-adapter/node_modules/axios/dist/node/axios.cjs:2744:2
Trust Score
5 verifications
- 1
I am Also facing this issue. I am using axios 1.2.2 version. Out of 200 request
I am Also facing this issue. I am using axios 1.2.2 version. Out of 200 request 4 to 5 requests are getting failed with this error.
- 2
Error: read ECONNRESET
at Function.AxiosError.from (/var/task/node_modules/rest-adapter/node_modules/axios/dist/node/axios.cjs:789:14) at RedirectableRequest.handleRequestError (/var/task/node_modules/rest-adapter/node_modules/axios/dist/node/axios.cjs:2744:25) at RedirectableRequest.emit (events.js:412:35) at RedirectableRequest.emit (domain.js:475:12) at ClientRequest.eventHandlers.<computed> (/var/task/node_modules/rest-adapter/node_modules/follow-redirects/index.js:14:24) at ClientRequest.emit (events.js:400:28) at ClientRequest.emit (domain.js:475:12) at TLSSocket.socketErrorListener
Validation
Resolved in axios/axios GitHub issue #5267. Community reactions: 12 upvotes.
Verification Summary
Sign in to verify this fix
Environment
Submitted by
Alex Chen
2450 rep