How can I determine if a Zap is turned off when I call a Zap with a Webhook?

白昼怎懂夜的黑 提交于 2021-01-29 10:16:47

问题


I have a working Zapier Webhook call from a .Net Web Application. However, I always receive "success" even when the Zap is turned off. Which I suppose makes sense--the "success" pertains to the webhook itself, not the Zap.

In my .Net Web Application, I want to raise an exception if the zap is turned off. How can I determine if a Zap is turned off?

I figure this answer is probably in some Zapier documentation, but I can't see to get a hit (I am sorta new to Zapier).


回答1:


David here, from the Zapier Platform team.

the "success" pertains to the webhook itself, not the Zap.

You've got it correct here. Hook ingestion happens separately from running zaps. The basic flow is this:

  1. Hook arrives
  2. We record it and put it into the processing queue
  3. We respond "succcess" if that happened without error (which it basically always should, we don't want to miss hooks!)
  4. One that hook reaches the front of our queue, we find the relevant zap and run it with the hook as input.

Since step 3 happens before step 4, we unfortunately can't return any info about the hook as part of that initial response. It's designed this way so that we can process tons of hooks very quickly. If we had to wait for the Zap query, it would slow down that process a lot.

The good news is, you can send all the hooks you like and we'll ignore the ones that aren't relevant.

Sorry I don't have a better answer!



来源:https://stackoverflow.com/questions/58174791/how-can-i-determine-if-a-zap-is-turned-off-when-i-call-a-zap-with-a-webhook

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!