-
-
Notifications
You must be signed in to change notification settings - Fork 35.2k
Closed as not planned
Description
Version
18.13.0, 19.5.0
Platform
Microsoft Windows NT 10.0.19044.0 x64
Subsystem
docker image from node:19-alpine
What steps will reproduce the bug?
Error occurres with simple get request (didn't tested it with other options), which lasts longer then 5 minutes:
let response = await fetch('http://127.0.0.1/daily-collection');
How often does it reproduce? Is there a required condition?
This error occures every time when there is no response longer then 5 minutes
What is the expected behavior?
fetch should wait as long as needed, even if response will be returned in 10+ minutes
What do you see instead?
Next error occurs when I do http request, which lasts longer than 5 minutes:
TypeError: fetch failed
at Object.fetch (node:internal/deps/undici/undici:14152:11)
at async Object.collect (/usr/src/app/webserver/controllers/daily-collection.js:44:24)
at async Object.execute (/usr/src/app/webserver/controllers/daily-collection.js:13:26)
at async Server.<anonymous> (/usr/src/app/webserver/server.js:24:9) {
cause: HeadersTimeoutError: Headers Timeout Error
at Timeout.onParserTimeout [as _onTimeout] (node:internal/deps/undici/undici:9185:32)
at listOnTimeout (node:internal/timers:570:11)
at process.processTimers (node:internal/timers:511:7) {
code: 'UND_ERR_HEADERS_TIMEOUT'
}
}
Additional information
No response
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
No labels