11cafe / comfyui-workspace-manager

A ComfyUI workflows and models management extension to organize and manage all your workflows, models in one place. Seamlessly switch between workflows, as well as import, export workflows, reuse subworkflows, install models, browse your models in a single workspace
MIT License
1.14k stars 54 forks source link

Can't install-download from Civit.ai #476

Open scofano opened 3 months ago

scofano commented 3 months ago

I'm getting this error:

https://civitai.com/api/download/models/795006?token=(my API KEY HERE)/ <urlopen error [SSL: CERTIFICATE_VERIFY_FAILED] certificate verify failed: unable to get local issuer certificate (_ssl.c:1006)>

It doesn't work setting an API key and not setting. But anyway, API key keeps vanishing even after saving.

The complete error message: Exception in thread Thread-25 (download_worker): Traceback (most recent call last): File "urllib\request.py", line 1348, in do_open File "http\client.py", line 1303, in request File "http\client.py", line 1349, in _send_request File "http\client.py", line 1298, in endheaders File "http\client.py", line 1058, in _send_output File "http\client.py", line 996, in send File "http\client.py", line 1475, in connect File "ssl.py", line 517, in wrap_socket File "ssl.py", line 1104, in _create File "ssl.py", line 1382, in do_handshake ssl.SSLCertVerificationError: [SSL: CERTIFICATE_VERIFY_FAILED] certificate verify failed: unable to get local issuer certificate (_ssl.c:1006)

During handling of the above exception, another exception occurred:

Traceback (most recent call last): File "D:\ComfyUI_windows_portable\ComfyUI\custom_nodes\comfyui-workspace-manager\service\model_manager\model_installer.py", line 163, in download_url_with_agent with urllib.request.urlopen(req) as response: ^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "urllib\request.py", line 216, in urlopen File "urllib\request.py", line 525, in open File "urllib\request.py", line 634, in http_response File "urllib\request.py", line 557, in error File "urllib\request.py", line 496, in _call_chain File "urllib\request.py", line 749, in http_error_302 File "urllib\request.py", line 519, in open File "urllib\request.py", line 536, in _open File "urllib\request.py", line 496, in _call_chain File "urllib\request.py", line 1391, in https_open File "urllib\request.py", line 1351, in do_open urllib.error.URLError: <urlopen error [SSL: CERTIFICATE_VERIFY_FAILED] certificate verify failed: unable to get local issuer certificate (_ssl.c:1006)>

During handling of the above exception, another exception occurred:

Traceback (most recent call last): File "threading.py", line 1045, in _bootstrap_inner File "threading.py", line 982, in run File "D:\ComfyUI_windows_portable\ComfyUI\custom_nodes\comfyui-workspace-manager\service\model_manager\model_installer.py", line 93, in download_worker download_url_with_agent( File "D:\ComfyUI_windows_portable\ComfyUI\custom_nodes\comfyui-workspace-manager\service\model_manager\model_installer.py", line 220, in download_url_with_agent if os.path.exists(temp_file_path): ^^^^^^^^^^^^^^ UnboundLocalError: cannot access local variable 'temp_file_path' where it is not associated with a value

scofano commented 2 months ago

Any help? pls