-
Notifications
You must be signed in to change notification settings - Fork 1.3k
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
Start server without callback fails #2705
Comments
+1 |
This is a new requirement in hapi 9. See release notes here: #2682 |
I've seen the message: "Require callback for server.start() and server.stop()." Then I think the problem is that the code example on the hapi homepage is wrong. Also as it is required hapi could throw a better message validating whether callback is defined. Thanks |
The site is fixed code wise but it looks like it needs to be redeployed again. |
This is a hapijs.com issue not hapi specifically. I have linked the issue here for reference. Please close this. I have issued a PR for review. |
+1 for felansu comment. Better error message would be great on this. |
When starts the server without callback as it described at example on home page
Code example
Exception
Version report
The text was updated successfully, but these errors were encountered: