403 error when using wget to download models

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 -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=eyJTdGF0ZW1lbnQiOlt7IlJlc291cmNlIjoiaHR0cHM6Ly9jZG4tbGZzLmh1Z2dpbmdmYWNlLmNvL3JlcG9zL2I0LzcxL2I0NzE0MzE3NmQzNzkwZTk1NzQ4NWI1OWNjMTNjZjA3MmE0YjJjYmUzMzQwZDFiOGZhODZmNTNkNzE5NzIzNmYvYWQyYTMzYzM2MWMxZjU5M2M0YTFmYjMyZWE4MWFmY2UyYjViYjdkMTk4M2M2Yjk0NzkzYTI2YTNiNTRiMDhhMD9yZXNwb25zZS1jb250ZW50LWRpc3Bvc2l0aW9uPWF0dGFjaG1lbnQlM0IrZmlsZW5hbWUqJTNEVVRGLTglMjclMjd2Mi0xXzc2OC1lbWEtcHJ1bmVkLmNrcHQlM0IrZmlsZW5hbWUlM0QlMjJ2Mi0xXzc2OC1lbWEtcHJ1bmVkLmNrcHQlMjIlM0IiLCJDb25kaXRpb24iOnsiRGF0ZUxlc3NUaGFuIjp7IkFXUzpFcG9jaFRpbWUiOjE2NzQ4NDAzMzN9fX1dfQ__&Signature=wPPInwNRaKyExERPQluRs41YR1rrVPhuwqkt6WlJkSiXigQYfjkv2vgi-ouVmIRHgqyOGNIzNC2MX8AAKPEcSc3NM75yCCf5VTdZpR%7EVRTs3uUcVuPRDQ1E8oNbu5HX4mcr%7EhKO3h2oJNM5A1iXcMDwTcCkKAZUuKLB8l%7EMBJ3iJd%7EuaZFFfYGcOW%7EKbCMLzwo%7ExP%7EFvumDNwNMdbFk9e9qVTtErAWwf9k1g6memIK6HPNoiv4n1i98oQdkHHLO1gKrxJ3OW60JH%7E2RkParilNxWUoIiJhMSzWusGS854wGmF9HTnX3Zh197n5ajI88XRCYzPR-f1K3rL8nvWN8IpQ__&Key-Pair-Id=KVTP0A1DKRTAX [following]
–2023-01-25 04:56:29-- 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.

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

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

Yes, fixed now. Thanks for the quick response.

1 Like

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

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

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.

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

1 Like

Thanks very much.