Meta WhatsApp Webhook Verification Failing: 'Respond to Webhook' returns blank despite Successful Execution

Hi everyone,

I’m completely stuck trying to verify my Meta/WhatsApp Business API webhook. Meta keeps rejecting it with the standard error: “The callback URL or verify token couldn’t be validated”.

I’ve isolated the issue to how n8n is returning the response, but I can’t figure out why it’s failing.

Here is my setup:

  • Hosting: Self-hosted n8n via Docker (Windows).
  • Tunnel: Cloudflare Tunnels (.trycloudflare.com).
  • Trigger Node: Webhook node, Method GET, Path whatsapp-incoming. The Respond option is strictly set to “Using ‘Respond to Webhook’ Node”.
  • Response Node: ‘Respond to Webhook’ node. Respond With is set to Text. The Response Body expression is exactly: {{ $json.query["hub.challenge"] }}.

Here is the weird behavior I’m experiencing:

  1. Network is fine: Meta’s request successfully reaches my n8n instance.
  2. Execution succeeds: In the Executions tab, the workflow finishes perfectly and shows a green “Succeeded” status.
  3. Expression parses correctly: When I check the execution details for the ‘Respond to Webhook’ node, it successfully captures and previews the exact challenge number sent by Meta.
  4. THE PROBLEM (Silent Failure): When I test the URL manually via my browser (e.g., https://my-cloudflare-url/webhook/whatsapp-incoming?hub.challenge=11223344), n8n registers a successful execution, but the browser displays a completely blank/white screen. It does not return the text, not even an error message. It returns an empty body.

Because the response body is empty instead of returning the raw challenge number, Meta rejects the verification.

I have already tried:

  • Removing all extra Response Headers in the ‘Respond to Webhook’ node.
  • Ensuring the expression is evaluated as an Expression (fx) and not as a static string.
  • Re-creating the webhook node.

Has anyone experienced this issue where the ‘Respond to Webhook’ node executes successfully but returns an empty body to the client? Am I missing a configuration?

Thanks in advance for any help!

Hey @Permadi, while you wait for a response, here are some things that might help:

Suggested resources

Automatically matched to your question.

Docs:

Forum:

@Republic1815, @tridi, @Anshul_Namdev - you’ve helped with similar issues before, can you take a look?

Automatically suggested by n8n’s community bot. It’s a pilot - please share feedback here.

Hey @Permadi Welcome to the n8n community !

I think your configuration is correct, So no need to switch to JSON or alter URLs. I tested your exact setup and it works perfectly.

The confusion comes from the output panel. By default, the ‘Respond to Webhook’ node shows its input, not the actual response it sends. If your expression resolves to empty, n8n still logs a successful green execution (HTTP 200) but sends a blank body. This matches your exact issue.

So open the Respond node, go to the Settings tab and turn on Enable Response Output Branch to see what got sent. If it’s empty, the expression isn’t resolving (often due to copied curly quotes), so retype the brackets by hand. If it shows 11223344 and the browser still gets nothing, then it’s the trycloudflare tunnel dropping the body and that’s a different hunt.

Let me know if this helps in anyway.

Hi @Permadi Welcome!
Respond With: Text sends Content-Type: text/html by default, and Meta’s handshake wants the challenge back as plain text with nothing wrapped around it. Removing the response headers left it on that default, so set it explicitly on the Respond to Webhook node, Name Content-Type and Value text/plain.
See this:

The one clue in your post that the answers above skip is this: your execution preview shows the challenge number, but the body arrives empty. That rules out the curly-quotes theory, because if the expression weren’t resolving you would not see the number in the preview at all. And it is not fully explained by content type either, since text/html would still send the number, just with the wrong header, not a blank body.

What fits all of your evidence is the type. hub.challenge comes in as a number, and Respond to Webhook in Text mode wants a string. When it gets a bare number some builds send nothing, which is exactly your green execution with an empty body.

Force it to a string and test again:

{{ $json.query[“hub.challenge”].toString() }}

or

{{ String($json.query[“hub.challenge”]) }}

If the browser now shows the number, that was it, and Meta will accept the handshake. Set the Content-Type header to text/plain as Anshul said while you are in there, since Meta does want plain text once the body is non-empty.

If it is still blank after casting to a string, then the tunnel is eating the body rather than n8n. trycloudflare quick tunnels drop small bodies intermittently, so hit the URL with curl -i straight against your container, bypassing Cloudflare. If curl shows the number and the browser through the tunnel does not, you have your answer and it is not n8n at all.