-
Notifications
You must be signed in to change notification settings - Fork 270
Authentication tutorial error: value must be an object, undefined handler #102
Comments
Fixed and deployed, sorry about that! |
I am still getting this error:
|
I'll check it out and see what's going on, sorry for the premature close. |
No problem! Thanks for the fast response! Turns out the error was caused by lack of a handler. Also, a call to start might be helpful too. Here's what worked for me:
|
Updated the tutorial again, this time fixed for real :) |
Thanks! :) |
server.register(require('inert'), (err) => {
}); I am getting an error while using the inert@4 plugin in hapi@17 in the above code. Can some one please help me fix this? Following is the error I am able to see on cmd. |
@Npednekar9 Try switching to an async function startServer() {
await server.register(require('inert'));
server.route({
method: 'GET',
path: '/mydemo',
handler: function(request, reply) {
reply.file('./public/mydemo.html');
}
});
await server.start();
});
startServer(); Check this issue for further details. |
Hey!
The Authentication tutorial gives the error: Invalid server options 3000, value must be an object.
Copy pasted from tutorial:
That error can be fixed by changing:
Which results in a new error:
The text was updated successfully, but these errors were encountered: