Hi,
Thanks in advance if you’re able to help out.
- All the code that leads to the problem:
curl -H "Authorization: Bearer hf_<...>bfQ" https://huggingface.co/api/whoami
- The full error message:
{"error":"Invalid credentials in Authorization header"}
-
Provide the version of the library you are using:
I’m not using a library for this -
If you have tried something in particular to solve your problem, don’t hesitate to mention it as well:
I tried to use the credentials initially in an n8n workflow → http request node. The curl is the simplest way to express this problem.
Please find attached shot of the tokens I setup:
The error message is clear as to what the problem is (unauthorized). What I do not know is why and/or why Huggingface server interprets the access token as anauthorized?