ConnectionError: Couldn't reach https://huggingface.co/datasets/oscar-corpus/OSCAR-2109/resolve/main/OSCAR-2109.py
MEMBER
Hi ! Thanks for reporting :)
I think this is because the dataset is behind an access page. We can fix the dataset viewer

If you also have this error when you use the `datasets` library in python, you should probably pass `use_auth_token=True` to the `load_dataset()` function to use your account to access the dataset.
2021-11-16T17:31:36Z
https://github.com/huggingface/datasets/issues/3282#issuecomment-970501797
https://api.github.com/repos/huggingface/datasets/issues/3282
IC_kwDODunzps452K6l
https://api.github.com/repos/huggingface/datasets/issues/comments/970501797/reactions
2021-11-16T17:31:36Z
https://api.github.com/repos/huggingface/datasets/issues/comments/970501797
https://avatars.githubusercontent.com/u/42851186?v=4
https://api.github.com/users/lhoestq/events{/privacy}
https://api.github.com/users/lhoestq/followers
https://api.github.com/users/lhoestq/following{/other_user}
https://api.github.com/users/lhoestq/gists{/gist_id}
https://github.com/lhoestq
lhoestq
MDQ6VXNlcjQyODUxMTg2
https://api.github.com/users/lhoestq/orgs
https://api.github.com/users/lhoestq/received_events
https://api.github.com/users/lhoestq/repos
https://api.github.com/users/lhoestq/starred{/owner}{/repo}
https://api.github.com/users/lhoestq/subscriptions
User
https://api.github.com/users/lhoestq
public
NONE
Ah ok, I didn't realise about the login page. I'll try `use_auth_token=True` and see if that solves it.

Regards!
2021-11-16T22:00:04Z
https://github.com/huggingface/datasets/issues/3282#issuecomment-970716556
https://api.github.com/repos/huggingface/datasets/issues/3282
IC_kwDODunzps452_WM
https://api.github.com/repos/huggingface/datasets/issues/comments/970716556/reactions
2021-11-16T22:00:04Z
https://api.github.com/repos/huggingface/datasets/issues/comments/970716556
https://avatars.githubusercontent.com/u/10078549?v=4
https://api.github.com/users/MinionAttack/events{/privacy}
https://api.github.com/users/MinionAttack/followers
https://api.github.com/users/MinionAttack/following{/other_user}
https://api.github.com/users/MinionAttack/gists{/gist_id}
https://github.com/MinionAttack
MinionAttack
MDQ6VXNlcjEwMDc4NTQ5
https://api.github.com/users/MinionAttack/orgs
https://api.github.com/users/MinionAttack/received_events
https://api.github.com/users/MinionAttack/repos
https://api.github.com/users/MinionAttack/starred{/owner}{/repo}
https://api.github.com/users/MinionAttack/subscriptions
User
https://api.github.com/users/MinionAttack
public
NONE
Hi, 

Using `use_auth_token=True` and downloading the credentials with `huggingface-cli login` (stored in .huggingface/token) solved the issue.

Should I leave the issue open until you fix the Dataset viewer issue?
2021-11-17T08:47:43Z
https://github.com/huggingface/datasets/issues/3282#issuecomment-971362402
https://api.github.com/repos/huggingface/datasets/issues/3282
IC_kwDODunzps455dBi
https://api.github.com/repos/huggingface/datasets/issues/comments/971362402/reactions
2021-11-17T08:47:43Z
https://api.github.com/repos/huggingface/datasets/issues/comments/971362402
https://avatars.githubusercontent.com/u/10078549?v=4
https://api.github.com/users/MinionAttack/events{/privacy}
https://api.github.com/users/MinionAttack/followers
https://api.github.com/users/MinionAttack/following{/other_user}
https://api.github.com/users/MinionAttack/gists{/gist_id}
https://github.com/MinionAttack
MinionAttack
MDQ6VXNlcjEwMDc4NTQ5
https://api.github.com/users/MinionAttack/orgs
https://api.github.com/users/MinionAttack/received_events
https://api.github.com/users/MinionAttack/repos
https://api.github.com/users/MinionAttack/starred{/owner}{/repo}
https://api.github.com/users/MinionAttack/subscriptions
User
https://api.github.com/users/MinionAttack
public
MEMBER
Cool ! Yes let's keep this issue open until the viewer is fixed - I'll close it when this is fixed. Thanks
2021-11-17T11:39:36Z
https://github.com/huggingface/datasets/issues/3282#issuecomment-971494240
https://api.github.com/repos/huggingface/datasets/issues/3282
IC_kwDODunzps4559Ng
https://api.github.com/repos/huggingface/datasets/issues/comments/971494240/reactions
2021-11-17T11:39:36Z
https://api.github.com/repos/huggingface/datasets/issues/comments/971494240
https://avatars.githubusercontent.com/u/42851186?v=4
https://api.github.com/users/lhoestq/events{/privacy}
https://api.github.com/users/lhoestq/followers
https://api.github.com/users/lhoestq/following{/other_user}
https://api.github.com/users/lhoestq/gists{/gist_id}
https://github.com/lhoestq
lhoestq
MDQ6VXNlcjQyODUxMTg2
https://api.github.com/users/lhoestq/orgs
https://api.github.com/users/lhoestq/received_events
https://api.github.com/users/lhoestq/repos
https://api.github.com/users/lhoestq/starred{/owner}{/repo}
https://api.github.com/users/lhoestq/subscriptions
User
https://api.github.com/users/lhoestq
public
NONE
The error I get when trying to load OSCAR 21.09 is this
```
ConnectionError: Couldn't reach https://huggingface.co/datasets/oscar-corpus/OSCAR-2109/resolve/main/OSCAR-2109.py
```

