Node.js 22 Upgrade Guide
Known issues
HTTP(S) calls failing due to "socket hang up"/"ECONNRESET" when using node-fetch
FetchError: request to <> failed, reason: socket hang up
at ClientRequest.<anonymous> (file:///app/node_modules/node-fetch/src/index.js:109:11)
at ClientRequest.emit (node:events:519:28)
at emitErrorEvent (node:_http_client:105:11)
at Socket.socketOnEnd (node:_http_client:542:5)
at Socket.emit (node:events:531:35)
at endReadableNT (node:internal/streams/readable:1698:12)
at process.processTicksAndRejections (node:internal/process/task_queues:90:21) {
type: 'system',
errno: 'ECONNRESET',
code: 'ECONNRESET',
erroredSysCall: undefined
}Solution 1: Use a custom HTTP Agent (recommended for node-fetch)
Solution 2: Switch to built-in fetch (recommended for new code)
Missing Host header causing 400 Bad Request
Solution
Maximum call stack size exceeded when using node-homey-api
Last updated
Was this helpful?