# ConnectionError: Couldn't reach https://huggingface.co/datasets/segments/sidewalk-semantic/resolve/main/dataset\_infos.json (error 403)

**URL:** <https://discuss.huggingface.co/t/connectionerror-couldnt-reach-https-huggingface-co-datasets-segments-sidewalk-semantic-resolve-main-dataset-infos-json-error-403/127549>\
**Category:** Beginners\
**Created:** [November 25, 2024, 4:22am UTC](https://discuss.huggingface.co/t/connectionerror-couldnt-reach-https-huggingface-co-datasets-segments-sidewalk-semantic-resolve-main-dataset-infos-json-error-403/127549 "2024-11-25T04:22:32Z")\
**Posts on this page:** 1\
**Showing post:** 2

<div class="post-metadata">

**Author:** ![John6666](https://sea2.discourse-cdn.com/hellohellohello/user_avatar/discuss.huggingface.co/john6666/32/27664_2.png) [@John6666](https://discuss.huggingface.co/u/John6666)\
**Post date:** [November 25, 2024, 4:30am UTC](https://discuss.huggingface.co/t/connectionerror-couldnt-reach-https-huggingface-co-datasets-segments-sidewalk-semantic-resolve-main-dataset-infos-json-error-403/127549/2 "2024-11-25T04:30:48Z")

</div>

To be honest, I’m not sure, but I think your case is similar to the second link?

> [@Connection Error when Accessing Dataset URL on Hugging Face](https://discuss.huggingface.co/t/connection-error-when-accessing-dataset-url-on-hugging-face/67418):
>
> I am currently experiencing an issue while trying to access my private dataset in my repo for example: ([https://huggingface.co/dataset/Mustafa21/dataset](https://huggingface.co/dataset/Mustafa21/dataset)) The error message I encountered is as follows: ionError(f"Couldn't reach {url} ({repr(head\_error)})") ConnectionError: Couldn't reach https://huggingface.co/datasets/Mustafa21/dataset/resolve/main/dataset\_infos.json (ConnectionError('Unauthorized for URL https://huggingface.co/datasets/Mustafa21/dataset/resolve/main/dataset\_infos.json. Pleas…

> <https://github.com/huggingface/datasets/issues/5207>
>
> \### Describe the bug
> 
> It's weird. I could not normally connect the dataset H…ub of HuggingFace due to a SSLError in my office. 
> Even when I try to connect using my company's proxy address (e.g., http\_proxy and https\_proxy), 
> I'm getting the SSLError issue. What should I do to download the datanet stored in HuggingFace normally?
> I welcome any comments. I think those comments will be helpful to me.
> 
> \* Dataset address - https://huggingface.co/datasets/moyix/debian\_csrc/viewer/moyix--debian\_csrc
> \* Log message
> \`\`\`
> ............ OMISSION ..............
> Traceback (most recent call last):
> File "/data/home/geunsik-lim/qtlab/./transformers/examples/pytorch/language-modeling/run\_clm.py", line 587, in \<module\>
> main()
> File "/data/home/geunsik-lim/qtlab/./transformers/examples/pytorch/language-modeling/run\_clm.py", line 278, in main
> raw\_datasets = load\_dataset(
> File "/home/geunsik-lim/anaconda3/envs/deepspeed/lib/python3.10/site-packages/datasets/load.py", line 1719, in load\_dataset
> builder\_instance = load\_dataset\_builder(
> File "/home/geunsik-lim/anaconda3/envs/deepspeed/lib/python3.10/site-packages/datasets/load.py", line 1497, in load\_dataset\_builder
> dataset\_module = dataset\_module\_factory(
> File "/home/geunsik-lim/anaconda3/envs/deepspeed/lib/python3.10/site-packages/datasets/load.py", line 1222, in dataset\_module\_factory
> raise e1 from None
> File "/home/geunsik-lim/anaconda3/envs/deepspeed/lib/python3.10/site-packages/datasets/load.py", line 1179, in dataset\_module\_factory
> raise ConnectionError(f"Couldn't reach '{path}' on the Hub ({type(e).\_\_name\_\_})")
> ConnectionError: Couldn't reach 'moyix/debian\_csrc' on the Hub (SSLError)
> \[2022-11-07 15:23:38,476\] \[INFO\] \[launch.py:318:sigkill\_handler\] Killing subprocess 6760
> \[2022-11-07 15:23:38,476\] \[ERROR\] \[launch.py:324:sigkill\_handler\] \['/home/geunsik-lim/anaconda3/envs/deepspeed/bin/python', '-u', './transformers/examples/pytorch/language-modeling/run\_clm.py', '--local\_rank=0', '--model\_name\_or\_path=Salesforce/codegen-350M-multi', '--per\_device\_train\_batch\_size=1', '--learning\_rate', '2e-5', '--num\_train\_epochs', '1', '--output\_dir=./codegen-350M-finetuned', '--overwrite\_output\_dir', '--dataset\_name', 'moyix/debian\_csrc', '--cache\_dir', '/data/home/geunsik-lim/.cache', '--tokenizer\_name', 'Salesforce/codegen-350M-multi', '--block\_size', '2048', '--gradient\_accumulation\_steps', '32', '--do\_train', '--fp16', '--deepspeed', 'ds\_config\_zero2.json'\] exits with return code = 1
> 
> real 0m7.742s
> user 0m4.930s
> 
> \`\`\`
> 
> \### Steps to reproduce the bug
> 
> Steps to reproduce this behavior. 
> 
> 
> 
> \`\`\`
> (deepspeed) geunsik-lim@ai02:~/qtlab$ ./test\_debian\_csrc\_dataset.py
> Traceback (most recent call last):
> File "/data/home/geunsik-lim/qtlab/./test\_debian\_csrc\_dataset.py", line 6, in \<module\>
> dataset = load\_dataset("moyix/debian\_csrc")
> File "/home/geunsik-lim/anaconda3/envs/deepspeed/lib/python3.10/site-packages/datasets/load.py", line 1719, in load\_dataset
> builder\_instance = load\_dataset\_builder(
> File "/home/geunsik-lim/anaconda3/envs/deepspeed/lib/python3.10/site-packages/datasets/load.py", line 1497, in load\_dataset\_builder
> dataset\_module = dataset\_module\_factory(
> File "/home/geunsik-lim/anaconda3/envs/deepspeed/lib/python3.10/site-packages/datasets/load.py", line 1222, in dataset\_module\_factory
> raise e1 from None
> File "/home/geunsik-lim/anaconda3/envs/deepspeed/lib/python3.10/site-packages/datasets/load.py", line 1179, in dataset\_module\_factory
> raise ConnectionError(f"Couldn't reach '{path}' on the Hub ({type(e).\_\_name\_\_})")
> ConnectionError: Couldn't reach 'moyix/debian\_csrc' on the Hub (SSLError)
> (deepspeed) geunsik-lim@ai02:~/qtlab$
> (deepspeed) geunsik-lim@ai02:~/qtlab$
> (deepspeed) geunsik-lim@ai02:~/qtlab$
> (deepspeed) geunsik-lim@ai02:~/qtlab$ cat ./test\_debian\_csrc\_dataset.py
> \#!/usr/bin/env python
> from datasets import load\_dataset
> dataset = load\_dataset("moyix/debian\_csrc")
> 
> \`\`\`
> 
> 1. Adde proxy address of a company in /etc/profile
> 2. Download dataset with load\_dataset() function of datasets package that is provided by HuggingFace.
> 3. In this case, the address would be "moyix--debian\_csrc".
> 4. I get the "\`ConnectionError: Couldn't reach 'moyix/debian\_csrc' on the Hub (SSLError\`)" error message.
> 
> \### Expected behavior
> 
> 
> \* error message:
> ConnectionError: Couldn't reach 'moyix/debian\_csrc' on the Hub (SSLError)
> 
> \### Environment info
> 
> 
> \* software version information:
> 
> \`\`\`
> (deepspeed) geunsik-lim@ai02:~$
> (deepspeed) geunsik-lim@ai02:~$ conda list -f pytorch
> \# packages in environment at /home/geunsik-lim/anaconda3/envs/deepspeed:
> \#
> \# Name Version Build Channel
> pytorch 1.13.0 py3.10\_cuda11.7\_cudnn8.5.0\_0 pytorch
> (deepspeed) geunsik-lim@ai02:~$ conda list -f python
> \# packages in environment at /home/geunsik-lim/anaconda3/envs/deepspeed:
> \#
> \# Name Version Build Channel
> python 3.10.6 haa1d7c7\_1
> (deepspeed) geunsik-lim@ai02:~$ conda list -f datasets
> \# packages in environment at /home/geunsik-lim/anaconda3/envs/deepspeed:
> \#
> \# Name Version Build Channel
> datasets 2.6.1 py\_0 huggingface
> (deepspeed) geunsik-lim@ai02:~$ uname -a
> Linux ai02 5.4.0-131-generic #147-Ubuntu SMP Fri Oct 14 17:07:22 UTC 2022 x86\_64 x86\_64 x86\_64 GNU/Linux
> (deepspeed) geunsik-lim@ai02:~$ cat /etc/lsb-release
> DISTRIB\_ID=Ubuntu
> DISTRIB\_RELEASE=20.04
> DISTRIB\_CODENAME=focal
> DISTRIB\_DESCRIPTION="Ubuntu 20.04.5 LTS"
> 
> \`\`\`

> <https://github.com/huggingface/transformers/issues/17611#issuecomment-1323272726>
>
> I'm trying in python:
> 
> from sentence\_transformers import SentenceTransformer
> …sbert\_model = SentenceTransformer('all-MiniLM-L6-v2')
> 
> and I get this error:
> 
> SSLError: HTTPSConnectionPool(host='huggingface.co', port=443): Max retries exceeded with url: /api/models/sentence-transformers/all-MiniLM-L6-v2 (Caused by SSLError(SSLCertVerificationError(1, '\[SSL: CERTIFICATE\_VERIFY\_FAILED\] certificate verify failed: self signed certificate in certificate chain (\_ssl.c:1091)')))
> 
> I have no proxy, just getting direct to internet !!!

---

_[View the full topic](https://discuss.huggingface.co/t/connectionerror-couldnt-reach-https-huggingface-co-datasets-segments-sidewalk-semantic-resolve-main-dataset-infos-json-error-403/127549)._
