dify - 💡(How to fix) Fix Chatflow with file and Human Input is stuck

Official PRs (…)
ON THIS PAGE

Recommended Tools

×6

Utilities matched from this issue’s tags and category — try them while you read without losing context.

GitHub issue graph ai analysis

Paste a GitHub issue URL. We fetch that issue, discover linked issues from bodies/comments/timeline, collect linked pull requests, and produce a structured English report.

The report is written in English Markdown for sharing and archival.

Helpful · Quick feedback

Loading…

Error Message

026-05-26 13:22:31.600 INFO [MainThread] [strategy.py:161] - Task schedule.trigger_provider_refresh_task.trigger_provider_refresh[5d989ee9-7d56-455b-87e4-f22b536cd216] received 2026-05-26 13:22:31.625 INFO [Dummy-684] [trace.py:128] e507b08fe86b5f7db00831092561be4c - Task schedule.workflow_schedule_task.poll_workflow_schedules[8787237b-655b-4fda-90aa-c1218f1df030] succeeded in 0.052445345965679735s: None 2026-05-26 13:22:31.627 INFO [Dummy-685] [trigger_provider_refresh_task.py:65] 7c13e32e0c455c8fb169b28b94e35e04 - Trigger refresh scan start: due=0 2026-05-26 13:22:31.650 INFO [Dummy-685] [trace.py:128] 7c13e32e0c455c8fb169b28b94e35e04 - Task schedule.trigger_provider_refresh_task.trigger_provider_refresh[5d989ee9-7d56-455b-87e4-f22b536cd216] succeeded in 0.0492150440113619s: None 2026-05-26 13:22:40.875 INFO [GraphWorker-1] [_client.py:1025] 3de910da2ac05feba88edaecad774069 - HTTP Request: POST http://sandbox:8194/v1/sandbox/run "HTTP/1.1 200 OK" 2026-05-26 13:22:40.889 INFO [GraphWorker-1] [human_input_node.py:227] 3de910da2ac05feba88edaecad774069 - Human Input node suspended workflow for form. node_id=1779720361725, form_id=019e6473-a472-74c2-b762-023236310584 2026-05-26 13:22:41.191 INFO [Thread-675 (_generate_worker)] [sqlalchemy_api_workflow_run_repository.py:781] 3de910da2ac05feba88edaecad774069 - Created workflow pause 019e6473-a5a7-719a-9f2a-d66bcd2ea4e0 for workflow run 2d7abc8b-1332-4079-87a7-50f64159d240 2026-05-26 13:22:41.225 INFO [MainThread] [strategy.py:161] - Task tasks.mail_human_input_delivery_task.dispatch_human_input_email_task[64c554d7-4a40-418e-bc95-5385e41cb32d] received 2026-05-26 13:22:41.226 INFO [Dummy-686] [mail_human_input_delivery_task.py:151] e5dc344f382350249522063a94935aa8 - Start human input email delivery for form 019e6473-a472-74c2-b762-023236310584 2026-05-26 13:22:41.257 ERROR [Dummy-686] [mail_human_input_delivery_task.py:131] e5dc344f382350249522063a94935aa8 - Failed to load resumption context for workflow run 2d7abc8b-1332-4079-87a7-50f64159d240 Traceback (most recent call last): File "/app/api/tasks/mail_human_input_delivery_task.py", line 129, in _load_variable_pool resumption_context = WorkflowResumptionContext.loads(pause_entity.get_state().decode()) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/app/api/core/app/layers/pause_state_persist_layer.py", line 50, in loads return cls.model_validate_json(value) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/app/api/.venv/lib/python3.12/site-packages/pydantic/main.py", line 766, in model_validate_json return cls.pydantic_validator.validate_json( ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ TypeError: File.init() got an unexpected keyword argument 'id' 2026-05-26 13:22:41.258 INFO [Dummy-686] [mail_human_input_delivery_task.py:185] e5dc344f382350249522063a94935aa8 - Human input email delivery succeeded for form 019e6473-a472-74c2-b762-023236310584: latency: 0.03250078298151493 2026-05-26 13:22:41.283 INFO [Dummy-686] [trace.py:128] e5dc344f382350249522063a94935aa8 - Task tasks.mail_human_input_delivery_task.dispatch_human_input_email_task[64c554d7-4a40-418e-bc95-5385e41cb32d] succeeded in 0.05707247997634113s: None 2026-05-26 13:22:41.307 INFO [Dummy-674] [trace.py:128] 3de910da2ac05feba88edaecad774069 - Task tasks.app_generate.workflow_execute_task.workflow_based_app_execution_task[e7c144a0-d718-48bf-9119-b35f4f433317] succeeded in 140.0026240189909s: None 2026-05-26 13:22:43.458 INFO [MainThread] [strategy.py:161] - Task resume_app_execution[ea3d26c2-3f49-462f-8b14-af1d0c2ce100] received 2026-05-26 13:22:43.496 ERROR [Dummy-687] [workflow_execute_task.py:286] 3f3ca00f17be5de59e546dfc3e69062f - Failed to load resumption context for workflow run 2d7abc8b-1332-4079-87a7-50f64159d240 Traceback (most recent call last): File "/app/api/tasks/app_generate/workflow_execute_task.py", line 284, in _resume_app_execution resumption_context = WorkflowResumptionContext.loads(pause_entity.get_state().decode()) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/app/api/core/app/layers/pause_state_persist_layer.py", line 50, in loads return cls.model_validate_json(value) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/app/api/.venv/lib/python3.12/site-packages/pydantic/main.py", line 766, in model_validate_json return cls.pydantic_validator.validate_json( ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ TypeError: File.init() got an unexpected keyword argument 'id' 2026-05-26 13:22:43.539 INFO [Dummy-687] [trace.py:128] 3f3ca00f17be5de59e546dfc3e69062f - Task resume_app_execution[ea3d26c2-3f49-462f-8b14-af1d0c2ce100] succeeded in 0.07934918499086052s: None 2026-05-26 13:22:49.173 INFO [GraphWorker-1] [_client.py:1025] ea79209ca0235fa69fb4c4563d6234ff - HTTP Request: GET http://plugin_daemon:5002/plugin/5aa364dd-7eb9-46c5-a072-3a027018a111/management/models?page=1&page_size=256 "HTTP/1.1 200 OK" 2026-05-26 13:22:50.009 INFO [GraphWorker-1] [_client.py:1025] ea79209ca0235fa69fb4c4563d6234ff - HTTP Request: POST http://plugin_daemon:5002/plugin/5aa364dd-7eb9-46c5-a072-3a027018a111/dispatch/llm/invoke "HTTP/1.1 200 OK" 2026-05-26 13:23:31.532 INFO [MainThread] [strategy.py:161] - Task human_input_form_timeout.check_and_resume[a004f395-97e3-4b84-8f90-fc9477c87369] received 2026-05-26 13:23:31.546 INFO [MainThread] [strategy.py:161] - Task schedule.workflow_schedule_task.poll_workflow_schedules[ff2b403f-b8d2-4129-8bd0-33fa089df630] received 2026-05-26 13:23:31.592 INFO [Dummy-688] [trace.py:128] 76102a72f4075be4acf4a94933a1b94c - Task human_input_form_timeout.check_and_resume[a004f395-97e3-4b84-8f90-fc9477c87369] succeeded in 0.057643190026283264s: None 2026-05-26 13:23:31.594 INFO [MainThread] [strategy.py:161] - Task schedule.trigger_provider_refresh_task.trigger_provider_refresh[1a1d4bcf-2593-4385-8c94-42a1879cb0ce] received 2026-05-26 13:23:31.631 INFO [Dummy-689] [trace.py:128] fa6420fa94ed51d38be1554f8c9d5e9c - Task schedule.workflow_schedule_task.poll_workflow_schedules[ff2b403f-b8d2-4129-8bd0-33fa089df630] succeeded in 0.08354197797598317s: None 2026-05-26 13:23:31.631 INFO [Dummy-690] [trigger_provider_refresh_task.py:65] 7e6c30853cdf57f087bf9c95ca40b5a2 - Trigger refresh scan start: due=0 2026-05-26 13:23:31.653 INFO [Dummy-690] [trace.py:128] 7e6c30853cdf57f087bf9c95ca40b5a2 - Task schedule.trigger_provider_refresh_task.trigger_provider_refresh[1a1d4bcf-2593-4385-8c94-42a1879cb0ce] succeeded in 0.058256189979147166s: None 2026-05-26 13:23:53.260 INFO [GraphWorker-1] [_client.py:1025] ea79209ca0235fa69fb4c4563d6234ff - HTTP Request: POST http://plugin_daemon:5002/plugin/5aa364dd-7eb9-46c5-a072-3a027018a111/dispatch/llm/invoke "HTTP/1.1 200 OK" 2026-05-26 13:23:57.883 INFO [GraphWorker-1] [_client.py:1025] ea79209ca0235fa69fb4c4563d6234ff - HTTP Request: GET http://plugin_daemon:5002/plugin/5aa364dd-7eb9-46c5-a072-3a027018a111/management/models?page=1&page_size=256 "HTTP/1.1 200 OK" 2026-05-26 13:23:58.702 INFO [GraphWorker-1] [_client.py:1025] ea79209ca0235fa69fb4c4563d6234ff - HTTP Request: POST http://plugin_daemon:5002/plugin/5aa364dd-7eb9-46c5-a072-3a027018a111/dispatch/llm/invoke "HTTP/1.1 200 OK"

