Error 403! What to do about it?

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

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

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 :slight_smile:

17 Likes

This helped me too

Thanks Boss. Changing to write helped me

1 Like

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 to one with write role, it worked for me.
I hope this can help you :slight_smile:

It helped me a lot. Thanks.

Thanks @milyiyo

How to change it?

Hi Ranit,

In the tokens’ section of the settings (Hugging Face – The AI community building the future.), you can create a new token specifying the role write.

image

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

huggingface-cli login

I hope this can help you :slight_smile:

2 Likes

Thank you so much!

I have this problem with a write token.