mut-ex / comfyui-gligengui-node

Other
41 stars 1 forks source link

Error occurred when executing GLIGEN_GUI: 'Response' object is not subscriptable #1

Open TheByXy opened 5 months ago

TheByXy commented 5 months ago

Hello! Found a bug: Throws an error when trying to Queue Prompt (with GLIGEN GUI launched) image image

raphatbho commented 5 months ago

Can confirm.

Sonsaiy commented 4 months ago

Me too.

ZeTofZone commented 4 months ago

Hi.

I have the same problem.

Seems to be resolved by uncomment the line 98 in the file : \gligen_gui\static\js\extras.js ==> ("postInputArgs();" which is actually a comment)

Wraithnaut commented 4 months ago

Seems to be resolved by uncomment the line 98 in the file : \gligen_gui\static\js\extras.js ==> ("postInputArgs();" which is actually a comment)

Can confirm that file edit fixes the issue.

TheByXy commented 4 months ago

Seems to be resolved by uncomment the line 98 in the file : \gligen_gui\static\js\extras.js ==> ("postInputArgs();" which is actually a comment)

Agree, it is working now, thank you! Do I need to close the issue now? Or leave this open until mut-ex's fixing this in code?

aflyrt commented 1 month ago
got prompt
!!! Exception during processing!!! 'Response' object is not subscriptable
Traceback (most recent call last):
  File "E:\new_ComfyUI_windows_portable_nvidia_cu121_or_cpu\ComfyUI_windows_portable\ComfyUI\execution.py", line 151, in recursive_execute
    output_data, output_ui = get_output_data(obj, input_data_all)
                             ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "E:\new_ComfyUI_windows_portable_nvidia_cu121_or_cpu\ComfyUI_windows_portable\ComfyUI\execution.py", line 81, in get_output_data
    return_values = map_node_over_list(obj, input_data_all, obj.FUNCTION, allow_interrupt=True)
                    ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "E:\new_ComfyUI_windows_portable_nvidia_cu121_or_cpu\ComfyUI_windows_portable\ComfyUI\execution.py", line 74, in map_node_over_list
    results.append(getattr(obj, func)(**slice_dict(input_data_all, i)))
                   ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "E:\new_ComfyUI_windows_portable_nvidia_cu121_or_cpu\ComfyUI_windows_portable\ComfyUI\custom_nodes\comfyui-gligengui-node\__init__.py", line 72, in append
    boxes = res["boxes"]
            ~~~^^^^^^^^^
TypeError: 'Response' object is not subscriptable