Process crashed. Final log:
/app/node_modules/http2-wrapper/source/agent.js:396
const error = new Error('Session closed without receiving a SETTINGS frame');
^
Error: Session closed without receiving a SETTINGS frame
at ClientHttp2Session.<anonymous> (/app/node_modules/http2-wrapper/source/agent.js:396:22)
at Object.onceWrapper (node:events:627:28)
at ClientHttp2Session.emit (node:events:513:28)
at emitClose (node:internal/http2/core:1086:8)
at TLSSocket.<anonymous> (node:internal/http2/core:1113:7)
at TLSSocket.emit (node:events:525:35)
at node:net:320:12
at TCP.done (node:_tls_wrap:588:7)
Emitted 'error' event on ClientRequest instance at:
at ClientRequest.flushHeaders (/app/node_modules/http2-wrapper/source/client-request.js:363:10) {
code: 'HTTP2WRAPPER_NOSETTINGS'
}
Node.js v18.13.0
Process does not crash on bad behaviour from a server when the got
call is already wrapped in a try-catch.
Due to the total lack of context from the stack trace, none can be provided. It is unclear exactly what request caused it. However, all calling code is essentially
try {
await got(url);
} catch (e) {
console.error(e);
}
I am seeing that got v11 depends on http2-wrapper 1.0.0-beta.5.2, whereas there are significantly newer versions of this dependency for both v1 and v2 that are not in beta, so that may resolve the issue.
Pay now to fund the work behind this issue.
Get updates on progress being made.
Maintainer is rewarded once the issue is completed.
You're funding impactful open source efforts
You want to contribute to this effort
You want to get funding like this too