Open kevinlul opened 1 year ago
exactly the same issue, process is crashing due to unhandledRejection
For anyone else coming here: FYI, got 11.x is no longer maintained and won't receive the dependency update: https://github.com/sindresorhus/got/issues/2277#issuecomment-1612801140
I'm going to try @kevinlul approach of updating the dependency manually: https://github.com/DawnbrandBots/bastion-bot/issues/268
Describe the bug
Actual behavior
Process crashed. Final log:
Expected behavior
Process does not crash on bad behaviour from a server when the
got
call is already wrapped in a try-catch.Code to reproduce
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
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.
Checklist