Webhook Not Receiving Data from External Service

Hi everyone, I’m having trouble with a Webhook node in n8n. I set up a webhook URL and connected it to an external service, but the workflow is not being triggered when the request is sent.
My setup is:
Webhook → Function → Continue
Webhook is set to POST, and I’m expecting JSON data.
Here’s what I tried in the Function node:return [
{
json: {
data: $json
}
}
];

Describe the problem/error/question

The issue is:
• The webhook URL works in test mode sometimes
• But in production, it doesn’t trigger at all
• The external service shows the request was sent successfully
I’m not sure if I’m missing something about test vs production URLs or activation.

What is the error message (if any)?

Please share your workflow

(Select the nodes on your canvas and use the keyboard shortcuts CMD+C/CTRL+C and CMD+V/CTRL+V to copy and paste the workflow.)

Share the output returned by the last node

Information on your n8n setup

  • n8n version:
  • Database (default: SQLite):
  • n8n EXECUTIONS_PROCESS setting (default: own, main):
  • Running n8n via (Docker, npm, n8n cloud, desktop app):
  • Operating system:

Hi @Keira_Becky

This is about Test vs Production webhook URLs.

n8n gives you two URLs:
• Test URL → only works when you click “Execute Workflow”
• Production URL → works only when the workflow is turned ON (active)

You’re likely
• Using the test URL without running the workflow
or
• Using the production URL while the workflow is inactive

Always make sure you use the Production URL And also Turn your workflow ON (active) so as to make your workflow trigger correctly

3 Likes

Hi @Keira_Becky
your Function is breaking it
I recommend remove it completely or change to return $input.all();
Functions can swallow webhook data silently in prod. Test without it first!

1 Like

Thanks @Niffzy @tamy.santos got it solved

This topic was automatically closed 7 days after the last reply. New replies are no longer allowed.