# 403 error when using wget to download models

**URL:** <https://discuss.huggingface.co/t/403-error-when-using-wget-to-download-models/30333>\
**Category:** Beginners\
**Created:** [January 24, 2023, 6:09pm UTC](https://discuss.huggingface.co/t/403-error-when-using-wget-to-download-models/30333 "2023-01-24T18:09:46Z")\
**Posts on this page:** 9\
**Page:** 1

<div class="post-metadata">

**Author:** ![Softology](https://avatars.discourse-cdn.com/v4/letter/s/bc8723/32.png) [@Softology](https://discuss.huggingface.co/u/Softology)\
**Post date:** [January 24, 2023, 6:09pm UTC](https://discuss.huggingface.co/t/403-error-when-using-wget-to-download-models/30333/1 "2023-01-24T18:09:46Z")

</div>

Over the last day when using wget to download a stable diffusion model I get 403 errors.  
Copy/pasting the URL into a web browser window works.  
It is not token related as I do not need to be logged into the browser.  
Used to work fine before today. Fails on multiple PCs/connections.  
Fails for any model I try and download on huggingface, not just the SD model(s).  
Any ideas? Temp server issue (I hope)?

wget commandline is;

wget [https://huggingface.co/stabilityai/stable-diffusion-2-1/resolve/main/v2-1\_768-ema-pruned.ckpt](https://huggingface.co/stabilityai/stable-diffusion-2-1/resolve/main/v2-1_768-ema-pruned.ckpt) -O “C:\target\Stable Diffusion v2\v2-1\_768-ema-pruned.ckpt” --tries=1 --no-check-certificate --progress=bar:force

wget stats show… (NOTE I had to edit urls to have no . or \ as new users cannot post more than 2 links)

> Resolving huggingface\_co (huggingface\_co)… 3.231.67.228, 54.235.118.239  
> Connecting to huggingface\_co (huggingface\_co)|3.231.67.228|:443… connected.  
> HTTP request sent, awaiting response… 302 Found  
> Location: https\_cdn-lfshuggingface\_co/repos/b4/71/b47143176d3790e957485b59cc13cf072a4b2cbe3340d1b8fa86f53d7197236f/ad2a33c361c1f593c4a1fb32ea81afce2b5bb7d1983c6b94793a26a3b54b08a0?response-content-disposition=attachment%3B+filename\*%3DUTF-8%27%27v2-1\_768-ema-pruned.ckpt%3B+filename%3D%22v2-1\_768-ema-pruned.ckpt%22%3B&Expires=1674840333&Policy=eyJTdGF0ZW1lb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b94793a26a3b54b08a0?response-content-disposition=attachment%3B+filename\*%3DUTF-8](https://cdn-lfs.huggingface.co/repos/b4/71/b47143176d3790e957485b59cc13cf072a4b2cbe3340d1b8fa86f53d7197236f/ad2a33c361c1f593c4a1fb32ea81afce2b5bb7d1983c6b94793a26a3b54b08a0?response-content-disposition=attachment%3B+filename*%3DUTF-8)’'v2-1\_768-ema-pruned.ckpt%3B+filename%3D%22v2-1\_768-ema-pruned.ckpt%22%3B&Expires=1674840333&Policy=eyJTdGF0ZW1lbnQiOlt7IlJlc291cmNlIjoiaHR0cHM6Ly9jZG4tbGZzLmh1Z2dpbmdmYWNlLmNvL3JlcG9zL2I0LzcxL2I0NzE0MzE3NmQzNzkwZTk1NzQ4NWI1OWNjMTNjZjA3MmE0YjJjYmUzMzQwZDFiOGZhODZmNTNkNzE5NzIzNmYvYWQyYTMzYzM2MWMxZjU5M2M0YTFmYjMyZWE4MWFmY2UyYjViYjdkMTk4M2M2Yjk0NzkzYTI2YTNiNTRiMDhhMD9yZXNwb25zZS1jb250ZW50LWRpc3Bvc2l0aW9uPWF0dGFjaG1lbnQlM0IrZmlsZW5hbWUqJTNEVVRGLTglMjclMjd2Mi0xXzc2OC1lbWEtcHJ1bmVkLmNrcHQlM0IrZmlsZW5hbWUlM0QlMjJ2Mi0xXzc2OC1lbWEtcHJ1bmVkLmNrcHQlMjIlM0IiLCJDb25kaXRpb24iOnsiRGF0ZUxlc3NUaGFuIjp7IkFXUzpFcG9jaFRpbWUiOjE2NzQ4NDAzMzN9fX1dfQ\_\_&Signature=wPPInwNRaKyExERPQluRs41YR1rrVPhuwqkt6WlJkSiXigQYfjkv2vgi-ouVmIRHgqyOGNIzNC2MX8AAKPEcSc3NM75yCCf5VTdZpR~VRTs3uUcVuPRDQ1E8oNbu5HX4mcr~hKO3h2oJNM5A1iXcMDwTcCkKAZUuKLB8l~MBJ3iJd~uaZFFfYGcOW~KbCMLzwo~xP~FvumDNwNMdbFk9e9qVTtErAWwf9k1g6memIK6HPNoiv4n1i98oQdkHHLO1gKrxJ3OW60JH~2RkParilNxWUoIiJhMSzWusGS854wGmF9HTnX3Zh197n5ajI88XRCYzPR-f1K3rL8nvWN8IpQ\_\_&Key-Pair-Id=KVTP0A1DKRTAX  
> Resolving cdn-lfs\_huggingface\_co (cdn-lfs\_huggingface\_co)… 13.227.254.123, 13.227.254.52, 13.227.254.47, …  
> Connecting to cdn-lfs\_huggingface\_co (cdn-lfs\_huggingface\_co)|13.227.254.123|:443… connected.  
> HTTP request sent, awaiting response… 403 Forbidden  
> 2023-01-25 04:56:30 ERROR 403: Forbidden.

---

<div class="post-metadata">

**Author:** ![radames](https://sea2.discourse-cdn.com/hellohellohello/user_avatar/discuss.huggingface.co/radames/32/28246_2.png) [@radames](https://discuss.huggingface.co/u/radames)\
**Post date:** [January 24, 2023, 7:16pm UTC](https://discuss.huggingface.co/t/403-error-when-using-wget-to-download-models/30333/2 "2023-01-24T19:16:22Z")

</div>

hi @Softology, not really seeing this error from here, could you try another file?  
can you try it via a VPN? just for testing

`wget https://huggingface.co/gpt2/resolve/main/64-8bits.tflite`

---

<div class="post-metadata">

**Author:** ![radames](https://sea2.discourse-cdn.com/hellohellohello/user_avatar/discuss.huggingface.co/radames/32/28246_2.png) [@radames](https://discuss.huggingface.co/u/radames)\
**Post date:** [January 24, 2023, 7:30pm UTC](https://discuss.huggingface.co/t/403-error-when-using-wget-to-download-models/30333/3 "2023-01-24T19:30:37Z")

</div>

hi @Softology , can you please try again? there was a bug and it’s fixed now, thanks

---

<div class="post-metadata">

**Author:** ![Softology](https://avatars.discourse-cdn.com/v4/letter/s/bc8723/32.png) [@Softology](https://discuss.huggingface.co/u/Softology)\
**Post date:** [January 24, 2023, 7:44pm UTC](https://discuss.huggingface.co/t/403-error-when-using-wget-to-download-models/30333/4 "2023-01-24T19:44:40Z")

</div>

Yes, fixed now. Thanks for the quick response.

---

<div class="post-metadata">

**Author:** ![amjadlasrii](https://avatars.discourse-cdn.com/v4/letter/a/9fc29f/32.png) [@amjadlasrii](https://discuss.huggingface.co/u/amjadlasrii)\
**Post date:** [January 25, 2023, 7:25pm UTC](https://discuss.huggingface.co/t/403-error-when-using-wget-to-download-models/30333/5 "2023-01-25T19:25:00Z")

</div>

Hi @radames I still have **the same problem** when I try to run the example in the model card of **Jean-Baptiste/camembert-ner-with-dates**

---

<div class="post-metadata">

**Author:** ![radames](https://sea2.discourse-cdn.com/hellohellohello/user_avatar/discuss.huggingface.co/radames/32/28246_2.png) [@radames](https://discuss.huggingface.co/u/radames)\
**Post date:** [January 25, 2023, 7:45pm UTC](https://discuss.huggingface.co/t/403-error-when-using-wget-to-download-models/30333/6 "2023-01-25T19:45:30Z")

</div>

hi @amjadlasris on this repo the issue was different, it should be fixed now.

---

<div class="post-metadata">

**Author:** ![cpierse](https://sea2.discourse-cdn.com/hellohellohello/user_avatar/discuss.huggingface.co/cpierse/32/13799_2.png) [@cpierse](https://discuss.huggingface.co/u/cpierse)\
**Post date:** [January 25, 2023, 7:47pm UTC](https://discuss.huggingface.co/t/403-error-when-using-wget-to-download-models/30333/7 "2023-01-25T19:47:23Z")

</div>

Hi @radames we were also seeing something similar today with `rajjwal1/bert-tiny` in our production environment, thankfully we have the model locally and can package that in with it, but the problem seems to be ongoing as it is not even possible for me to download this model from the hubs files and versions page. Not sure how many others have this issue but this is quite a popular model so thought I would flag that here.

---

<div class="post-metadata">

**Author:** ![radames](https://sea2.discourse-cdn.com/hellohellohello/user_avatar/discuss.huggingface.co/radames/32/28246_2.png) [@radames](https://discuss.huggingface.co/u/radames)\
**Post date:** [January 25, 2023, 7:51pm UTC](https://discuss.huggingface.co/t/403-error-when-using-wget-to-download-models/30333/8 "2023-01-25T19:51:36Z")

</div>

hi @cpierse we’re looking into that. I’ll DM you soon

---

<div class="post-metadata">

**Author:** ![cpierse](https://sea2.discourse-cdn.com/hellohellohello/user_avatar/discuss.huggingface.co/cpierse/32/13799_2.png) [@cpierse](https://discuss.huggingface.co/u/cpierse)\
**Post date:** [January 25, 2023, 7:53pm UTC](https://discuss.huggingface.co/t/403-error-when-using-wget-to-download-models/30333/9 "2023-01-25T19:53:10Z")

</div>

Thanks very much.
