I’ve created and tested a Stream in my local environment using NGrok. Now that I am ready to send that Stream to a hosted Webhook URL, it is not accepting my URL. I’m not sure why not as I am able to hit that URL via Postman. My URL is https://pigsapi.nfinitacres.com/hook. Please help me to understand what the issue is,
It has to return 200 status code as a response for the data that it is sent for test when the webhook url is tested
I do have it returning a 200 status code as follows:
res.status(200).end() // Responding is important
})
do you have logging on your server?
to see if the request comes and if a response is sent?
you can also try to update the webhook url directly from the swagger interface in case that it is an issue with the admin interface
https://api.moralis-streams.com/api-docs/#/EVM%20Streams/UpdateStream
you only have to update the webhook url in that POST request, nothing more