undici UND_ERR_CONNECT_TIMEOUT fetch issues on 13.4.19
Unanswered
Blanc de Hotot posted this in #help-forum
Blanc de HototOP
getting this error a ton lately because of the fetch changes from nextjs, anyone have a solution?
TypeError: fetch failed
at Object.fetch (node:internal/deps/undici/undici:11413:11)
at process.processTicksAndRejections (node:internal/process/task_queues:95:5)
at async invokeRequest (/Users/coopernewby/Local Documents/GitHub/classet-ats/node_modules/next/dist/server/lib/server-ipc/invoke-request.js:17:12)
at async invokeRender (/Users/coopernewby/Local Documents/GitHub/classet-ats/node_modules/next/dist/server/lib/router-server.js:254:29)
at async handleRequest (/Users/coopernewby/Local Documents/GitHub/classet-ats/node_modules/next/dist/server/lib/router-server.js:447:24)
at async requestHandler (/Users/coopernewby/Local Documents/GitHub/classet-ats/node_modules/next/dist/server/lib/router-server.js:464:13)
at async Server.<anonymous> (/Users/coopernewby/Local Documents/GitHub/classet-ats/node_modules/next/dist/server/lib/start-server.js:117:13) {
cause: Error: connect ECONNREFUSED ::1:60795
at TCPConnectWrap.afterConnect [as oncomplete] (node:net:1494:16) {
errno: -61,
code: 'ECONNREFUSED',
syscall: 'connect',
address: '::1',
port: 60795
}
}
2 Replies
European sprat
i keep getting it too in dev, not sure why it happens. hoping it gets fixed soon
i actually didn't see it as much on node 18.16. i'm on 18.17.1 now and see it more. there's a memory leak in fetch in <18.17.0 though