Webhook sending POST only on succeeded status
Closed this issue · 1 comments
Hello, am i not doing something right or Replicate is not sending the intermediate statuses ?
I am using NextJS app and replicate.predictions.create with webhook_events_filter: ['output'] for the test, i have tried with all the different variations of the filter and i am only receiving POST to my webhook on a succeeded event.
I have tried it via ngrok to be sure that my web services are not blocking any traffic but no results so far.
The webhook is handling various operations and also is using HMAC verification according to replicate's guide if that could possibly be some reason for the issue.
Thanks !
Edit: My bad, it was indeed a firewall issue, and the dev test with ngrok was only with the "output' as a filter.
I might be misunderstanding what you're seeing, but webhook_events_filter: ["output"] means we'll only send you a webhook request when the model emits output, which for many models is at the same time as it succeeds. You can read more about webhook_events_filter in the HTTP API docs: https://replicate.com/docs/reference/http#predictions.create-request-body-webhook-events-filter