# 401 Client Error: Unauthorized for url: https://huggingface.co/DeepBeepMeep/Wan2.1

**URL:** <https://discuss.huggingface.co/t/401-client-error-unauthorized-for-url-https-huggingface-co-deepbeepmeep-wan2-1/159061>\
**Category:** Beginners\
**Created:** [June 12, 2025, 3:38pm UTC](https://discuss.huggingface.co/t/401-client-error-unauthorized-for-url-https-huggingface-co-deepbeepmeep-wan2-1/159061 "2025-06-12T15:38:28Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![ozzyx23](https://avatars.discourse-cdn.com/v4/letter/o/e99b99/32.png) [@ozzyx23](https://discuss.huggingface.co/u/ozzyx23)\
**Post date:** [June 12, 2025, 3:38pm UTC](https://discuss.huggingface.co/t/401-client-error-unauthorized-for-url-https-huggingface-co-deepbeepmeep-wan2-1/159061/1 "2025-06-12T15:38:28Z")

</div>

is there any suggestion as to why I keep getting this 401 and if so how can I fix it ?

this happens when i download anything from Wan2.1

The above exception was the direct cause of the following exception:

Traceback (most recent call last):  
File “F:\AI Apps\Wan2GP\wgp.py”, line 3739, in generate\_video\_error\_handler  
generate\_video(task, send\_cmd, \*\*params)  
File “F:\AI Apps\Wan2GP\wgp.py”, line 2867, in generate\_video  
wan\_model, offloadobj, trans = load\_models(model\_filename)  
File “F:\AI Apps\Wan2GP\wgp.py”, line 2218, in load\_models  
download\_models(filename)  
File “F:\AI Apps\Wan2GP\wgp.py”, line 1976, in download\_models  
process\_files\_def(\*\*shared\_def)  
File “F:\AI Apps\Wan2GP\wgp.py”, line 1963, in process\_files\_def  
hf\_hub\_download(repo\_id=repoId, filename=onefile, local\_dir = targetRoot, subfolder=sourceFolder)  
File “C:\Users-----\AppData\Local\Programs\Miniconda3\envs\wan2gp\lib\site-packages\huggingface\_hub\utils\_validators.py”, line 114, in \_inner\_fn  
return fn(\*args, \*\*kwargs)  
File “C:\Users-----\AppData\Local\Programs\Miniconda3\envs\wan2gp\lib\site-packages\huggingface\_hub\file\_download.py”, line 988, in hf\_hub\_download  
return \_hf\_hub\_download\_to\_local\_dir(  
File “C:\Users-----\AppData\Local\Programs\Miniconda3\envs\wan2gp\lib\site-packages\huggingface\_hub\file\_download.py”, line 1243, in \_hf\_hub\_download\_to\_local\_dir  
\_raise\_on\_head\_call\_error(head\_call\_error, force\_download, local\_files\_only)  
File “C:\Users-----\AppData\Local\Programs\Miniconda3\envs\wan2gp\lib\site-packages\huggingface\_hub\file\_download.py”, line 1645, in \_raise\_on\_head\_call\_error  
raise head\_call\_error  
File “C:\Users-----\AppData\Local\Programs\Miniconda3\envs\wan2gp\lib\site-packages\huggingface\_hub\file\_download.py”, line 1533, in \_get\_metadata\_or\_catch\_error  
metadata = get\_hf\_file\_metadata(  
File “C:\Users-----\AppData\Local\Programs\Miniconda3\envs\wan2gp\lib\site-packages\huggingface\_hub\utils\_validators.py”, line 114, in \_inner\_fn  
return fn(\*args, \*\*kwargs)  
File “C:\Users-----\AppData\Local\Programs\Miniconda3\envs\wan2gp\lib\site-packages\huggingface\_hub\file\_download.py”, line 1450, in get\_hf\_file\_metadata  
r = \_request\_wrapper(  
File “C:\Users-----\AppData\Local\Programs\Miniconda3\envs\wan2gp\lib\site-packages\huggingface\_hub\file\_download.py”, line 286, in \_request\_wrapper  
response = \_request\_wrapper(  
File “C:\Users-----\AppData\Local\Programs\Miniconda3\envs\wan2gp\lib\site-packages\huggingface\_hub\file\_download.py”, line 310, in \_request\_wrapper  
hf\_raise\_for\_status(response)  
File “C:\Users-----\AppData\Local\Programs\Miniconda3\envs\wan2gp\lib\site-packages\huggingface\_hub\utils\_http.py”, line 482, in hf\_raise\_for\_status  
raise \_format(HfHubHTTPError, str(e), response) from e  
huggingface\_hub.errors.HfHubHTTPError: 401 Client Error:

---

<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:** [June 12, 2025, 5:40pm UTC](https://discuss.huggingface.co/t/401-client-error-unauthorized-for-url-https-huggingface-co-deepbeepmeep-wan2-1/159061/2 "2025-06-12T17:40:34Z")

</div>

There are various possible causes for a 401 error…

> [@Error 401 Client Error: Unauthorized for url](https://discuss.huggingface.co/t/error-401-client-error-unauthorized-for-url/19714):
>
> When using model card of my private speech recognition model with LM, I got this error: 401 Client Error: Unauthorized for url: [https://huggingface.co/api/models/taliai/tali-asr-with-lm/revision/main](https://huggingface.co/api/models/taliai/tali-asr-with-lm/revision/main) while the same model without lm works fine. Is there anything wrong on my model or model card or … Any help is appreciated.
