# 401 Client Error Unauthorized for url

**URL:** <https://discuss.huggingface.co/t/401-client-error-unauthorized-for-url/32466>\
**Category:** Beginners\
**Created:** [February 24, 2023, 7:47pm UTC](https://discuss.huggingface.co/t/401-client-error-unauthorized-for-url/32466 "2023-02-24T19:47:54Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![ilmuuu81](https://avatars.discourse-cdn.com/v4/letter/i/ac8455/32.png) [@ilmuuu81](https://discuss.huggingface.co/u/ilmuuu81)\
**Post date:** [February 24, 2023, 7:47pm UTC](https://discuss.huggingface.co/t/401-client-error-unauthorized-for-url/32466/1 "2023-02-24T19:47:55Z")

</div>

Hello, I am a very beginner in this field. Recently, I was trying to reproduce a git repo on the high-performance computer at my university. I got the following error message. Then, I used “$ huggingface-cli login” and my token to login, but it didn’t help. The code used ProtBERT but not T5. I wonder why I need this .json file, and what are possible solutions to this problem. Thank you!

401 Client Error: Unauthorized for url: [https://huggingface.co/prot\_t5\_xl\_bfd/resolve/main/config.json](https://huggingface.co/prot_t5_xl_bfd/resolve/main/config.json)  
File “\*\*\*\*\*\*/models.py”, line 960, in raise\_for\_status  
raise HTTPError(http\_error\_msg, response=self)  
requests.exceptions.HTTPError: 401 Client Error: Unauthorized for url: \*\*\*\*\*\***prot\_t5\_xl\_bfd/resolve/main/config.json  
During handling of the above exception, another exception occurred:  
Traceback (most recent call last):  
File “\*\*\*\*\*\*\*\*python3.8/site-packages/transformers/configuration\_utils.py”, line 618, in \_get\_config\_dict  
raise EnvironmentError(  
OSError: We couldn’t connect to ‘[huggingface.co/](http://huggingface.co/)’ to load this model and it looks like prot\_t5\_xl\_bfd is not the path to a directory conaining a config.json file.  
Checkout your internet connection or see how to run the library in offline mode at '**/transformers/installation#offline-mode’.

---

<div class="post-metadata">

**Author:** ![Hatman](https://sea2.discourse-cdn.com/hellohellohello/user_avatar/discuss.huggingface.co/hatman/32/27670_2.png) [@Hatman](https://discuss.huggingface.co/u/Hatman)\
**Post date:** [February 25, 2023, 7:02am UTC](https://discuss.huggingface.co/t/401-client-error-unauthorized-for-url/32466/2 "2023-02-25T07:02:40Z")

</div>

Unis are screwy. I know at mine I had some knucklehead in IT blocking the VNC ports so I had to reroute all my traffic through 80 to get things going. I would imagine it’s along those lines. What you can do is just download the model.bin, config.json, maybe a tokenizer depending on the model to a local folder then load them locally.
