Remote: Repository not found

I created a private gradio space and was able to clone it and push to it multiple times.
I create a new organization, and then moved the space into that organization.
I did a: git remote set-url origin https://huggingface.co/spaces/mindlytics/analytics-demo
But now when I try to pull/push, I get

remote: Repository not found
fatal: repository ‘https://huggingface.co/spaces/mindlytics/analytics-demo/’ not found

The old path gives me the same error. But the space is live on HF, I can visit the space and see the repo!

1 Like

Hey @aqpeeb !
I think you should check your authentication with huggingface.
Authenticate with Hugging Face: If authentication is required, make sure you’re logged in to Hugging Face via the CLI:

bash

CopyEdit

huggingface-cli login

Enter your token when prompted. If the Space belongs to an organization, ensure you have the proper permissions.

And then you should check your huggingface api token has the authorization to use the organization or repository.

Hope this help!

2 Likes

You are correct, that was exactly the problem. I missed the organization permissions.

1 Like

This topic was automatically closed 12 hours after the last reply. New replies are no longer allowed.