Next.js Discord

Discord Forum

Server keeps crashing?

Answered
Cairn Terrier posted this in #help-forum
Open in Discord
Cairn TerrierOP
Anyone know how to fix this or what it means? Been having this happen all day, everything crashes and I start getting a 500 error page, I reboot the app and its good for a while. This is the error in the terminal when it happens

TypeError: fetch failed
    at Object.fetch (node:internal/deps/undici/undici:14062:11)
    at process.processTicksAndRejections (node:internal/process/task_queues:95:5)
    at async invokeRequest (C:\Users\Yon\Desktop\HTML Journey\Project Files\2023 Project Files\kickit-redux\node_modules\next\dist\server\lib\server-ipc\invoke-request.js:17:12)
    at async invokeRender (C:\Users\Yon\Desktop\HTML Journey\Project Files\2023 Project Files\kickit-redux\node_modules\next\dist\server\lib\router-server.js:254:29)
    at async handleRequest (C:\Users\Yon\Desktop\HTML Journey\Project Files\2023 Project Files\kickit-redux\node_modules\next\dist\server\lib\router-server.js:447:24)
    at async requestHandler (C:\Users\Yon\Desktop\HTML Journey\Project Files\2023 Project Files\kickit-redux\node_modules\next\dist\server\lib\router-server.js:464:13)
    at async Server.<anonymous> (C:\Users\Yon\Desktop\HTML Journey\Project Files\2023 Project Files\kickit-redux\node_modules\next\dist\server\lib\start-server.js:117:13) {
  cause: Error: connect ECONNREFUSED ::1:61500
      at TCPConnectWrap.afterConnect [as oncomplete] (node:net:1487:16) {
    errno: -4078,
    code: 'ECONNREFUSED',
    syscall: 'connect',
    address: '::1',
    port: 61500
  }
}
}
Answered by @ts-ignore
upgrade to latest version of nextjs
View full answer

7 Replies

@Cairn Terrier Anyone know how to fix this or what it means? Been having this happen all day, everything crashes and I start getting a 500 error page, I reboot the app and its good for a while. This is the error in the terminal when it happens TypeError: fetch failed at Object.fetch (node:internal/deps/undici/undici:14062:11) at process.processTicksAndRejections (node:internal/process/task_queues:95:5) at async invokeRequest (C:\Users\Yon\Desktop\HTML Journey\Project Files\2023 Project Files\kickit-redux\node_modules\next\dist\server\lib\server-ipc\invoke-request.js:17:12) at async invokeRender (C:\Users\Yon\Desktop\HTML Journey\Project Files\2023 Project Files\kickit-redux\node_modules\next\dist\server\lib\router-server.js:254:29) at async handleRequest (C:\Users\Yon\Desktop\HTML Journey\Project Files\2023 Project Files\kickit-redux\node_modules\next\dist\server\lib\router-server.js:447:24) at async requestHandler (C:\Users\Yon\Desktop\HTML Journey\Project Files\2023 Project Files\kickit-redux\node_modules\next\dist\server\lib\router-server.js:464:13) at async Server.<anonymous> (C:\Users\Yon\Desktop\HTML Journey\Project Files\2023 Project Files\kickit-redux\node_modules\next\dist\server\lib\start-server.js:117:13) { cause: Error: connect ECONNREFUSED ::1:61500 at TCPConnectWrap.afterConnect [as oncomplete] (node:net:1487:16) { errno: -4078, code: 'ECONNREFUSED', syscall: 'connect', address: '::1', port: 61500 } } }
what is you node and nextjs version?
Cairn TerrierOP
"next": "13.4.19", node: v18.13.0
@Cairn Terrier "next": "13.4.19", node: v18.13.0
upgrade to latest version of nextjs
Answer
well >=13.5.0
Cairn TerrierOP
🤦 Thought i was already using the latest, alright ill try that thanks
Pixiebob
@Cairn Terrier Did you manage to solve it?
Cairn TerrierOP
Yeah the update fixed it