{'error': 'The dataset does not exist, or is not accessible without authentication (private or gated). Please retry with authentication.'}
However, when I make the repository public, it returns {'valid': True}. But, when I run the first-rows API, I get the following message
re “The response is not ready yet. Please retry later”: the responses to the API endpoints are pre-computed asynchronously and can take some time to be processed, depending on the dataset itself and on the load of the servers.
Hello! The dataset preview is now available for the Pro accounts. Should not it be the case for the API? I cannot do something as simple as retrieving the URLs. Thanks!
headers = {"Authorization": f"Bearer {API_TOKEN}"}
reseponse = requests.get(f"https://datasets-server.huggingface.co/parquet?dataset={dataset_name}")
json_data = reseponse.json()
urls = [f['url'] for f in json_data['parquet_files'] if f['split'] == 'test']
Thanks! I still receive FileNotFoundError. The issue, as in the original post, is that the repository is private. It is my repository, and I am logged in with an access token.
Can you check that your token has the right permissions ? I just tried on my side and I couldn’t reproduce the FileNotFoundError on a the parquet branch of a private repo with a token