Best answer

Zap Making 2 API Calls with 2 Different Webhook URLs and Not Receiving Responses

  • 30 January 2024
  • 4 replies
  • 54 views

Userlevel 1

Hello

 

We are building a zappier app for our application. I setup the trigger and add selected the ‘REST Hook’ as trigger type. Setup the Subscribe and Unsubscribe.  setup the headers, and request body for both.  

 

We are encountering 2 issue.

 

Issue 1: Upon creating a zap for testing purposes it make 2 calls and send 2 different webhooks to our server.

Sample hooks received: 

1: https://hooks.zapier.com/hooks/standard/11226987/xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx

2: https://zapier.com/hooks/standard/11226987/xxxxxxxxxxxxxxxxxxxxxxxxxxxxxx

 

I believe it should only send 1 request with single webhook so we can send the data back to that url when there is any updates on our application.

 

Issue 2: We sent the dummy data to both webhook urls but zap is still circling around and waiting for the response

 

Here is the response received from zappier upon sending the data to the webhook url but zap editor does not shows that data is received. 

 

{

    "attempt": "018d59a9-966f-6612-6c71-bbe507247531",

    "id": "018d59a9-966f-6612-6c71-bbe507247531",

    "request_id": "018d59a9-966f-6612-6c71-bbe507247531",

    "status": "success"

}

 

Additionally, I've noticed that if we don't configure the unsubscribe feature, the webhook URL appears in the editor. Upon sending data to this webhook URL, the Zap editor indicates that the data has been received.

 

Any assistance would be greatly appreciated. If anyone from the Zapier team could offer help, it would be truly valued.

icon

Best answer by Osas 30 January 2024, 13:59

View original

4 replies

Userlevel 2
Badge +2

Hi @Cairo ,

It seems that a performList has not been set up for the integration. A performList is used to send a request to your API to fetch sample data for a trigger when the trigger is tested in the editor. When a performList is set up on an integration, when testing the trigger, the Editor will create a temporary subscription allowing users to generate sample data in "real-time". Then when the Zap is turned on, the subscription that’s specified in the integration (the subscribe request) is done.

So the 2 subscription URLs you are seeing should be for - the temporary subscription created when testing the trigger, and the actual subscription when the Zap is turned on.

Specifying a performList request is the ideal user experience but if for some reasons that would not be possible (probably no endpoint available for sample data to be fetched from), then to test the trigger successfully, when it is loading (after clicking the ‘test trigger’ button) and waiting for the response, immediately send the sample data’s webhook payload to the temporary subscription URL (not ideal, I know, that’s why having a performList is recommended).

 

Regarding the webhook URL showing up in the editor when the unsubscribe request isn’t specified, this is called a static hook (as opposed to a REST Hook). This shows up when either the subscribe or unsubscribe request is not specified for an integration. The URL of a static hook can be copied and sent over to your app for hooks to be sent to it. This is acceptable for private integrations, but if your integration is intended to be public, both the subscribe and unsubscribe request should be set up. 

This article should help you here. Add a REST Hook trigger.

I know this was a lot but hope it helps.

All the best,

Userlevel 1

Hi @Osas 

 

Thank you for sharing this information. It was quite helpful and it worked after setting up the performList. However, I still got 2 webhooks url upon enabling the zap. Can you please confirm which one of the following is temporary and which one is actual so I can ignore the temporary one on our end and save the actual one. 

 

1: https://hooks.zapier.com/hooks/standard/11226987/xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx

2: https://zapier.com/hooks/standard/11226987/xxxxxxxxxxxxxxxxxxxxxxxxxxxxxx

 

 

Thank you

Userlevel 2
Badge +2

Hi @Cairo,

Glad to know you were able to set up the performList successfully.

 

Regarding knowing which webhook URL is the actual subscription URL of the Zap, I would suggest reaching out to our Developer Support team via https://developer.zapier.com/contact with the following information:

  • Link to the Zap where this test is done
  • The ID of the integration

They would be able to assist further on this as certain information cannot be provided or requested here.

All the best,

Userlevel 1

Thank you @Osas 

Reply