Now, did I issue the token incorrectly?

I’ve been struggling with tokens all day today. I typed the huggingface-cli login command in anaconda and entered the token I received. And I keep getting the following error message:
raise HTTPError(
requests.exceptions.HTTPError: Invalid user token. If you didn’t pass a user token, make sure you are properly logged in
by executing huggingface-cli login, and if you did pass a user token, double-check it’s correct.
I have issued and refreshed tokens more than 5 times today.
At first, I was able to log in.
However, the 401 permission error did not go away, and I entered the newly issued token, but I am not able to log in at all.
How do I solve this problem?
I was issued a token that can read and write. After issuing, I pressed the button to save it to the clipboard.

1 Like

Maybe it’s because it’s Anaconda that the token isn’t being passed properly…?

If the token isn’t being passed even after calling login() within the program, that’s quite a headache. It could also be a network connection issue. Anyway, the reasons and solutions seem to vary widely depending on the person…

It might also happen when using a gated model, but I think that’s probably not the case this time.