Skip to content
New issue

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

Cannot read property 'statusCode' of null #42

Open
Elexy opened this issue Sep 15, 2017 · 1 comment
Open

Cannot read property 'statusCode' of null #42

Elexy opened this issue Sep 15, 2017 · 1 comment

Comments

@Elexy
Copy link

Elexy commented Sep 15, 2017

From time to time we see this error in our logs:

Debug: internal, implementation, error 
    TypeError: Cannot read property 'statusCode' of null
    at server.on (..../node_modules/epimetheus/lib/hapi.js:23:74)

As this happens intermittently I am suspecting this happens when the client closed the connection prematurely. The Hapi docs state:

response - the response object when set. The object can be modified but must not be assigned another object. To replace the response with another from within an extension point, use reply(response) to override with a different response. Contains null when no response has been set (e.g. when a request terminates prematurely when the client disconnects).

Is it possible to account for null responses?

@roylines
Copy link
Owner

roylines commented Aug 21, 2018

Happy to take a pull request on this. Please follow these guidelines if you do

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants