Ngrok HTTP Requests error: 404 Not Found

I’m doing device scene example using ngrok.
In Developer Workplace, I made an automation project and I have to verify app registration.
But when I send a request, the 404 Not Found error occurs.
How can I fix it?
image

Tagging @nayelyz @erickv

2 Likes

Hey, @leehi9817

This is because there’s no root endpoint supporting POST HTTP Methods. Add the following block of code so you can log the entire Confirmation Lifecycle:

server.post('/', (req, res) => {
    console.log(req.body);
});
1 Like