Node server example not working?
# support
b
I cloned and setup https://github.com/VapiAI/server-example-javascript-node but it doesn't appear to be working. Looking at the call logs I see this error: [ERROR] Your server rejected
conversation-update
webhook. Error: Request failed with status code 500 I have my server URL set to my ngrok and see the traffic, but the agent only says the cached Hello. Is this example up to date? Am I missing something that is needed to get this to work? I get these errors when running pnpm start but it does start and receive updates from the server: https://pastebin.com/XcVmcDpy
v
### Fix for 500 Error in Conversation-Update Webhook Check your webhook route handler to ensure it's properly configured as a POST endpoint and correctly processes the incoming data format from Vapi:
Copy code
javascript
// In your Express route handler
app.post('/callbacks/vapi', (req, res) => {
  try {
    console.log('Received webhook:', JSON.stringify(req.body));
    // Process the webhook data
    res.status(200).send('OK');
  } catch (error) {
    console.error('Error processing webhook:', error);
    res.status(500).send('Error processing webhook');
  }
});
Also verify your ngrok command uses the correct port:
ngrok http YOUR_SERVER_PORT
Sources: - [Developing Locally](https://docs.vapi.ai/server-url/developing-locally) - [Discord Channel](https://discord.com/channels/1211482211119796234/1334280135683084328)
### Fix for 500 Error in Conversation-Update Webhook Check your webhook route handler to ensure it's properly configured as a POST endpoint and correctly processes the incoming data format from Vapi:
Copy code
javascript
// In your Express route handler
app.post('/callbacks/vapi', (req, res) => {
  try {
    console.log('Received webhook:', JSON.stringify(req.body));
    // Process the webhook data
    res.status(200).send('OK');
  } catch (error) {
    console.error('Error processing webhook:', error);
    res.status(500).send('Error processing webhook');
  }
});
Also verify your ngrok command uses the correct port:
ngrok http YOUR_SERVER_PORT
Sources: - [Developing Locally](https://docs.vapi.ai/server-url/developing-locally) - [Discord Channel](https://discord.com/channels/1211482211119796234/1334280135683084328)
s
Hey, really sorry for your experience.. If possible, could you record a loom video describing this error/behavior or inconsistency in the dashboard with the steps to reproduce it? That way, I can share this with my team, and we'll take a look. We'll even try to reproduce the same so we can fix it for you. Also, I'll request you to share your call ID.