The URL I get in the browser is this
```
https://huggingface.co/datasets/oscar-corpus/OSCAR-2109/blob/main/OSCAR-2109.py
```

Maybe URL is the issue? (resolve vs blob)
2021-11-28T19:33:37Z
https://github.com/huggingface/datasets/issues/3282#issuecomment-981139005
https://api.github.com/repos/huggingface/datasets/issues/3282
IC_kwDODunzps46ev49
https://api.github.com/repos/huggingface/datasets/issues/comments/981139005/reactions
2021-11-28T19:34:20Z
https://api.github.com/repos/huggingface/datasets/issues/comments/981139005
https://avatars.githubusercontent.com/u/31137252?v=4
https://api.github.com/users/thisisishara/events{/privacy}
https://api.github.com/users/thisisishara/followers
https://api.github.com/users/thisisishara/following{/other_user}
https://api.github.com/users/thisisishara/gists{/gist_id}
https://github.com/thisisishara
thisisishara
MDQ6VXNlcjMxMTM3MjUy
https://api.github.com/users/thisisishara/orgs
https://api.github.com/users/thisisishara/received_events
https://api.github.com/users/thisisishara/repos
https://api.github.com/users/thisisishara/starred{/owner}{/repo}
https://api.github.com/users/thisisishara/subscriptions
User
https://api.github.com/users/thisisishara
public
NONE
> The error I get when trying to load OSCAR 21.09 is this
> 
> ```
> ConnectionError: Couldn't reach https://huggingface.co/datasets/oscar-corpus/OSCAR-2109/resolve/main/OSCAR-2109.py
> ```
> 
> The URL I get in the browser is this
> 
> ```
> https://huggingface.co/datasets/oscar-corpus/OSCAR-2109/blob/main/OSCAR-2109.py
> ```
> 
> Maybe URL is the issue? (resolve vs blob)

You need to download your login credentials. See `huggingface-cli login` documentation and when loading the dataset use `use_auth_token=True`:
`
load_dataset(corpus, language, split=None, use_auth_token=True, cache_dir=cache_folder)`
2021-11-29T08:16:56Z
https://github.com/huggingface/datasets/issues/3282#issuecomment-981387040
https://api.github.com/repos/huggingface/datasets/issues/3282
IC_kwDODunzps46fscg
https://api.github.com/repos/huggingface/datasets/issues/comments/981387040/reactions
2021-11-29T08:17:29Z
https://api.github.com/repos/huggingface/datasets/issues/comments/981387040
https://avatars.githubusercontent.com/u/10078549?v=4
https://api.github.com/users/MinionAttack/events{/privacy}
https://api.github.com/users/MinionAttack/followers
https://api.github.com/users/MinionAttack/following{/other_user}
https://api.github.com/users/MinionAttack/gists{/gist_id}
https://github.com/MinionAttack
MinionAttack
MDQ6VXNlcjEwMDc4NTQ5
https://api.github.com/users/MinionAttack/orgs
https://api.github.com/users/MinionAttack/received_events
https://api.github.com/users/MinionAttack/repos
https://api.github.com/users/MinionAttack/starred{/owner}{/repo}
https://api.github.com/users/MinionAttack/subscriptions
User
https://api.github.com/users/MinionAttack
public
COLLABORATOR
Fixed.

<img width="1542" alt="Capture d’écran 2022-04-12 à 13 57 24" src="https://user-images.githubusercontent.com/1676121/162957585-af96d19c-f86c-47fe-80c4-2b071083cee4.png">

2022-04-12T11:57:43Z
https://github.com/huggingface/datasets/issues/3282#issuecomment-1096630937
https://api.github.com/repos/huggingface/datasets/issues/3282
IC_kwDODunzps5BXUKZ
https://api.github.com/repos/huggingface/datasets/issues/comments/1096630937/reactions
2022-04-12T11:57:43Z
https://api.github.com/repos/huggingface/datasets/issues/comments/1096630937
https://avatars.githubusercontent.com/u/1676121?v=4
https://api.github.com/users/severo/events{/privacy}
https://api.github.com/users/severo/followers
https://api.github.com/users/severo/following{/other_user}
https://api.github.com/users/severo/gists{/gist_id}
https://github.com/severo
severo
MDQ6VXNlcjE2NzYxMjE=
https://api.github.com/users/severo/orgs
https://api.github.com/users/severo/received_events
https://api.github.com/users/severo/repos
https://api.github.com/users/severo/starred{/owner}{/repo}
https://api.github.com/users/severo/subscriptions
User
https://api.github.com/users/severo
public
## Dataset viewer issue for '*oscar-corpus/OSCAR-2109*'

**Link:** *[link to the dataset viewer page](https://huggingface.co/datasets/oscar-corpus/OSCAR-2109)*

*The dataset library cannot download any language from the oscar-corpus/OSCAR-2109 dataset. By entering the URL in your browser I can access the file.*

```
    raise ConnectionError("Couldn't reach {}".format(url))
ConnectionError: Couldn't reach https://huggingface.co/datasets/oscar-corpus/OSCAR-2109/resolve/main/OSCAR-2109.py
```

Am I the one who added this dataset ? No

Using the older version of [OSCAR](https://huggingface.co/datasets/oscar) I don't have any issues downloading languages with the dataset library.