# Webhook works in test but not in Production

**URL:** <https://community.n8n.io/t/webhook-works-in-test-but-not-in-production/5480>\
**Category:** Questions\
**Created:** [April 27, 2021, 5:05pm UTC](https://community.n8n.io/t/webhook-works-in-test-but-not-in-production/5480 "2021-04-27T17:05:44Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![Jorge\_M](https://dub1.discourse-cdn.com/n8n/user_avatar/community.n8n.io/jorge_m/32/2336_2.png) [@Jorge\_M](https://community.n8n.io/u/Jorge_M)\
**Post date:** [April 27, 2021, 5:05pm UTC](https://community.n8n.io/t/webhook-works-in-test-but-not-in-production/5480/1 "2021-04-27T17:05:44Z")

</div>

Hi,  
I am seeing that webhook works fine when testing (POST webhook), but it does not in Production.  
I noticed I have not defined the Webhook tunnel, so could this be the issue or should I look for something else?

Thank you very much.

---

<div class="post-metadata">

**Author:** ![RicardoE105](https://dub1.discourse-cdn.com/n8n/user_avatar/community.n8n.io/ricardoe105/32/550_2.png) [@RicardoE105](https://community.n8n.io/u/RicardoE105)\
**Post date:** [April 27, 2021, 7:28pm UTC](https://community.n8n.io/t/webhook-works-in-test-but-not-in-production/5480/2 "2021-04-27T19:28:39Z")

</div>

Are you activating the workflow? If so, make sure you are copying the URL when the tab is `production.` Also, your URL should not be `localhost`. If your says localhost, then you have to set the env variable `WEBHOOK_TUNNEL_URL`.

 ![Screen Shot 2021-04-27 at 3.25.12 PM](https://europe1.discourse-cdn.com/n8n/original/2X/1/1e2ebb21e397b3b60332265c486754b91b59d27f.png)

---

<div class="post-metadata">

**Author:** ![Jorge\_M](https://dub1.discourse-cdn.com/n8n/user_avatar/community.n8n.io/jorge_m/32/2336_2.png) [@Jorge\_M](https://community.n8n.io/u/Jorge_M)\
**Post date:** [April 29, 2021, 6:38pm UTC](https://community.n8n.io/t/webhook-works-in-test-but-not-in-production/5480/3 "2021-04-29T18:38:27Z")

</div>

Hi @RicardoE105,  
Yes I am activating 🙂. My configuration is as per the documentation:

# Folder where data should be saved

DATA\_FOLDER=/root/n8n/

# The top level domain to serve from

DOMAIN\_NAME=XXXX

# The subdomain to serve from

SUBDOMAIN=n8n

# DOMAIN\_NAME and SUBDOMAIN combined decide where n8n will be reachable from

# above example would result in: [https://n8n.example.com](https://n8n.example.com)

# The user name to use for autentication - IMPORTANT ALWAYS CHANGE!

N8N\_BASIC\_AUTH\_USER=XXXXX

# The password to use for autentication - IMPORTANT ALWAYS CHANGE!

N8N\_BASIC\_AUTH\_PASSWORD=XXXXXX

# Optional timezone to set which gets used by Cron-Node by default

# If not set New York time will be used

GENERIC\_TIMEZONE=Europe/Berlin

# The email address to use for the SSL certificate creation

SSL\_EMAIL=XXXXX

Thank you.

Best,  
Jorge

---

<div class="post-metadata">

**Author:** ![Captcha](https://avatars.discourse-cdn.com/v4/letter/c/8797f3/32.png) [@Captcha](https://community.n8n.io/u/Captcha)\
**Post date:** [January 28, 2025, 8:02pm UTC](https://community.n8n.io/t/webhook-works-in-test-but-not-in-production/5480/4 "2025-01-28T20:02:20Z")

</div>

I am getting the same error. how is it fixed?
