Thank you for the initial responses and support so far. To summarize the issue:
- I receive a
401 Unauthorizederror when attempting to access the/modelsendpoint usingcurland a valid token. - I have tried the following:
- Generating both fine-grained and read-only tokens with appropriate permissions.
- Using the
Connection: closeheader to ensure the connection is terminated after the request. - Testing the token immediately after creation to rule out expiration issues.
- Confirming that other endpoints like individual model queries also fail.
- A fellow community member, John, confirmed the same issue on his setup using his own token.
It seems this issue might not be specific to my account or setup but rather a broader issue with token validation for the /models endpoint.
Could you clarify:
- Is there any restriction on accessing the
/modelsendpoint with the current API tokens? - Are there known issues with token validation at the moment?
- Should I be using a specific token type or account tier to access this functionality?
If this requires deeper investigation, could you direct me to the appropriate Hugging Face support channel or escalation path?
Thank you again for your time and assistance. I look forward to your guidance.
Best regards,
Miguel