Fix Action

Fix / Workaround

026-05-26 13:22:31.600 INFO [MainThread] [strategy.py:161]  - Task schedule.trigger_provider_refresh_task.trigger_provider_refresh[5d989ee9-7d56-455b-87e4-f22b536cd216] received
2026-05-26 13:22:31.625 INFO [Dummy-684] [trace.py:128] e507b08fe86b5f7db00831092561be4c - Task schedule.workflow_schedule_task.poll_workflow_schedules[8787237b-655b-4fda-90aa-c1218f1df030] succeeded in 0.052445345965679735s: None
2026-05-26 13:22:31.627 INFO [Dummy-685] [trigger_provider_refresh_task.py:65] 7c13e32e0c455c8fb169b28b94e35e04 - Trigger refresh scan start: due=0
2026-05-26 13:22:31.650 INFO [Dummy-685] [trace.py:128] 7c13e32e0c455c8fb169b28b94e35e04 - Task schedule.trigger_provider_refresh_task.trigger_provider_refresh[5d989ee9-7d56-455b-87e4-f22b536cd216] succeeded in 0.0492150440113619s: None
2026-05-26 13:22:40.875 INFO [GraphWorker-1] [_client.py:1025] 3de910da2ac05feba88edaecad774069 - HTTP Request: POST http://sandbox:8194/v1/sandbox/run "HTTP/1.1 200 OK"
2026-05-26 13:22:40.889 INFO [GraphWorker-1] [human_input_node.py:227] 3de910da2ac05feba88edaecad774069 - Human Input node suspended workflow for form. node_id=1779720361725, form_id=019e6473-a472-74c2-b762-023236310584
2026-05-26 13:22:41.191 INFO [Thread-675 (_generate_worker)] [sqlalchemy_api_workflow_run_repository.py:781] 3de910da2ac05feba88edaecad774069 - Created workflow pause 019e6473-a5a7-719a-9f2a-d66bcd2ea4e0 for workflow run 2d7abc8b-1332-4079-87a7-50f64159d240
2026-05-26 13:22:41.225 INFO [MainThread] [strategy.py:161]  - Task tasks.mail_human_input_delivery_task.dispatch_human_input_email_task[64c554d7-4a40-418e-bc95-5385e41cb32d] received
2026-05-26 13:22:41.226 INFO [Dummy-686] [mail_human_input_delivery_task.py:151] e5dc344f382350249522063a94935aa8 - Start human input email delivery for form 019e6473-a472-74c2-b762-023236310584
2026-05-26 13:22:41.257 ERROR [Dummy-686] [mail_human_input_delivery_task.py:131] e5dc344f382350249522063a94935aa8 - Failed to load resumption context for workflow run 2d7abc8b-1332-4079-87a7-50f64159d240
Traceback (most recent call last):
  File "/app/api/tasks/mail_human_input_delivery_task.py", line 129, in _load_variable_pool
    resumption_context = WorkflowResumptionContext.loads(pause_entity.get_state().decode())
                         ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/app/api/core/app/layers/pause_state_persist_layer.py", line 50, in loads
    return cls.model_validate_json(value)
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/app/api/.venv/lib/python3.12/site-packages/pydantic/main.py", line 766, in model_validate_json
    return cls.__pydantic_validator__.validate_json(
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
TypeError: File.__init__() got an unexpected keyword argument 'id'
2026-05-26 13:22:41.258 INFO [Dummy-686] [mail_human_input_delivery_task.py:185] e5dc344f382350249522063a94935aa8 - Human input email delivery succeeded for form 019e6473-a472-74c2-b762-023236310584: latency: 0.03250078298151493
2026-05-26 13:22:41.283 INFO [Dummy-686] [trace.py:128] e5dc344f382350249522063a94935aa8 - Task tasks.mail_human_input_delivery_task.dispatch_human_input_email_task[64c554d7-4a40-418e-bc95-5385e41cb32d] succeeded in 0.05707247997634113s: None
2026-05-26 13:22:41.307 INFO [Dummy-674] [trace.py:128] 3de910da2ac05feba88edaecad774069 - Task tasks.app_generate.workflow_execute_task.workflow_based_app_execution_task[e7c144a0-d718-48bf-9119-b35f4f433317] succeeded in 140.0026240189909s: None
2026-05-26 13:22:43.458 INFO [MainThread] [strategy.py:161]  - Task resume_app_execution[ea3d26c2-3f49-462f-8b14-af1d0c2ce100] received
2026-05-26 13:22:43.496 ERROR [Dummy-687] [workflow_execute_task.py:286] 3f3ca00f17be5de59e546dfc3e69062f - Failed to load resumption context for workflow run 2d7abc8b-1332-4079-87a7-50f64159d240
Traceback (most recent call last):
  File "/app/api/tasks/app_generate/workflow_execute_task.py", line 284, in _resume_app_execution
    resumption_context = WorkflowResumptionContext.loads(pause_entity.get_state().decode())
                         ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/app/api/core/app/layers/pause_state_persist_layer.py", line 50, in loads
    return cls.model_validate_json(value)
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/app/api/.venv/lib/python3.12/site-packages/pydantic/main.py", line 766, in model_validate_json
    return cls.__pydantic_validator__.validate_json(
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
TypeError: File.__init__() got an unexpected keyword argument 'id'
2026-05-26 13:22:43.539 INFO [Dummy-687] [trace.py:128] 3f3ca00f17be5de59e546dfc3e69062f - Task resume_app_execution[ea3d26c2-3f49-462f-8b14-af1d0c2ce100] succeeded in 0.07934918499086052s: None
2026-05-26 13:22:49.173 INFO [GraphWorker-1] [_client.py:1025] ea79209ca0235fa69fb4c4563d6234ff - HTTP Request: GET http://plugin_daemon:5002/plugin/5aa364dd-7eb9-46c5-a072-3a027018a111/management/models?page=1&page_size=256 "HTTP/1.1 200 OK"
2026-05-26 13:22:50.009 INFO [GraphWorker-1] [_client.py:1025] ea79209ca0235fa69fb4c4563d6234ff - HTTP Request: POST http://plugin_daemon:5002/plugin/5aa364dd-7eb9-46c5-a072-3a027018a111/dispatch/llm/invoke "HTTP/1.1 200 OK"
2026-05-26 13:23:31.532 INFO [MainThread] [strategy.py:161]  - Task human_input_form_timeout.check_and_resume[a004f395-97e3-4b84-8f90-fc9477c87369] received
2026-05-26 13:23:31.546 INFO [MainThread] [strategy.py:161]  - Task schedule.workflow_schedule_task.poll_workflow_schedules[ff2b403f-b8d2-4129-8bd0-33fa089df630] received
2026-05-26 13:23:31.592 INFO [Dummy-688] [trace.py:128] 76102a72f4075be4acf4a94933a1b94c - Task human_input_form_timeout.check_and_resume[a004f395-97e3-4b84-8f90-fc9477c87369] succeeded in 0.057643190026283264s: None
2026-05-26 13:23:31.594 INFO [MainThread] [strategy.py:161]  - Task schedule.trigger_provider_refresh_task.trigger_provider_refresh[1a1d4bcf-2593-4385-8c94-42a1879cb0ce] received
2026-05-26 13:23:31.631 INFO [Dummy-689] [trace.py:128] fa6420fa94ed51d38be1554f8c9d5e9c - Task schedule.workflow_schedule_task.poll_workflow_schedules[ff2b403f-b8d2-4129-8bd0-33fa089df630] succeeded in 0.08354197797598317s: None
2026-05-26 13:23:31.631 INFO [Dummy-690] [trigger_provider_refresh_task.py:65] 7e6c30853cdf57f087bf9c95ca40b5a2 - Trigger refresh scan start: due=0
2026-05-26 13:23:31.653 INFO [Dummy-690] [trace.py:128] 7e6c30853cdf57f087bf9c95ca40b5a2 - Task schedule.trigger_provider_refresh_task.trigger_provider_refresh[1a1d4bcf-2593-4385-8c94-42a1879cb0ce] succeeded in 0.058256189979147166s: None
2026-05-26 13:23:53.260 INFO [GraphWorker-1] [_client.py:1025] ea79209ca0235fa69fb4c4563d6234ff - HTTP Request: POST http://plugin_daemon:5002/plugin/5aa364dd-7eb9-46c5-a072-3a027018a111/dispatch/llm/invoke "HTTP/1.1 200 OK"
2026-05-26 13:23:57.883 INFO [GraphWorker-1] [_client.py:1025] ea79209ca0235fa69fb4c4563d6234ff - HTTP Request: GET http://plugin_daemon:5002/plugin/5aa364dd-7eb9-46c5-a072-3a027018a111/management/models?page=1&page_size=256 "HTTP/1.1 200 OK"
2026-05-26 13:23:58.702 INFO [GraphWorker-1] [_client.py:1025] ea79209ca0235fa69fb4c4563d6234ff - HTTP Request: POST http://plugin_daemon:5002/plugin/5aa364dd-7eb9-46c5-a072-3a027018a111/dispatch/llm/invoke "HTTP/1.1 200 OK"

Code Example

026-05-26 13:22:31.600 INFO [MainThread] [strategy.py:161]  - Task schedule.trigger_provider_refresh_task.trigger_provider_refresh[5d989ee9-7d56-455b-87e4-f22b536cd216] received
2026-05-26 13:22:31.625 INFO [Dummy-684] [trace.py:128] e507b08fe86b5f7db00831092561be4c - Task schedule.workflow_schedule_task.poll_workflow_schedules[8787237b-655b-4fda-90aa-c1218f1df030] succeeded in 0.052445345965679735s: None
2026-05-26 13:22:31.627 INFO [Dummy-685] [trigger_provider_refresh_task.py:65] 7c13e32e0c455c8fb169b28b94e35e04 - Trigger refresh scan start: due=0
2026-05-26 13:22:31.650 INFO [Dummy-685] [trace.py:128] 7c13e32e0c455c8fb169b28b94e35e04 - Task schedule.trigger_provider_refresh_task.trigger_provider_refresh[5d989ee9-7d56-455b-87e4-f22b536cd216] succeeded in 0.0492150440113619s: None
2026-05-26 13:22:40.875 INFO [GraphWorker-1] [_client.py:1025] 3de910da2ac05feba88edaecad774069 - HTTP Request: POST http://sandbox:8194/v1/sandbox/run "HTTP/1.1 200 OK"
2026-05-26 13:22:40.889 INFO [GraphWorker-1] [human_input_node.py:227] 3de910da2ac05feba88edaecad774069 - Human Input node suspended workflow for form. node_id=1779720361725, form_id=019e6473-a472-74c2-b762-023236310584
2026-05-26 13:22:41.191 INFO [Thread-675 (_generate_worker)] [sqlalchemy_api_workflow_run_repository.py:781] 3de910da2ac05feba88edaecad774069 - Created workflow pause 019e6473-a5a7-719a-9f2a-d66bcd2ea4e0 for workflow run 2d7abc8b-1332-4079-87a7-50f64159d240
2026-05-26 13:22:41.225 INFO [MainThread] [strategy.py:161]  - Task tasks.mail_human_input_delivery_task.dispatch_human_input_email_task[64c554d7-4a40-418e-bc95-5385e41cb32d] received
2026-05-26 13:22:41.226 INFO [Dummy-686] [mail_human_input_delivery_task.py:151] e5dc344f382350249522063a94935aa8 - Start human input email delivery for form 019e6473-a472-74c2-b762-023236310584
2026-05-26 13:22:41.257 ERROR [Dummy-686] [mail_human_input_delivery_task.py:131] e5dc344f382350249522063a94935aa8 - Failed to load resumption context for workflow run 2d7abc8b-1332-4079-87a7-50f64159d240
Traceback (most recent call last):
  File "/app/api/tasks/mail_human_input_delivery_task.py", line 129, in _load_variable_pool
    resumption_context = WorkflowResumptionContext.loads(pause_entity.get_state().decode())
                         ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/app/api/core/app/layers/pause_state_persist_layer.py", line 50, in loads
    return cls.model_validate_json(value)
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/app/api/.venv/lib/python3.12/site-packages/pydantic/main.py", line 766, in model_validate_json
    return cls.__pydantic_validator__.validate_json(
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
TypeError: File.__init__() got an unexpected keyword argument 'id'
2026-05-26 13:22:41.258 INFO [Dummy-686] [mail_human_input_delivery_task.py:185] e5dc344f382350249522063a94935aa8 - Human input email delivery succeeded for form 019e6473-a472-74c2-b762-023236310584: latency: 0.03250078298151493
2026-05-26 13:22:41.283 INFO [Dummy-686] [trace.py:128] e5dc344f382350249522063a94935aa8 - Task tasks.mail_human_input_delivery_task.dispatch_human_input_email_task[64c554d7-4a40-418e-bc95-5385e41cb32d] succeeded in 0.05707247997634113s: None
2026-05-26 13:22:41.307 INFO [Dummy-674] [trace.py:128] 3de910da2ac05feba88edaecad774069 - Task tasks.app_generate.workflow_execute_task.workflow_based_app_execution_task[e7c144a0-d718-48bf-9119-b35f4f433317] succeeded in 140.0026240189909s: None
2026-05-26 13:22:43.458 INFO [MainThread] [strategy.py:161]  - Task resume_app_execution[ea3d26c2-3f49-462f-8b14-af1d0c2ce100] received
2026-05-26 13:22:43.496 ERROR [Dummy-687] [workflow_execute_task.py:286] 3f3ca00f17be5de59e546dfc3e69062f - Failed to load resumption context for workflow run 2d7abc8b-1332-4079-87a7-50f64159d240
Traceback (most recent call last):
  File "/app/api/tasks/app_generate/workflow_execute_task.py", line 284, in _resume_app_execution
    resumption_context = WorkflowResumptionContext.loads(pause_entity.get_state().decode())
                         ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/app/api/core/app/layers/pause_state_persist_layer.py", line 50, in loads
    return cls.model_validate_json(value)
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/app/api/.venv/lib/python3.12/site-packages/pydantic/main.py", line 766, in model_validate_json
    return cls.__pydantic_validator__.validate_json(
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
TypeError: File.__init__() got an unexpected keyword argument 'id'
2026-05-26 13:22:43.539 INFO [Dummy-687] [trace.py:128] 3f3ca00f17be5de59e546dfc3e69062f - Task resume_app_execution[ea3d26c2-3f49-462f-8b14-af1d0c2ce100] succeeded in 0.07934918499086052s: None
2026-05-26 13:22:49.173 INFO [GraphWorker-1] [_client.py:1025] ea79209ca0235fa69fb4c4563d6234ff - HTTP Request: GET http://plugin_daemon:5002/plugin/5aa364dd-7eb9-46c5-a072-3a027018a111/management/models?page=1&page_size=256 "HTTP/1.1 200 OK"
2026-05-26 13:22:50.009 INFO [GraphWorker-1] [_client.py:1025] ea79209ca0235fa69fb4c4563d6234ff - HTTP Request: POST http://plugin_daemon:5002/plugin/5aa364dd-7eb9-46c5-a072-3a027018a111/dispatch/llm/invoke "HTTP/1.1 200 OK"
2026-05-26 13:23:31.532 INFO [MainThread] [strategy.py:161]  - Task human_input_form_timeout.check_and_resume[a004f395-97e3-4b84-8f90-fc9477c87369] received
2026-05-26 13:23:31.546 INFO [MainThread] [strategy.py:161]  - Task schedule.workflow_schedule_task.poll_workflow_schedules[ff2b403f-b8d2-4129-8bd0-33fa089df630] received
2026-05-26 13:23:31.592 INFO [Dummy-688] [trace.py:128] 76102a72f4075be4acf4a94933a1b94c - Task human_input_form_timeout.check_and_resume[a004f395-97e3-4b84-8f90-fc9477c87369] succeeded in 0.057643190026283264s: None
2026-05-26 13:23:31.594 INFO [MainThread] [strategy.py:161]  - Task schedule.trigger_provider_refresh_task.trigger_provider_refresh[1a1d4bcf-2593-4385-8c94-42a1879cb0ce] received
2026-05-26 13:23:31.631 INFO [Dummy-689] [trace.py:128] fa6420fa94ed51d38be1554f8c9d5e9c - Task schedule.workflow_schedule_task.poll_workflow_schedules[ff2b403f-b8d2-4129-8bd0-33fa089df630] succeeded in 0.08354197797598317s: None
2026-05-26 13:23:31.631 INFO [Dummy-690] [trigger_provider_refresh_task.py:65] 7e6c30853cdf57f087bf9c95ca40b5a2 - Trigger refresh scan start: due=0
2026-05-26 13:23:31.653 INFO [Dummy-690] [trace.py:128] 7e6c30853cdf57f087bf9c95ca40b5a2 - Task schedule.trigger_provider_refresh_task.trigger_provider_refresh[1a1d4bcf-2593-4385-8c94-42a1879cb0ce] succeeded in 0.058256189979147166s: None
2026-05-26 13:23:53.260 INFO [GraphWorker-1] [_client.py:1025] ea79209ca0235fa69fb4c4563d6234ff - HTTP Request: POST http://plugin_daemon:5002/plugin/5aa364dd-7eb9-46c5-a072-3a027018a111/dispatch/llm/invoke "HTTP/1.1 200 OK"
2026-05-26 13:23:57.883 INFO [GraphWorker-1] [_client.py:1025] ea79209ca0235fa69fb4c4563d6234ff - HTTP Request: GET http://plugin_daemon:5002/plugin/5aa364dd-7eb9-46c5-a072-3a027018a111/management/models?page=1&page_size=256 "HTTP/1.1 200 OK"
2026-05-26 13:23:58.702 INFO [GraphWorker-1] [_client.py:1025] ea79209ca0235fa69fb4c4563d6234ff - HTTP Request: POST http://plugin_daemon:5002/plugin/5aa364dd-7eb9-46c5-a072-3a027018a111/dispatch/llm/invoke "HTTP/1.1 200 OK"
RAW_BUFFERClick to expand / collapse

Self Checks

  • I have read the Contributing Guide and Language Policy.
  • This is only for bug report, if you would like to ask a question, please head to Discussions.
  • I have searched for existing issues search for existing issues, including closed ones.
  • I confirm that I am using English to submit this report, otherwise it will be closed.
  • 【中文用户 & Non English User】请使用英语提交,否则会被关闭 :)
  • Please do not modify this template :) and fill in all the required fields.

Dify version

1.14.0

Cloud or Self Hosted

Self Hosted (Docker)

Steps to reproduce

Prepare an chatflow with 4 simple elements:

  1. user input
  2. LLM
  3. human input
  4. answer

Configure chatflow:

  • Human input prepare 2 options, and both connect with answer.
  • Change the chat settings to allow attachments.

(see the screenshot below in actual behavior)

Write a prompt, wait for answer and click any button from the Human input.

✔️ Expected Behavior

Click on the button is saved and chatflow is continued.

❌ Actual Behavior

Chatflow is stuck. Input prompt is disabled in the UI. Next click to any button shows an information in the upper right corner: This form has already been submitted by another user, form_id=...

<img width="3407" height="1212" alt="Image" src="https://github.com/user-attachments/assets/09be0973-4717-4c3b-a2c1-0617ea4f1a61" />

error log from container:

026-05-26 13:22:31.600 INFO [MainThread] [strategy.py:161]  - Task schedule.trigger_provider_refresh_task.trigger_provider_refresh[5d989ee9-7d56-455b-87e4-f22b536cd216] received
2026-05-26 13:22:31.625 INFO [Dummy-684] [trace.py:128] e507b08fe86b5f7db00831092561be4c - Task schedule.workflow_schedule_task.poll_workflow_schedules[8787237b-655b-4fda-90aa-c1218f1df030] succeeded in 0.052445345965679735s: None
2026-05-26 13:22:31.627 INFO [Dummy-685] [trigger_provider_refresh_task.py:65] 7c13e32e0c455c8fb169b28b94e35e04 - Trigger refresh scan start: due=0
2026-05-26 13:22:31.650 INFO [Dummy-685] [trace.py:128] 7c13e32e0c455c8fb169b28b94e35e04 - Task schedule.trigger_provider_refresh_task.trigger_provider_refresh[5d989ee9-7d56-455b-87e4-f22b536cd216] succeeded in 0.0492150440113619s: None
2026-05-26 13:22:40.875 INFO [GraphWorker-1] [_client.py:1025] 3de910da2ac05feba88edaecad774069 - HTTP Request: POST http://sandbox:8194/v1/sandbox/run "HTTP/1.1 200 OK"
2026-05-26 13:22:40.889 INFO [GraphWorker-1] [human_input_node.py:227] 3de910da2ac05feba88edaecad774069 - Human Input node suspended workflow for form. node_id=1779720361725, form_id=019e6473-a472-74c2-b762-023236310584
2026-05-26 13:22:41.191 INFO [Thread-675 (_generate_worker)] [sqlalchemy_api_workflow_run_repository.py:781] 3de910da2ac05feba88edaecad774069 - Created workflow pause 019e6473-a5a7-719a-9f2a-d66bcd2ea4e0 for workflow run 2d7abc8b-1332-4079-87a7-50f64159d240
2026-05-26 13:22:41.225 INFO [MainThread] [strategy.py:161]  - Task tasks.mail_human_input_delivery_task.dispatch_human_input_email_task[64c554d7-4a40-418e-bc95-5385e41cb32d] received
2026-05-26 13:22:41.226 INFO [Dummy-686] [mail_human_input_delivery_task.py:151] e5dc344f382350249522063a94935aa8 - Start human input email delivery for form 019e6473-a472-74c2-b762-023236310584
2026-05-26 13:22:41.257 ERROR [Dummy-686] [mail_human_input_delivery_task.py:131] e5dc344f382350249522063a94935aa8 - Failed to load resumption context for workflow run 2d7abc8b-1332-4079-87a7-50f64159d240
Traceback (most recent call last):
  File "/app/api/tasks/mail_human_input_delivery_task.py", line 129, in _load_variable_pool
    resumption_context = WorkflowResumptionContext.loads(pause_entity.get_state().decode())
                         ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/app/api/core/app/layers/pause_state_persist_layer.py", line 50, in loads
    return cls.model_validate_json(value)
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/app/api/.venv/lib/python3.12/site-packages/pydantic/main.py", line 766, in model_validate_json
    return cls.__pydantic_validator__.validate_json(
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
TypeError: File.__init__() got an unexpected keyword argument 'id'
2026-05-26 13:22:41.258 INFO [Dummy-686] [mail_human_input_delivery_task.py:185] e5dc344f382350249522063a94935aa8 - Human input email delivery succeeded for form 019e6473-a472-74c2-b762-023236310584: latency: 0.03250078298151493
2026-05-26 13:22:41.283 INFO [Dummy-686] [trace.py:128] e5dc344f382350249522063a94935aa8 - Task tasks.mail_human_input_delivery_task.dispatch_human_input_email_task[64c554d7-4a40-418e-bc95-5385e41cb32d] succeeded in 0.05707247997634113s: None
2026-05-26 13:22:41.307 INFO [Dummy-674] [trace.py:128] 3de910da2ac05feba88edaecad774069 - Task tasks.app_generate.workflow_execute_task.workflow_based_app_execution_task[e7c144a0-d718-48bf-9119-b35f4f433317] succeeded in 140.0026240189909s: None
2026-05-26 13:22:43.458 INFO [MainThread] [strategy.py:161]  - Task resume_app_execution[ea3d26c2-3f49-462f-8b14-af1d0c2ce100] received
2026-05-26 13:22:43.496 ERROR [Dummy-687] [workflow_execute_task.py:286] 3f3ca00f17be5de59e546dfc3e69062f - Failed to load resumption context for workflow run 2d7abc8b-1332-4079-87a7-50f64159d240
Traceback (most recent call last):
  File "/app/api/tasks/app_generate/workflow_execute_task.py", line 284, in _resume_app_execution
    resumption_context = WorkflowResumptionContext.loads(pause_entity.get_state().decode())
                         ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/app/api/core/app/layers/pause_state_persist_layer.py", line 50, in loads
    return cls.model_validate_json(value)
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/app/api/.venv/lib/python3.12/site-packages/pydantic/main.py", line 766, in model_validate_json
    return cls.__pydantic_validator__.validate_json(
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
TypeError: File.__init__() got an unexpected keyword argument 'id'
2026-05-26 13:22:43.539 INFO [Dummy-687] [trace.py:128] 3f3ca00f17be5de59e546dfc3e69062f - Task resume_app_execution[ea3d26c2-3f49-462f-8b14-af1d0c2ce100] succeeded in 0.07934918499086052s: None
2026-05-26 13:22:49.173 INFO [GraphWorker-1] [_client.py:1025] ea79209ca0235fa69fb4c4563d6234ff - HTTP Request: GET http://plugin_daemon:5002/plugin/5aa364dd-7eb9-46c5-a072-3a027018a111/management/models?page=1&page_size=256 "HTTP/1.1 200 OK"
2026-05-26 13:22:50.009 INFO [GraphWorker-1] [_client.py:1025] ea79209ca0235fa69fb4c4563d6234ff - HTTP Request: POST http://plugin_daemon:5002/plugin/5aa364dd-7eb9-46c5-a072-3a027018a111/dispatch/llm/invoke "HTTP/1.1 200 OK"
2026-05-26 13:23:31.532 INFO [MainThread] [strategy.py:161]  - Task human_input_form_timeout.check_and_resume[a004f395-97e3-4b84-8f90-fc9477c87369] received
2026-05-26 13:23:31.546 INFO [MainThread] [strategy.py:161]  - Task schedule.workflow_schedule_task.poll_workflow_schedules[ff2b403f-b8d2-4129-8bd0-33fa089df630] received
2026-05-26 13:23:31.592 INFO [Dummy-688] [trace.py:128] 76102a72f4075be4acf4a94933a1b94c - Task human_input_form_timeout.check_and_resume[a004f395-97e3-4b84-8f90-fc9477c87369] succeeded in 0.057643190026283264s: None
2026-05-26 13:23:31.594 INFO [MainThread] [strategy.py:161]  - Task schedule.trigger_provider_refresh_task.trigger_provider_refresh[1a1d4bcf-2593-4385-8c94-42a1879cb0ce] received
2026-05-26 13:23:31.631 INFO [Dummy-689] [trace.py:128] fa6420fa94ed51d38be1554f8c9d5e9c - Task schedule.workflow_schedule_task.poll_workflow_schedules[ff2b403f-b8d2-4129-8bd0-33fa089df630] succeeded in 0.08354197797598317s: None
2026-05-26 13:23:31.631 INFO [Dummy-690] [trigger_provider_refresh_task.py:65] 7e6c30853cdf57f087bf9c95ca40b5a2 - Trigger refresh scan start: due=0
2026-05-26 13:23:31.653 INFO [Dummy-690] [trace.py:128] 7e6c30853cdf57f087bf9c95ca40b5a2 - Task schedule.trigger_provider_refresh_task.trigger_provider_refresh[1a1d4bcf-2593-4385-8c94-42a1879cb0ce] succeeded in 0.058256189979147166s: None
2026-05-26 13:23:53.260 INFO [GraphWorker-1] [_client.py:1025] ea79209ca0235fa69fb4c4563d6234ff - HTTP Request: POST http://plugin_daemon:5002/plugin/5aa364dd-7eb9-46c5-a072-3a027018a111/dispatch/llm/invoke "HTTP/1.1 200 OK"
2026-05-26 13:23:57.883 INFO [GraphWorker-1] [_client.py:1025] ea79209ca0235fa69fb4c4563d6234ff - HTTP Request: GET http://plugin_daemon:5002/plugin/5aa364dd-7eb9-46c5-a072-3a027018a111/management/models?page=1&page_size=256 "HTTP/1.1 200 OK"
2026-05-26 13:23:58.702 INFO [GraphWorker-1] [_client.py:1025] ea79209ca0235fa69fb4c4563d6234ff - HTTP Request: POST http://plugin_daemon:5002/plugin/5aa364dd-7eb9-46c5-a072-3a027018a111/dispatch/llm/invoke "HTTP/1.1 200 OK"

If I don't add any files as attachments, everything is fine.

Vote matrix · Quick signals

Works
Did the solution work? Tap to confirm.
Easy Fix
Was it a quick fix?
Time Saver
Did it save you time?
Blocking
Was it severely blocking?
Common Issue
Are others likely hitting this too?
Flaky / Intermittent
Is it intermittent?
Verified / Reproducible
Can you reproduce it reliably?
Loading…

Still need to ship something?

×6

Another batch ranked right after the header list — different links, same matching logic.

Back to top recommendations

TRENDING