Why I get the error even though I have public access and repo_id created
“RepositoryNotFoundError: 401 Client Error. (Request ID: Root=1-6499c316-36fdbf28639766f02c540464)
Repository Not Found for url: https://huggingface.co/api/repos/create.
Please make sure you specified the correct
If you are trying to access a private or gated repo, make sure you are authenticated.
Invalid username or password.”
and i have correct username and password with my account
make sure the repo is in your profile the link you gived don’t go anywhere!
thanks for replay , my model and dataset is public , and I logged in already, and access token is also correct.
i checked them many times, even I generated new access tokens, but the error message is the same. when i push my new dataset to repo_id i get the error
I have the same issue and no help. im sure i set api code correctly and set secret in space but still cannot get code to recognise me
Did you solve it ? Having the same issue.
EDIT: My issue was i had a typo in the repo_id that doesn’t exists, yet I was getting "invalid username or password’. It should have said “repo_id doesn’t exists” or repoid returns 404
Your repo ID seems invalid too. “https://huggingface.co/api/repos/create” ? That doesn’t sounds like a valid space or dataset to me.
I had this same error when running in google colab. It was working locally. The only way I could fix it, so far, is by putting my secret token directly into the “TrainingArguments” object that is passed to the Trainer. Obviously, this is not a good practice, so hoping to find the root cause for this issue.