Next.js Discord

Discord Forum

Error TypeError: fetch failed UND_ERR_HEADERS_TIMEOUT

Unanswered
Steller's Sea-Eagle posted this in #help-forum
Open in Discord
Steller's Sea-EagleOP
skipped duplicated match
skipped duplicated match
matchlist user tadayou jp1 DIAMOND I
matchlist user 橙子味硬糖 jp1 DIAMOND I
TypeError: fetch failed
    at Object.fetch (/Users/fnug2/Code/my-league-app/node_modules/next/dist/compiled/undici/index.js:1:26669)
    at async invokeRequest (/Users/fnug2/Code/my-league-app/node_modules/next/dist/server/lib/server-ipc/invoke-request.js:17:12)
    at async invokeRender (/Users/fnug2/Code/my-league-app/node_modules/next/dist/server/lib/router-server.js:254:29)
    at async handleRequest (/Users/fnug2/Code/my-league-app/node_modules/next/dist/server/lib/router-server.js:447:24)
    at async requestHandler (/Users/fnug2/Code/my-league-app/node_modules/next/dist/server/lib/router-server.js:464:13)
    at async Server.<anonymous> (/Users/fnug2/Code/my-league-app/node_modules/next/dist/server/lib/start-server.js:117:13) {
  cause: HeadersTimeoutError: Headers Timeout Error
      at Timeout.onParserTimeout [as callback] (/Users/fnug2/Code/my-league-app/node_modules/next/dist/compiled/undici/index.js:1:62578)
      at Timeout.onTimeout [as _onTimeout] (/Users/fnug2/Code/my-league-app/node_modules/next/dist/compiled/undici/index.js:2:269659)
      at listOnTimeout (node:internal/timers:559:17)
      at processTimers (node:internal/timers:502:7) {
    code: 'UND_ERR_HEADERS_TIMEOUT'
  }
}
- wait compiling /_error (client and server)...
matchlist user           kira01 jp1 DIAMOND I
skipped duplicated match
- event compiled client and server successfully in 611 ms (787 modules)
matchlist user 小紅書搜硫酸亞鐵 jp1 DIAMOND I
matchlist user Proud jp1 DIAMOND I
- wait compiling /api/matches (client and server)...
- event compiled successfully in 27 ms (88 modules)
Connected to MongoDB
matchlist user DAWON NORTH KR jp1 DIAMOND I
out of the blue i get UND_ERR_HEADERS_TIMEOUT i don't understand why it happens rarerly it used to happen more bu i don't understand why https://gist.github.com/FnugDev/191eda0d71978b53cc7a55011433c54a

0 Replies