# Error 403! What to do about it?

**URL:** <https://discuss.huggingface.co/t/error-403-what-to-do-about-it/12983>\
**Category:** Beginners\
**Created:** [December 20, 2021, 1:26pm UTC](https://discuss.huggingface.co/t/error-403-what-to-do-about-it/12983 "2021-12-20T13:26:27Z")\
**Posts on this page:** 20\
**Page:** 1

<div class="post-metadata">

**Author:** ![AndrewChar](https://avatars.discourse-cdn.com/v4/letter/a/9e8a1a/32.png) [@AndrewChar](https://discuss.huggingface.co/u/AndrewChar)\
**Post date:** [December 20, 2021, 1:26pm UTC](https://discuss.huggingface.co/t/error-403-what-to-do-about-it/12983/1 "2021-12-20T13:26:27Z")

</div>

I can not save the model, it gives HTTPError: 403 Client Error: Forbidden for url: [https://huggingface.co/api/repos/create](https://huggingface.co/api/repos/create) - You don’t have the rights to create a model under this namespace how to fix?

---

<div class="post-metadata">

**Author:** ![BramVanroy](https://sea2.discourse-cdn.com/hellohellohello/user_avatar/discuss.huggingface.co/bramvanroy/32/47360_2.png) [@BramVanroy](https://discuss.huggingface.co/u/BramVanroy)\
**Post date:** [December 20, 2021, 1:47pm UTC](https://discuss.huggingface.co/t/error-403-what-to-do-about-it/12983/2 "2021-12-20T13:47:56Z")

</div>

This is an English-focused forum. Please translate your message - or use a translation engine.

---

<div class="post-metadata">

**Author:** ![milyiyo](https://sea2.discourse-cdn.com/hellohellohello/user_avatar/discuss.huggingface.co/milyiyo/32/59140_2.png) [@milyiyo](https://discuss.huggingface.co/u/milyiyo)\
**Post date:** [January 15, 2022, 11:45pm UTC](https://discuss.huggingface.co/t/error-403-what-to-do-about-it/12983/3 "2022-01-15T23:45:57Z")

</div>

Hi @AndrewChar

I was having the same error, and in my case the problem was that I was using a token with `read` role.

When I change it to one with `write` role, it worked for me.

I hope this can help you 🙂

---

<div class="post-metadata">

**Author:** ![akadriu](https://avatars.discourse-cdn.com/v4/letter/a/c5a1d2/32.png) [@akadriu](https://discuss.huggingface.co/u/akadriu)\
**Post date:** [January 31, 2022, 9:37pm UTC](https://discuss.huggingface.co/t/error-403-what-to-do-about-it/12983/4 "2022-01-31T21:37:56Z")

</div>

> [@milyiyo](#):
>
> write

This helped me too

---

<div class="post-metadata">

**Author:** ![Ghost1](https://sea2.discourse-cdn.com/hellohellohello/user_avatar/discuss.huggingface.co/ghost1/32/4584_2.png) [@Ghost1](https://discuss.huggingface.co/u/Ghost1)\
**Post date:** [April 25, 2022, 12:44am UTC](https://discuss.huggingface.co/t/error-403-what-to-do-about-it/12983/5 "2022-04-25T00:44:50Z")

</div>

Thanks Boss. Changing to write helped me

---

<div class="post-metadata">

**Author:** ![krunker](https://avatars.discourse-cdn.com/v4/letter/k/57b2e6/32.png) [@krunker](https://discuss.huggingface.co/u/krunker)\
**Post date:** [April 26, 2022, 6:58am UTC](https://discuss.huggingface.co/t/error-403-what-to-do-about-it/12983/6 "2022-04-26T06:58:34Z")

</div>

> I was having the same error, and in my case the problem was that I was using a token with `read` role.  
> When I change [krunker](https://krunkerio.io) to one with `write` role, it worked for me.  
> I hope this can help you 🙂

It helped me a lot. Thanks.

---

<div class="post-metadata">

**Author:** ![Abdelrahman-Rezk](https://sea2.discourse-cdn.com/hellohellohello/user_avatar/discuss.huggingface.co/abdelrahman-rezk/32/4689_2.png) [@Abdelrahman-Rezk](https://discuss.huggingface.co/u/Abdelrahman-Rezk)\
**Post date:** [May 9, 2022, 6:47am UTC](https://discuss.huggingface.co/t/error-403-what-to-do-about-it/12983/7 "2022-05-09T06:47:03Z")

</div>

Thanks @milyiyo

---

<div class="post-metadata">

**Author:** ![Ranit](https://avatars.discourse-cdn.com/v4/letter/r/ee7513/32.png) [@Ranit](https://discuss.huggingface.co/u/Ranit)\
**Post date:** [May 13, 2022, 12:05pm UTC](https://discuss.huggingface.co/t/error-403-what-to-do-about-it/12983/8 "2022-05-13T12:05:57Z")

</div>

How to change it?

---

<div class="post-metadata">

**Author:** ![milyiyo](https://sea2.discourse-cdn.com/hellohellohello/user_avatar/discuss.huggingface.co/milyiyo/32/59140_2.png) [@milyiyo](https://discuss.huggingface.co/u/milyiyo)\
**Post date:** [May 13, 2022, 2:24pm UTC](https://discuss.huggingface.co/t/error-403-what-to-do-about-it/12983/9 "2022-05-13T14:24:52Z")

</div>

Hi Ranit,

In the tokens’ section of the settings ([Hugging Face – The AI community building the future.](https://huggingface.co/settings/tokens)), you can create a new token specifying the role _write_.

![image](https://us1.discourse-cdn.com/hellohellohello/original/2X/c/c9233743c8aee815626b65c2d0d4a03f340a5971.png)

Then you can use that one when you try to login:

`huggingface-cli login`

I hope this can help you 🙂

---

<div class="post-metadata">

**Author:** ![Ranit](https://avatars.discourse-cdn.com/v4/letter/r/ee7513/32.png) [@Ranit](https://discuss.huggingface.co/u/Ranit)\
**Post date:** [May 13, 2022, 7:48pm UTC](https://discuss.huggingface.co/t/error-403-what-to-do-about-it/12983/10 "2022-05-13T19:48:40Z")

</div>

Thank you so much!

---

<div class="post-metadata">

**Author:** ![averof](https://avatars.discourse-cdn.com/v4/letter/a/ecc23a/32.png) [@averof](https://discuss.huggingface.co/u/averof)\
**Post date:** [September 26, 2022, 12:11am UTC](https://discuss.huggingface.co/t/error-403-what-to-do-about-it/12983/11 "2022-09-26T00:11:34Z")

</div>

I have this problem with a write token.

---

<div class="post-metadata">

**Author:** ![benflight](https://avatars.discourse-cdn.com/v4/letter/b/f1d935/32.png) [@benflight](https://discuss.huggingface.co/u/benflight)\
**Post date:** [October 20, 2022, 1:11am UTC](https://discuss.huggingface.co/t/error-403-what-to-do-about-it/12983/12 "2022-10-20T01:11:35Z")

</div>

also have this problem with a write token

---

<div class="post-metadata">

**Author:** ![sizhkhy](https://sea2.discourse-cdn.com/hellohellohello/user_avatar/discuss.huggingface.co/sizhkhy/32/22146_2.png) [@sizhkhy](https://discuss.huggingface.co/u/sizhkhy)\
**Post date:** [October 20, 2022, 11:48am UTC](https://discuss.huggingface.co/t/error-403-what-to-do-about-it/12983/13 "2022-10-20T11:48:28Z")

</div>

If you have come from fastai c22p2 and are trying to access `"CompVis/stable-diffusion-v1-4"`, you need to go the relevant webpage in huggingface and accept the license first.

---

<div class="post-metadata">

**Author:** ![Yassershrief](https://sea2.discourse-cdn.com/hellohellohello/user_avatar/discuss.huggingface.co/yassershrief/32/12873_2.png) [@Yassershrief](https://discuss.huggingface.co/u/Yassershrief)\
**Post date:** [December 11, 2022, 9:15am UTC](https://discuss.huggingface.co/t/error-403-what-to-do-about-it/12983/14 "2022-12-11T09:15:04Z")

</div>

Thank you its solved

---

<div class="post-metadata">

**Author:** ![MukeshYadav](https://avatars.discourse-cdn.com/v4/letter/m/8c91f0/32.png) [@MukeshYadav](https://discuss.huggingface.co/u/MukeshYadav)\
**Post date:** [December 17, 2022, 5:53am UTC](https://discuss.huggingface.co/t/error-403-what-to-do-about-it/12983/15 "2022-12-17T05:53:25Z")

</div>

Thank you a lot. It helped

---

<div class="post-metadata">

**Author:** ![kevinkwshin](https://avatars.discourse-cdn.com/v4/letter/k/a6a055/32.png) [@kevinkwshin](https://discuss.huggingface.co/u/kevinkwshin)\
**Post date:** [January 16, 2023, 8:17am UTC](https://discuss.huggingface.co/t/error-403-what-to-do-about-it/12983/16 "2023-01-16T08:17:10Z")

</div>

I had the same issue; changing roles to “write” solved the problem.  
Thank you.

---

<div class="post-metadata">

**Author:** ![zirui3](https://sea2.discourse-cdn.com/hellohellohello/user_avatar/discuss.huggingface.co/zirui3/32/32893_2.png) [@zirui3](https://discuss.huggingface.co/u/zirui3)\
**Post date:** [January 30, 2023, 7:40am UTC](https://discuss.huggingface.co/t/error-403-what-to-do-about-it/12983/17 "2023-01-30T07:40:33Z")

</div>

thank you so much!

---

<div class="post-metadata">

**Author:** ![Shreevarshan91](https://avatars.discourse-cdn.com/v4/letter/s/bc79bd/32.png) [@Shreevarshan91](https://discuss.huggingface.co/u/Shreevarshan91)\
**Post date:** [March 16, 2023, 11:27am UTC](https://discuss.huggingface.co/t/error-403-what-to-do-about-it/12983/18 "2023-03-16T11:27:35Z")

</div>

Thanks a lot brother

---

<div class="post-metadata">

**Author:** ![Hederson](https://avatars.discourse-cdn.com/v4/letter/h/76d3ee/32.png) [@Hederson](https://discuss.huggingface.co/u/Hederson)\
**Post date:** [April 28, 2023, 8:20pm UTC](https://discuss.huggingface.co/t/error-403-what-to-do-about-it/12983/19 "2023-04-28T20:20:46Z")

</div>

It was as show!!! Thank you!

---

<div class="post-metadata">

**Author:** ![Samalabama66](https://avatars.discourse-cdn.com/v4/letter/s/ecd19e/32.png) [@Samalabama66](https://discuss.huggingface.co/u/Samalabama66)\
**Post date:** [July 23, 2023, 5:39am UTC](https://discuss.huggingface.co/t/error-403-what-to-do-about-it/12983/20 "2023-07-23T05:39:31Z")

</div>

![Screenshot 2023-07-23 at 13.37.32](https://us1.discourse-cdn.com/hellohellohello/original/3X/2/2/22240a016856cd53af08994268e4c89b65b9489e.png)

But I still get an error

[Next page](https://discuss.huggingface.co/t/error-403-what-to-do-about-it/12983.md?page=2)
