Comfy-Org / Comfy-Org/ComfyUI

Can't log in using Comfy API key

Open
#12,521 1 comment 0 reactions 0 assignees View on GitHub
Potential Bug
Dominant language
Python
Stars
133k
Forks
15.7k
Avg merge
1d 7h
Merged PRs (30d)
158

Description

### Custom Node Testing

- [x] I have tried disabling custom nodes and the issue persists (see [how to disable custom nodes](https://docs.comfy.org/troubleshooting/custom-node-issues#step-1%3A-test-with-all-custom-nodes-disabled) if you need help)

### Expected Behavior

Enter API key and use API nodes.

### Actual Behavior

Keeps asking to login.

### Steps to Reproduce

Using latest ComfyUI via http://127.0.0.1:8188 and disabled all custom nodes.

Image

Entered API when prompted (made a new API key as well). Toast notification said API stored.

The browser console shows:

Image

---

Works fine, using the API key to login using older version:
Image
Issue is NBP doesn't work in this version

### Debug Logs

```powershell
got prompt
!!! Exception during processing !!! Unauthorized: Please login first to use this node.
Traceback (most recent call last):
File "/home/robert/ComfyUI/execution.py", line 444, in execute
raise ex
File "/home/robert/ComfyUI/execution.py", line 440, in execute
results.append(r.result())
~~~~~~~~^^
File "/home/robert/ComfyUI/execution.py", line 285, in async_wrapper
return await f(**args)
^^^^^^^^^^^^^^^
File "/home/robert/ComfyUI/comfy_api/internal/__init__.py", line 145, in wrapped_async_func
return await method(locked_class, **inputs)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/home/robert/ComfyUI/comfy_api/latest/_io.py", line 1760, in EXECUTE_NORMALIZED_ASYNC
to_return = await cls.execute(*args, **kwargs)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/home/robert/ComfyUI/comfy_api_nodes/nodes_gemini.py", line 782, in execute
parts.extend(await create_image_parts(cls, images))
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/home/robert/ComfyUI/comfy_api_nodes/nodes_gemini.py", line 97, in create_image_parts
reference_images_urls = await upload_images_to_comfyapi(
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
...<3 lines>...
)
^
File "/home/robert/ComfyUI/comfy_api_nodes/util/upload_helpers.py", line 86, in upload_images_to_comfyapi
url = await upload_file_to_comfyapi(cls, img_io, img_io.name, mime_type, effective_label, batch_start_ts)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/home/robert/ComfyUI/comfy_api_nodes/util/upload_helpers.py", line 201, in upload_file_to_comfyapi
create_resp = await sync_op(
^^^^^^^^^^^^^^
...<6 lines>...
)
^
File "/home/robert/ComfyUI/comfy_api_nodes/util/client.py", line 111, in sync_op
raw = await sync_op_raw(
^^^^^^^^^^^^^^^^^^
...<19 lines>...
)
^
File "/home/robert/ComfyUI/comfy_api_nodes/util/client.py", line 236, in sync_op_raw
return await _request_base(cfg, expect_binary=as_binary)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/home/robert/ComfyUI/comfy_api_nodes/util/client.py", line 755, in _request_base
raise Exception(msg)
Exception: Unauthorized: Please login first to use this node.

Prompt executed in 1.03 seconds
```

### Other

_No response_

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.