Recently started getting "Error: aborted" randomly #39242
-
So I randomly started getting the following error This error originated either by throwing inside of an async function without a catch block, or by rejecting a promise which was not handled with .catch(). The promise rejected with the reason:
Error: aborted
at connResetException (node:internal/errors:692:14)
at abortIncoming (node:_http_server:602:17)
at socketOnClose (node:_http_server:596:3)
at Socket.emit (node:events:539:35)
at Socket.emit (node:domain:475:12)
at TCP.<anonymous> (node:net:709:12)
error - unhandledRejection: Error: aborted
at connResetException (node:internal/errors:692:14)
at abortIncoming (node:_http_server:602:17)
at socketOnClose (node:_http_server:596:3)
at Socket.emit (node:events:539:35)
at Socket.emit (node:domain:475:12)
at TCP.<anonymous> (node:net:709:12) {
code: 'ECONNRESET'
} It happens if I make my browser go from mobile view to desktop view using Chrome's DevTools and sometimes it will happen just refreshing the page. The only |
Beta Was this translation helpful? Give feedback.
Replies: 11 comments 17 replies
-
just update next version to canary-9 |
Beta Was this translation helpful? Give feedback.
-
also facing the issue on 13.4.1 |
Beta Was this translation helpful? Give feedback.
-
face the same issue in latest version 13.5 |
Beta Was this translation helpful? Give feedback.
-
Same in 13.5.4 using the app router, but only appears to happen when the request is cancelled but do not occur on GET requests |
Beta Was this translation helpful? Give feedback.
-
I think this is due to the middleware. |
Beta Was this translation helpful? Give feedback.
-
I am also experiencing this with 14.1.0 |
Beta Was this translation helpful? Give feedback.
-
I am having the same issue with 13.5.6 AbortError: The operation was aborted.
at new DOMException (node:internal/per_context/domexception:53:5)
at Object.destroy (node:internal/deps/undici/undici:10767:33)
at httpFetch (node:internal/deps/undici/undici:10563:45)
at process.processTicksAndRejections (node:internal/process/task_queues:95:5)
at async node:internal/deps/undici/undici:10342:20
at async mainFetch (node:internal/deps/undici/undici:10332:20)
```
It happens only sometimes and only on production. |
Beta Was this translation helpful? Give feedback.
-
Following for updates |
Beta Was this translation helpful? Give feedback.
-
Facing the same issue on next 14.1.0 |
Beta Was this translation helpful? Give feedback.
-
experiencing the same issue in next.js v14+ by the way, it's thrown in production env which is deployed as standalone mode |
Beta Was this translation helpful? Give feedback.
just update next version to canary-9
npm command: npm i next@12.2.4-canary.9