# Persistent 401 Unauthorized Error on Gated Models

**URL:** </static-proxy?url=https%3A%2F%2Fdiscuss.huggingface.co%2Ft%2Fpersistent-401-unauthorized-error-on-gated-models%2F163756%3E%5C
**Category:** Intermediate\
**Created:** [July 19, 2025, 11:19pm UTC](/static-proxy?url=https%3A%2F%2Fdiscuss.huggingface.co%2Ft%2Fpersistent-401-unauthorized-error-on-gated-models%2F163756 "2025-07-19T23:19:50Z")\
**Posts on this page:** 1\
**Showing post:** 2

<div class="post-metadata">

**Author:** ![John6666](https://sea2.discourse-cdn.com/hellohellohello/user_avatar/discuss.huggingface.co/john6666/32/27664_2.png) [@John6666](/static-proxy?url=https%3A%2F%2Fdiscuss.huggingface.co%2Fu%2FJohn6666)%5C
**Post date:** [July 20, 2025, 2:22am UTC](/static-proxy?url=https%3A%2F%2Fdiscuss.huggingface.co%2Ft%2Fpersistent-401-unauthorized-error-on-gated-models%2F163756%2F2 "2025-07-20T02:22:29Z")

</div>

First, [try whoami-v2](/static-proxy?url=https%3A%2F%2Fdiscuss.huggingface.co%2Ft%2Fhow-do-you-use-the-whoami-endpoint%2F15830%2F2)%2C which should make verification easy.

---

_[View the full topic](/static-proxy?url=https%3A%2F%2Fdiscuss.huggingface.co%2Ft%2Fpersistent-401-unauthorized-error-on-gated-models%2F163756)._
