Server Events not working.
# support
s
While developing locally with ngrok, the server Events works, but when I host it, it does not work. Note, I have not set any secret for it. I tested the URL with a sample payload it works. Any ideas. It has been a blocker really. #1245660177953194066
v
message has been deleted
@sgs I'm here to help you troubleshoot the issue with server events not working when hosted. Since it works locally with ngrok, let's go through a checklist to ensure everything is set up correctly for your hosted environment: 1. **Server Running**: Confirm that your server is running on the expected port in your hosted environment. 2. **Correct Port**: Make sure you have input the correct port in any configuration files or settings that might differ from your local setup. 3. **POST Endpoint**: Verify that your route handling server events is a POST endpoint, as server events typically send data via POST requests. 4. **Path Configuration**: Ensure that the path on top of the base forwarding URL is set correctly (e.g.,
/callbacks/vapi
). This path should match the one you are using in ngrok. 5. **Firewall and Security**: Check if there are any firewall or security settings in your hosted environment that could be blocking incoming requests. 6. **Dependencies**: Ensure all dependencies and environment variables are properly configured in your hosted environment, just as they are in your local setup. 7. **Error Logs**: Review the server logs for any errors that might indicate why the events are not being received or processed correctly. 8. **Secrets and Authentication**: Even though you mentioned not setting any secret, double-check if the hosted environment requires any form of authentication or tokens that you might have overlooked. If after going through this checklist the issue persists, it might be beneficial to look into the hosting provider's documentation or support channels for any known issues or additional configuration steps specific to their platform. If you need further assistance or have more details to provide, please let me know!
You can continue this conversation by mentioning me in the message.
s
latest call_id pls
s
70b048d8-6d1d-448c-9b76-45389743ce24
Everything is fine, but the webhook while deployed is alone not working.
@Sahil Can you look into it?
Is secret manadatory?
s
nope
not manadatory
issue is from your end
2 Views