Account Issue: New API Tokens all fail with 401 Unauthorized Error

  • MY Hugging Face username is junie-ch.
  • I am getting a 401 Unauthorized error on all models, including public models like google/flan-t5-large.
  • I have already generated multiple brand new tokens with write permissions, and they all fail immediately.
  • I have proven it is not your code by using a direct, minimal InferenceClient test script.
1 Like

If you have an account problem, please contact HF by email first. website@huggingface.co Don’t forget to include your username.
This is a very unusual phenomenon.

I have the same problem. I am using public dataset, and its failing with

HfHubHTTPError: 401 Client Error: Unauthorized for url: https://huggingface.co/datasets/mnist/resolve/main/README.md (Request ID: Root=1-685ae627-66e5f32d4bcb9d54761df6df;5a7560f3-d68e-4650-a034-9c0cb7791675)
Invalid credentials in Authorization header

1 Like

That means there are at least three people in total…

It might be a bug. I’ll ping the staff just in case. @meganariley @pierric