# Error loading a CSV file from a private repo

**URL:** </static-proxy?url=https%3A%2F%2Fdiscuss.huggingface.co%2Ft%2Ferror-loading-a-csv-file-from-a-private-repo%2F26693%3E%5C
**Category:** Beginners\
**Created:** [November 25, 2022, 2:14pm UTC](/static-proxy?url=https%3A%2F%2Fdiscuss.huggingface.co%2Ft%2Ferror-loading-a-csv-file-from-a-private-repo%2F26693 "2022-11-25T14:14:20Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![sl02](https://avatars.discourse-cdn.com/v4/letter/s/ba9def/32.png) [@sl02](/static-proxy?url=https%3A%2F%2Fdiscuss.huggingface.co%2Fu%2Fsl02)%5C
**Post date:** [November 25, 2022, 2:14pm UTC](/static-proxy?url=https%3A%2F%2Fdiscuss.huggingface.co%2Ft%2Ferror-loading-a-csv-file-from-a-private-repo%2F26693%2F1 "2022-11-25T14:14:20Z")

</div>

I tried running the following command

`dataset = load_dataset("csv", data_files="https://huggingface.co/sl02/np-datasets/resolve/main/org_datasets/distinct_org_classes_with_depth.csv", use_auth_token=True)`

but it fails with the following error

HTTPError: 404 Client Error: Not Found for url

I have set the token successfully and generated the url with the `hf_hub_url()` function

So I am not sure why the url is incorrect. Any idea what I am missing here?

---

<div class="post-metadata">

**Author:** ![sl02](https://avatars.discourse-cdn.com/v4/letter/s/ba9def/32.png) [@sl02](/static-proxy?url=https%3A%2F%2Fdiscuss.huggingface.co%2Fu%2Fsl02)%5C
**Post date:** [November 25, 2022, 5:34pm UTC](/static-proxy?url=https%3A%2F%2Fdiscuss.huggingface.co%2Ft%2Ferror-loading-a-csv-file-from-a-private-repo%2F26693%2F2 "2022-11-25T17:34:31Z")

</div>

In case anyone else has the same issue, it is because the URL was missing the `repo_type`; it should have read  
`https://huggingface.co/datasets/sl02/np-datasets/resolve/main/org_datasets/distinct_org_classes_with_depth.csv`
