# שגיאת 401 Unauthorized לאחר ההתחברות

**URL:** <https://meta.discourse.org/t/401-unauthorized-error-after-login/316489>\
**Category:** Self-hosting\
**Created:** [16 ביולי,‏ 2024,‏ 7:39am UTC](https://meta.discourse.org/t/401-unauthorized-error-after-login/316489 "2024-07-16T07:39:24Z")\
**Posts on this page:** 1\
**Showing post:** 1

<div class="post-metadata">

**Author:** ![Anjali\_Kumari](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/anjali_kumari/32/431915_2.png) [@Anjali\_Kumari](https://meta.discourse.org/u/Anjali_Kumari)\
**Post date:** [16 ביולי,‏ 2024,‏ 7:39am UTC](https://meta.discourse.org/t/401-unauthorized-error-after-login/316489/1 "2024-07-16T07:39:24Z")

</div>

### **Description:**

I am experiencing a persistent 401 Unauthorized error when attempting to access the UI. This error occurs after a user has been logged in for approximately 20-30 minutes. Additionally, there seems to be a 5-10 minute delay before being able to log in again after the session times out.

**Steps to Reproduce:**

- Log in to the application.
- Access the UI after 20-30 minutes of inactivity.
- Observe the 401 Unauthorized error.

**Expected Behavior:**  
The user should remain authenticated and be able to access the UI without encountering a 401 error.

**Actual Behavior:**  
After 20-30 minutes, the application returns a 401 Unauthorized error for the requested endpoint.

**Additional Information:**

I have implemented auth\_digest\_timeout in the NGINX configuration, but the issue persists.  
Used curl for testing authentication, which initially succeeded but eventually returns a 401 error after the timeout.

Environment:  
NGINX version: 1.25.4

**curl -v --digest -u admin:admin [http://192.168.10.148:20001/stream-viewer?stream](http://192.168.10.148:20001/stream-viewer?stream)**

 ![image](https://global.discourse-cdn.com/meta/original/4X/2/d/c/2dcb3f09e23bad1151dc764a889bd11058926be4.png)

 ![image](https://global.discourse-cdn.com/meta/original/4X/c/5/5/c556cc044c08e79ea7ece21dffa0a893d226915d.png)

---

_[View the full topic](https://meta.discourse.org/t/401-unauthorized-error-after-login/316489)._
