We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Accessing request.info.remoteAddress may fail if the remote socket has gone away.
request.info.remoteAddress
This appears to be the result of #4357.
TypeError: Cannot read property 'startsWith' of undefined at internals.Info.get remoteAddress [as remoteAddress] (/home/deploy/node_modules/@hapi/hapi/lib/request.js:661:31)
A successful undefined value
undefined
The text was updated successfully, but these errors were encountered:
Fix handling of no remoteAddress available
41f095f
Fixes hapijs#4395
thanks @joshkel - also experiencing this issue. would be great to get the patch in
Sorry, something went wrong.
Fix handling of no remoteAddress available (#4396)
a0efdc4
* Fix handling of no remoteAddress available Fixes #4395 * Tidy tests Co-authored-by: David McKeown <[email protected]> * Lint Co-authored-by: devin ivy <[email protected]> Co-authored-by: David McKeown <[email protected]>
socketAddress
Successfully merging a pull request may close this issue.
Support plan
Context
What are you trying to achieve or the steps to reproduce?
Accessing
request.info.remoteAddress
may fail if the remote socket has gone away.This appears to be the result of #4357.
What was the result you got?
What result did you expect?
A successful
undefined
valueThe text was updated successfully, but these errors were encountered: