Send HTTP requests avatar
Send HTTP requests

Pricing

Pay per event

Go to Store
Send HTTP requests

Send HTTP requests

Developed by

Rizuan

Rizuan

Maintained by Community

Send HTTP requests (GET, POST, PUT, PATCH, DELETE) to any API endpoint with customizable headers, parameters, and body data. Perfect for Clay users seeking API functionality without the Explorer plan upgrade, or anyone needing simple HTTP request capabilities.

5.0 (1)

Pricing

Pay per event

1

Total users

31

Monthly users

23

Runs succeeded

>99%

Issues response

2.1 hours

Last modified

13 days ago

VL

Unable to send HTTP Request to a webhook in n8n

Closed

VaLead opened this issue
4 days ago

Hey Rizuan, I've been using the HTTP Request Actor and it has been a great help. I recently encountered this problem when trying to send a http request, using POST method to a n8n webhook trigger. The following is the error: Error fetching data from API

Context: I'm using this to trigger a n8n workflow from clay. So Clay -> Apify actor -> send http request to n8n.

I've verified that the I could send a http request from another n8n workflow to a webhook node in n8n, but I just can't seem to get a success on using this apify's actor to send a http request to a webhook in n8n.

Hope you could advise me if I'm doing anything wrong, or are there any workarounds around this.

Cheers, Wen Xin

reezuan avatar

Hey!! Thanks for reaching out :)

Let me look into this - I'll try it out with a n8n workflow on my end to check what the issue is. Will update here once I've found the problem!

reezuan avatar

Heya - so I've just tried this with a n8n workflow on my end (POST webhook trigger) as well as some other API endpoints and it seems to work fine. Would you be able to share screenshots of your Clay setup and the webhook node settings in n8n?

VL

VaLead

4 days ago

Hey Rizuan, thanks for the prompt reply! Below are some screenshots attached. The data json in clay "Email": "YOUR_EMAIL" is just a placeholder and would eventually be referring to a column in clay. Clay result row 1 shows the result after I ran the test event in n8n and run the cell in clay. Let me know if you need any other screenshots!

reezuan avatar

Thanks for the screenshots! Could you help me check as well, in n8n & under the Executions tab, for previous runs where the webhook was received by this actor & see if there's an error message there?

VL

VaLead

4 days ago

Hmmm, this is my first workflow that is using this actor for http request to webhook in n8n (my previous uses were http request to external tools like Kitt AI), so there were no previous runs where the webhook was received by this actor.

VL

VaLead

4 days ago

Hey Rizuan, I've trialed and error again, and I managed to have a successful run for once, and afterwards I couldn't get it again despite having the same input. Attached are some screenshots. Hopefully this will provide more insights to where the issue stems from? Run that worked: https://console.apify.com/actors/8G3zgmif2nWLm6gc7/runs/lckuyO6z6m548Hd8X#output Run with the same input but didn't work: https://console.apify.com/actors/8G3zgmif2nWLm6gc7/runs/qzZWLQxoa3pLO6BLY#input

reezuan avatar

Hmm strange - seems like it works with the test webhook URL but not the production URL. Would you be able to show that same n8n result screen but for an execution run using the production URL (where it had errors)? Basically any execution that doesn't have that logo circled in white in the attached image. Let me know if it's unclear - happy to record a video for you!

reezuan avatar

Also btw just to confirm, you're using a self-hosted version of n8n right?

VL

VaLead

3 days ago

Hey Rizuan, hmm actually the test webhook URL is not working anymore also, so it only succeeded that one time, and afterwards, using the same input to the same test webhook URL, it gives the same error of Error fetching data from API: in the apify actor log.

I've tried to run using the production url but it did not receive any executions. (likewise when i check the log in apify it's Error fetching data from API:

Yes, using the self-hosted community edition of n8n.

reezuan avatar

Hmm then I think it may be an issue with your n8n setup. I found a thread here which seems to be similar to what you're experiencing: https://www.skool.com/ai-automation-society/unable-to-use-webhook-in-production-mode-running-n8n-in-docker

reezuan avatar

Have seen a few others as well talking about not being able to receive webhooks to the production URL when on the self-hosted version. Might be good to start there!

VL

VaLead

2 days ago

Hey Rizuan, after looking through the thread and updating our n8n setup, we managed to get it to work. Thanks alot for the help! Have a great week ahead!

reezuan avatar

No worries at all - glad that helped!