Open quepop opened 2 years ago
I managed to fix the issue temporarily by changing the body of the onPreResponse method to:
if(request.response.statusCode == 200) return h.continue
request.raw.res.destroy()
if(
isNativeError(request.response) &&
request.response.stack &&
request.response.stack.includes("timeoutReply")
) return h.continue
return h.abandon
Support plan
Context
What are you trying to achieve or the steps to reproduce?
I added an async wait_for function to one of my route handlers so that it exceeds the timeout value of
route.timeout.server
(set on every route)Body of the onPreResponse method (set on every route):
The above method works as expected under any other conditions (that lead to
request.response.statusCode
not being equal to 200).What was the result you got?
My app crashed and I received the following error (I manually replaced some paths with ***):
What result did you expect?
I expected the route to be abandoned and the app to not crash.