# Authentication Error Datasets

**URL:** <https://discuss.huggingface.co/t/authentication-error-datasets/40473>\
**Category:** 🤗Datasets\
**Created:** [May 20, 2023, 3:42pm UTC](https://discuss.huggingface.co/t/authentication-error-datasets/40473 "2023-05-20T15:42:31Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![GetzPro](https://sea2.discourse-cdn.com/hellohellohello/user_avatar/discuss.huggingface.co/getzpro/32/18379_2.png) [@GetzPro](https://discuss.huggingface.co/u/GetzPro)\
**Post date:** [May 20, 2023, 3:42pm UTC](https://discuss.huggingface.co/t/authentication-error-datasets/40473/1 "2023-05-20T15:42:31Z")

</div>

Hi, hope you all can help.

I am using VSC to download models and datasets locally. For datasets (and a few models but mostly models DL just fine) I receive this error.

```auto
Repository Not Found for url: https://huggingface.co/api/models/winogrande/revision/main.
Please make sure you specified the correct `repo_id` and `repo_type`.
If you are trying to access a private or gated repo, make sure you are authenticated.

```

Code:

```auto
from huggingface_hub import snapshot_download
access_token = "hf_...."
from dataset_list import *
for x in datasets:
    print(snapshot_download(repo_id=x,local_dir="/Volumes/Dataset/"+x, cache_dir="/Volumes/Dataset/hugging_cache", use_auth_token=access_token))

```

This apparently is not the way I need to auth in. I know this is a correct repository as I copy/paste from HF.

Any thoughts/links?

Thank you!

---

<div class="post-metadata">

**Author:** ![GetzPro](https://sea2.discourse-cdn.com/hellohellohello/user_avatar/discuss.huggingface.co/getzpro/32/18379_2.png) [@GetzPro](https://discuss.huggingface.co/u/GetzPro)\
**Post date:** [May 21, 2023, 12:24am UTC](https://discuss.huggingface.co/t/authentication-error-datasets/40473/2 "2023-05-21T00:24:50Z")

</div>

I needed `repo_type="dataset"` in my print string.

```auto
print(snapshot_download(repo_type="dataset", repo_id=x,local_dir="/Volumes/Dataset/"+x, cache_dir="/Volumes/Dataset/hugging_cache", use_auth_token=access_token))

```
