# Code 401 : Request failed with status code 401

**URL:** <https://community.n8n.io/t/code-401-request-failed-with-status-code-401/40777>\
**Category:** Questions\
**Created:** [February 23, 2024, 9:47pm UTC](https://community.n8n.io/t/code-401-request-failed-with-status-code-401/40777 "2024-02-23T21:47:11Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![Maroczy](https://dub1.discourse-cdn.com/n8n/user_avatar/community.n8n.io/maroczy/32/35966_2.png) [@Maroczy](https://community.n8n.io/u/Maroczy)\
**Post date:** [February 23, 2024, 9:47pm UTC](https://community.n8n.io/t/code-401-request-failed-with-status-code-401/40777/1 "2024-02-23T21:47:11Z")

</div>

## Describe the problem/error/question

Hello n8n community

(Sorry for my English, I still have progress to make)

Here is my problem, when I run n8n in localhost, no problem  
When I connect remotely (outside my local network) unable to connect due to Code 401 error

I don’t know what to do to fix this problem

Thanks you for your help

## What is the error message (if any)?

 ![image](https://europe1.discourse-cdn.com/n8n/original/3X/9/4/944fd833aca8e9cb06eb489f045a832eb07a83a9.png)

## Share the output returned by the last node

 ![image](https://europe1.discourse-cdn.com/n8n/original/3X/0/c/0c4e3fe3b204383e0b03e6f2e8f3ee9246117bff.png)

## Information on your n8n setup

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

---

<div class="post-metadata">

**Author:** ![Jon](https://dub1.discourse-cdn.com/n8n/user_avatar/community.n8n.io/jon/32/40174_2.png) [@Jon](https://community.n8n.io/u/Jon)\
**Post date:** [February 29, 2024, 9:07pm UTC](https://community.n8n.io/t/code-401-request-failed-with-status-code-401/40777/2 "2024-02-29T21:07:26Z")

</div>

Hey @Maroczy,

What are you trying to connect? If you can provide more details we can take a look. It is also worth noting that `own` is not a supported option anymore.

---

<div class="post-metadata">

**Author:** ![Maroczy](https://dub1.discourse-cdn.com/n8n/user_avatar/community.n8n.io/maroczy/32/35966_2.png) [@Maroczy](https://community.n8n.io/u/Maroczy)\
**Post date:** [February 29, 2024, 10:23pm UTC](https://community.n8n.io/t/code-401-request-failed-with-status-code-401/40777/3 "2024-02-29T22:23:12Z")

</div>

Hi Jon

I found the solution, I misconfigured my NGINX proxy  
It’s resolved

Thank you for your answer  
(I love n8n, thank you to the entire team)

---

<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:** [March 7, 2024, 10:23pm UTC](https://community.n8n.io/t/code-401-request-failed-with-status-code-401/40777/4 "2024-03-07T22:23:42Z")

</div>

Closed on March 7, 2024, 10:23pm UTC

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