Comfy-Org / Comfy-Org/ComfyUI

报错了但是不知道要怎么解决这个问题

Open
#13,490 0 comments 0 reactions 0 assignees View on GitHub
Custom Nodes Bug Potential Bug
Dominant language
Python
Stars
133k
Forks
15.7k
Avg merge
1d 7h
Merged PRs (30d)
158

Description

### Custom Node Testing

- [ ] 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

KeyError: 'document {0} not found'

File "/root/ComfyUI/execution.py", line 525, in execute
output_data, output_ui, has_subgraph, has_pending_tasks = await get_output_data(prompt_id, unique_id, obj, input_data_all, execution_block_cb=execution_block_cb, pre_execute_cb=pre_execute_cb, v3_data=v3_data)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^

File "/root/ComfyUI/execution.py", line 334, in get_output_data
return_values = await _async_map_node_over_list(prompt_id, unique_id, obj, input_data_all, obj.FUNCTION, allow_interrupt=True, execution_block_cb=execution_block_cb, pre_execute_cb=pre_execute_cb, v3_data=v3_data)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^

File "/root/ComfyUI/execution.py", line 308, in _async_map_node_over_list
await process_inputs(input_dict, i)

File "/root/ComfyUI/execution.py", line 296, in process_inputs
result = f(**inputs)
^^^^^^^^^^^

File "/root/ComfyUI/custom_nodes/sd-ppp/sdppp_python/comfy/nodes.py", line 210, in action
result = call_async_func_in_server_thread(
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^

File "/root/ComfyUI/custom_nodes/sd-ppp/sdppp_python/comfy/nodes.py", line 147, in call_async_func_in_server_thread
raise handle['error']

File "/root/ComfyUI/custom_nodes/sd-ppp/sdppp_python/comfy/nodes.py", line 136, in do_call
handle['result'] = await coro
^^^^^^^^^^

File "/root/ComfyUI/custom_nodes/sd-ppp/sdppp_python/protocols/photoshop.py", line 88, in get_document_info
ppp_instance = cls.sdpppServer.ppp_instances[instance_id]
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^
不知道要怎么解决这个问题

### Actual Behavior

KeyError: 'document {0} not found'

File "/root/ComfyUI/execution.py", line 525, in execute
output_data, output_ui, has_subgraph, has_pending_tasks = await get_output_data(prompt_id, unique_id, obj, input_data_all, execution_block_cb=execution_block_cb, pre_execute_cb=pre_execute_cb, v3_data=v3_data)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^

File "/root/ComfyUI/execution.py", line 334, in get_output_data
return_values = await _async_map_node_over_list(prompt_id, unique_id, obj, input_data_all, obj.FUNCTION, allow_interrupt=True, execution_block_cb=execution_block_cb, pre_execute_cb=pre_execute_cb, v3_data=v3_data)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^

File "/root/ComfyUI/execution.py", line 308, in _async_map_node_over_list
await process_inputs(input_dict, i)

File "/root/ComfyUI/execution.py", line 296, in process_inputs
result = f(**inputs)
^^^^^^^^^^^

File "/root/ComfyUI/custom_nodes/sd-ppp/sdppp_python/comfy/nodes.py", line 210, in action
result = call_async_func_in_server_thread(
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^

File "/root/ComfyUI/custom_nodes/sd-ppp/sdppp_python/comfy/nodes.py", line 147, in call_async_func_in_server_thread
raise handle['error']

File "/root/ComfyUI/custom_nodes/sd-ppp/sdppp_python/comfy/nodes.py", line 136, in do_call
handle['result'] = await coro
^^^^^^^^^^

File "/root/ComfyUI/custom_nodes/sd-ppp/sdppp_python/protocols/photoshop.py", line 88, in get_document_info
ppp_instance = cls.sdpppServer.ppp_instances[instance_id]
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^

获取文档,找不到文档

### Steps to Reproduce

[获取文档(GetDocument)]'找不到文档: {0}'

### Debug Logs

```powershell
KeyError: 'document {0} not found'

File "/root/ComfyUI/execution.py", line 525, in execute
output_data, output_ui, has_subgraph, has_pending_tasks = await get_output_data(prompt_id, unique_id, obj, input_data_all, execution_block_cb=execution_block_cb, pre_execute_cb=pre_execute_cb, v3_data=v3_data)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^

File "/root/ComfyUI/execution.py", line 334, in get_output_data
return_values = await _async_map_node_over_list(prompt_id, unique_id, obj, input_data_all, obj.FUNCTION, allow_interrupt=True, execution_block_cb=execution_block_cb, pre_execute_cb=pre_execute_cb, v3_data=v3_data)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^

File "/root/ComfyUI/execution.py", line 308, in _async_map_node_over_list
await process_inputs(input_dict, i)

File "/root/ComfyUI/execution.py", line 296, in process_inputs
result = f(**inputs)
^^^^^^^^^^^

File "/root/ComfyUI/custom_nodes/sd-ppp/sdppp_python/comfy/nodes.py", line 210, in action
result = call_async_func_in_server_thread(
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^

File "/root/ComfyUI/custom_nodes/sd-ppp/sdppp_python/comfy/nodes.py", line 147, in call_async_func_in_server_thread
raise handle['error']

File "/root/ComfyUI/custom_nodes/sd-ppp/sdppp_python/comfy/nodes.py", line 136, in do_call
handle['result'] = await coro
^^^^^^^^^^

File "/root/ComfyUI/custom_nodes/sd-ppp/sdppp_python/protocols/photoshop.py", line 88, in get_document_info
ppp_instance = cls.sdpppServer.ppp_instances[instance_id]
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^
```

### 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.