# Webhook - handle Authorization failure

**URL:** <https://community.n8n.io/t/webhook-handle-authorization-failure/48837>\
**Category:** Questions\
**Created:** [June 21, 2024, 3:39am UTC](https://community.n8n.io/t/webhook-handle-authorization-failure/48837 "2024-06-21T03:39:11Z")\
**Posts on this page:** 7\
**Page:** 1

<div class="post-metadata">

**Author:** ![runriot](https://dub1.discourse-cdn.com/n8n/user_avatar/community.n8n.io/runriot/32/26042_2.png) [@runriot](https://community.n8n.io/u/runriot)\
**Post date:** [June 21, 2024, 3:39am UTC](https://community.n8n.io/t/webhook-handle-authorization-failure/48837/1 "2024-06-21T03:39:11Z")

</div>

Hey

**TL;DR;**  
Is there a way to catch and action on an Authorization Error in the webhook node?

**Longer version:**  
I have a Webhook node set up in a workflow (as the starting point), and have Header Auth set up on the Webhook.

If the webhook is called with incorrect Auth, it returns 401 Authorization data is wrong! (which is as expected), however I would like my Workflow to report on this - for example, an email node to send me an email saying “Hey, this Webhook was called, incorrectly”.

Is this possible?

I have an error handler workflow set up, but it doesn’t seem to be triggered by a failed Auth on the webhook.

Thanks in advance,  
Rob

- **n8n version: latest**
- **Database - default: SQLite):**
- **Running n8n via Docker (self-hosted)**
- **Operating system: Ubuntu 22.04**

---

<div class="post-metadata">

**Author:** ![n8n](https://dub1.discourse-cdn.com/n8n/user_avatar/community.n8n.io/n8n/32/196425_2.png) [@n8n](https://community.n8n.io/u/n8n)\
**Post date:** [June 21, 2024, 3:39am UTC](https://community.n8n.io/t/webhook-handle-authorization-failure/48837/2 "2024-06-21T03:39:12Z")

</div>

It looks like your topic is missing some important information. Could you provide the following if applicable.

- **n8n version:**
- **Database (default: SQLite):**
- **n8n EXECUTIONS\_PROCESS setting (default: own, main):**
- **Running n8n via (Docker, npm, n8n cloud, desktop app):**
- **Operating system:**

---

<div class="post-metadata">

**Author:** ![Ludwig](https://dub1.discourse-cdn.com/n8n/user_avatar/community.n8n.io/ludwig/32/58969_2.png) [@Ludwig](https://community.n8n.io/u/Ludwig)\
**Post date:** [June 21, 2024, 4:14am UTC](https://community.n8n.io/t/webhook-handle-authorization-failure/48837/3 "2024-06-21T04:14:03Z")

</div>

Hey @runriot! Thanks for reaching out!

You could handle it similar to the solution offered in this thread wherein you continue on fail through the webhook call and conditionally output details about the response: [Webhook Error in workflow details - #4 by MutedJam](http://community.n8n.io/t/webhook-error-in-workflow-details/20467/4)

---

<div class="post-metadata">

**Author:** ![runriot](https://dub1.discourse-cdn.com/n8n/user_avatar/community.n8n.io/runriot/32/26042_2.png) [@runriot](https://community.n8n.io/u/runriot)\
**Post date:** [June 21, 2024, 4:20am UTC](https://community.n8n.io/t/webhook-handle-authorization-failure/48837/4 "2024-06-21T04:20:36Z")

</div>

Thanks - that looks like it’d work, but I don’t see the “Continue on Fail” option on the Webhook node…

Options offered are:

 ![options](https://europe1.discourse-cdn.com/n8n/original/3X/a/3/a316275c6237b8ccc0346f2d695ac426dceec0ad.png)

And webhook node settings are:

 ![settings](https://europe1.discourse-cdn.com/n8n/original/3X/a/f/aff43b8587c175268691e0db37a5be14cbef3af3.png)

NB I noticed it’s Webhook node v1 as oppose to v2, but just tested a v2 node and the options are no different.

Am I missing something?

Thanks

---

<div class="post-metadata">

**Author:** ![Ludwig](https://dub1.discourse-cdn.com/n8n/user_avatar/community.n8n.io/ludwig/32/58969_2.png) [@Ludwig](https://community.n8n.io/u/Ludwig)\
**Post date:** [June 21, 2024, 4:29am UTC](https://community.n8n.io/t/webhook-handle-authorization-failure/48837/5 "2024-06-21T04:29:05Z")

</div>

@runriot There was an assumption on my part that you were calling the webhook from another workflow. Is that the case? Or are you calling it from an external service?

You are correct that the webhook node itself does not have that option, but the HTTP Request node does if you use that to call the webhook.

---

<div class="post-metadata">

**Author:** ![runriot](https://dub1.discourse-cdn.com/n8n/user_avatar/community.n8n.io/runriot/32/26042_2.png) [@runriot](https://community.n8n.io/u/runriot)\
**Post date:** [June 21, 2024, 5:37am UTC](https://community.n8n.io/t/webhook-handle-authorization-failure/48837/6 "2024-06-21T05:37:33Z")

</div>

Hey

I’m calling the n8n webhook from an external service.

Thinking about it… The webhook endpoint will most likely just return the 401 state at the header, and then cease - ie not even being able to proceed for the node to pick up the request - so it’s likely impossible to catch it within n8n?

Makes more sense to catch it at the external service end (but in this case, it has no ability to do so, hence this question!)

---

<div class="post-metadata">

**Author:** ![system](https://dub1.discourse-cdn.com/n8n/user_avatar/community.n8n.io/system/32/195824_2.png) [@system](https://community.n8n.io/u/system)\
**Post date:** [September 19, 2024, 5:37am UTC](https://community.n8n.io/t/webhook-handle-authorization-failure/48837/7 "2024-09-19T05:37:46Z")

</div>

Closed on September 19, 2024, 5:37am UTC

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