Your question
Hello,
I recently did a fresh installation of comfyui portable + manager and I've noticed that huggingface downloads via custom nodes doesn't work.
I tested Kijai's segment-anything2, Kijai's (Down)Load HunyuanVideo TextEncoder, z-tipo-extension, etc.
They all give the same error, relating to 401 Unauthorized, so it's not a problem with an individual node. For example:
401 Client Error: Unauthorized for url: https://huggingface.co/KBlueLeaf/TIPO-200M-ft2/resolve/main/TIPO-200M-ft2-F16.gguf
Invalid credentials in Authorization header
huggingface-hub version in my python embeded is 0.29.2, which seems fairly new.
Available versions: 0.30.1, 0.30.0, 0.29.3, 0.29.2
I guess maybe it could be that there is somehow an invalid token set or something like that but I have no idea how to check it. I never manually set any token or anything like that.
I don't have a lot of custom nodes installed, and the entire comfy install is quite new. What could be the issue? Please help.
Logs
[ComfyUI-Manager] default cache updated: https://api.comfy.org/nodes
FETCH DATA from: https://raw.githubusercontent.com/ltdrdata/ComfyUI-Manager/main/custom-node-list.json [DONE]
[ComfyUI-Manager] All startup tasks have been completed.
got prompt
Failed to validate prompt for output 45:
Output will be ignored
[TIPO-KGen]-|22:15:28|-INFO: Downloading gguf model from KBlueLeaf/TIPO-200M-ft2
C:\ComfyUI_windows_portable\python_embeded\Lib\site-packages\huggingface_hub\file_download.py:834: UserWarning: `local_dir_use_symlinks` parameter is deprecated and will be ignored. The process to download files to a local folder has been updated and do not rely on symlinks anymore. You only need to pass a destination folder as`local_dir`.
For more details, check out https://huggingface.co/docs/huggingface_hub/main/en/guides/download#download-files-to-local-folder.
warnings.warn(
!!! Exception during processing !!! 401 Client Error: Unauthorized for url: https://huggingface.co/KBlueLeaf/TIPO-200M-ft2/resolve/main/TIPO-200M-ft2-F16.gguf (Request ID: Root=1-67f2e0e1-065864240f95a2a842feb107;956ba45e-a2e5-41c6-aa9f-97becdf94215)
Invalid credentials in Authorization header
Traceback (most recent call last):
File "C:\ComfyUI_windows_portable\python_embeded\Lib\site-packages\huggingface_hub\utils\_http.py", line 409, in hf_raise_for_status
response.raise_for_status()
File "C:\ComfyUI_windows_portable\python_embeded\Lib\site-packages\requests\models.py", line 1024, in raise_for_status
raise HTTPError(http_error_msg, response=self)
requests.exceptions.HTTPError: 401 Client Error: Unauthorized for url: https://huggingface.co/KBlueLeaf/TIPO-200M-ft2/resolve/main/TIPO-200M-ft2-F16.gguf
The above exception was the direct cause of the following exception:
Traceback (most recent call last):
File "C:\ComfyUI_windows_portable\ComfyUI\execution.py", line 327, in execute
output_data, output_ui, has_subgraph = get_output_data(obj, input_data_all, execution_block_cb=execution_block_cb, pre_execute_cb=pre_execute_cb)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "C:\ComfyUI_windows_portable\ComfyUI\execution.py", line 202, in get_output_data
return_values = _map_node_over_list(obj, input_data_all, obj.FUNCTION, allow_interrupt=True, execution_block_cb=execution_block_cb, pre_execute_cb=pre_execute_cb)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "C:\ComfyUI_windows_portable\ComfyUI\execution.py", line 174, in _map_node_over_list
process_inputs(input_dict, i)
File "C:\ComfyUI_windows_portable\ComfyUI\execution.py", line 163, in process_inputs
results.append(getattr(obj, func)(**inputs))
^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "C:\ComfyUI_windows_portable\ComfyUI\custom_nodes\z-tipo-extension\nodes\tipo.py", line 263, in execute
models.download_gguf(model_name, gguf_name)
File "C:\ComfyUI_windows_portable\python_embeded\Lib\site-packages\kgen\models.py", line 64, in download_gguf
result = hf_hub_download(
^^^^^^^^^^^^^^^^
File "C:\ComfyUI_windows_portable\python_embeded\Lib\site-packages\huggingface_hub\utils\_validators.py", line 114, in _inner_fn
return fn(*args, **kwargs)
^^^^^^^^^^^^^^^^^^^
File "C:\ComfyUI_windows_portable\python_embeded\Lib\site-packages\huggingface_hub\file_download.py", line 842, in hf_hub_download
return _hf_hub_download_to_local_dir(
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "C:\ComfyUI_windows_portable\python_embeded\Lib\site-packages\huggingface_hub\file_download.py", line 1091, in _hf_hub_download_to_local_dir
_raise_on_head_call_error(head_call_error, force_download, local_files_only)
File "C:\ComfyUI_windows_portable\python_embeded\Lib\site-packages\huggingface_hub\file_download.py", line 1486, in _raise_on_head_call_error
raise head_call_error
File "C:\ComfyUI_windows_portable\python_embeded\Lib\site-packages\huggingface_hub\file_download.py", line 1376, in _get_metadata_or_catch_error
metadata = get_hf_file_metadata(
^^^^^^^^^^^^^^^^^^^^^
File "C:\ComfyUI_windows_portable\python_embeded\Lib\site-packages\huggingface_hub\utils\_validators.py", line 114, in _inner_fn
return fn(*args, **kwargs)
^^^^^^^^^^^^^^^^^^^
File "C:\ComfyUI_windows_portable\python_embeded\Lib\site-packages\huggingface_hub\file_download.py", line 1296, in get_hf_file_metadata
r = _request_wrapper(
^^^^^^^^^^^^^^^^^
File "C:\ComfyUI_windows_portable\python_embeded\Lib\site-packages\huggingface_hub\file_download.py", line 280, in _request_wrapper
response = _request_wrapper(
^^^^^^^^^^^^^^^^^
File "C:\ComfyUI_windows_portable\python_embeded\Lib\site-packages\huggingface_hub\file_download.py", line 304, in _request_wrapper
hf_raise_for_status(response)
File "C:\ComfyUI_windows_portable\python_embeded\Lib\site-packages\huggingface_hub\utils\_http.py", line 481, in hf_raise_for_status
raise _format(HfHubHTTPError, str(e), response) from e
huggingface_hub.errors.HfHubHTTPError: 401 Client Error: Unauthorized for url: https://huggingface.co/KBlueLeaf/TIPO-200M-ft2/resolve/main/TIPO-200M-ft2-F16.gguf (Request ID: Root=1-67f2e0e1-065864240f95a2a842feb107;956ba45e-a2e5-41c6-aa9f-97becdf94215)
Invalid credentials in Authorization header
Prompt executed in 0.23 seconds
Other
See question
Your question
Hello,
I recently did a fresh installation of comfyui portable + manager and I've noticed that huggingface downloads via custom nodes doesn't work.
I tested Kijai's segment-anything2, Kijai's (Down)Load HunyuanVideo TextEncoder, z-tipo-extension, etc.
They all give the same error, relating to 401 Unauthorized, so it's not a problem with an individual node. For example:
401 Client Error: Unauthorized for url: https://huggingface.co/KBlueLeaf/TIPO-200M-ft2/resolve/main/TIPO-200M-ft2-F16.gguf
Invalid credentials in Authorization header
huggingface-hub version in my python embeded is 0.29.2, which seems fairly new.
Available versions: 0.30.1, 0.30.0, 0.29.3, 0.29.2
I guess maybe it could be that there is somehow an invalid token set or something like that but I have no idea how to check it. I never manually set any token or anything like that.
I don't have a lot of custom nodes installed, and the entire comfy install is quite new. What could be the issue? Please help.
Logs
Other
See question