You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
is this issue currently blocking your project? (yes/no): no
is this issue affecting a production system? (yes/no): yes
Context
node version: 16.3.0
module version with issue: 20.2.0
last module version without issue: 19.1.1
environment (e.g. node, browser, native): node
used with (e.g. hapi application, another framework, standalone, ...): hapi application
any other relevant information: Using AWS load balancer
What are you trying to achieve or the steps to reproduce?
When our AWS Load Balancer returns a HTTP 460 because the client closed the connection, the handling node application crashes with the following stack trace:
TypeError: Cannotreadpropertiesofnull(reading'statusCode')atRequest._finalize(/src/node_modules/@hapi/hapi/lib/request.js:500:31)atRequest._reply(/src/node_modules/@hapi/hapi/lib/request.js:437:18)atRequest._execute(/src/node_modules/@hapi/hapi/lib/request.js:282:14)atrunMicrotasks(<anonymous>)
at processTicksAndRejections (node:internal/process/task_queues:96:5)
This wasn't happening when we were using Hapi 19.1.1 with Node 14.
I've found some issues that appear similar:
This issue #4208, we're getting the error on the same line of code:
if (this.response.statusCode === 500 &&
Also this comment #4225 (comment) suggests premature close events were fixed as of Hapi 20.1.2, so we're wondering if there is another edge case.
What was the result you got?
Node application crashes
What result did you expect?
The server to function normally and respond to requests
The text was updated successfully, but these errors were encountered:
Thanks for the report! The latest version of hapi v20.2.1 included a fix #4295 for a crash related to handling of client aborts. Could you update to that version and see if the issue persists?
Support plan
Context
What are you trying to achieve or the steps to reproduce?
When our AWS Load Balancer returns a HTTP 460 because the client closed the connection, the handling node application crashes with the following stack trace:
This wasn't happening when we were using
Hapi 19.1.1
withNode 14
.I've found some issues that appear similar:
This issue #4208, we're getting the error on the same line of code:
Also this comment #4225 (comment) suggests premature close events were fixed as of
Hapi 20.1.2
, so we're wondering if there is another edge case.What was the result you got?
Node application crashes
What result did you expect?
The server to function normally and respond to requests
The text was updated successfully, but these errors were encountered: