500 error in text generator with Gemini models #285

Closed
opened 2026-02-16 10:18:47 -05:00 by yindo · 18 comments
Owner

Originally created by @progamesigner on GitHub (May 15, 2025).

Originally assigned to: @QuantumGhost on GitHub.

Self Checks

  • 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 (我已阅读并同意 Language Policy).
  • [FOR CHINESE USERS] 请务必使用英文提交 Issue,否则会被关闭。谢谢!:)
  • Please do not modify this template :) and fill in all the required fields.

Dify version

1.3.1

Cloud or Self Hosted

Self Hosted (Source), Self Hosted (Docker)

Steps to reproduce

  1. Create a text generator from blank
  2. Use Gemini models (I am using Gemini 2.0 Flash / Gemini 2.5 Flash Preview)
  3. Type something to ask model

(Use other models work, such DeepSeek or models from OpenAI)

✔️ Expected Behavior

Should be able to response texts

Actual Behavior

Do nothing with API error:

[2025-05-15 06:32:18 +0000] [31] [ERROR] Error handling request /console/api/apps/0c70a1c6-db89-4cb6-9c1d-049fb2240f8d/completion-messages
Traceback (most recent call last):
  File "/app/api/.venv/lib/python3.12/site-packages/gunicorn/workers/base_async.py", line 54, in handle
    self.handle_request(listener_name, req, client, addr)
  File "/app/api/.venv/lib/python3.12/site-packages/gunicorn/workers/ggevent.py", line 127, in handle_request
    super().handle_request(listener_name, req, sock, addr)
  File "/app/api/.venv/lib/python3.12/site-packages/gunicorn/workers/base_async.py", line 114, in handle_request
    for item in respiter:
                ^^^^^^^^
  File "/app/api/.venv/lib/python3.12/site-packages/werkzeug/wsgi.py", line 256, in __next__
    return self._next()
           ^^^^^^^^^^^^
  File "/app/api/.venv/lib/python3.12/site-packages/werkzeug/wrappers/response.py", line 32, in _iter_encoded
    for item in iterable:
                ^^^^^^^^
  File "/app/api/.venv/lib/python3.12/site-packages/flask/helpers.py", line 125, in generator
    yield from gen
  File "/app/api/libs/helper.py", line 203, in generate
    yield from response
  File "/app/api/core/app/features/rate_limiting/rate_limit.py", line 116, in __next__
    return next(self.generator)
           ^^^^^^^^^^^^^^^^^^^^
  File "/app/api/core/app/apps/base_app_generator.py", line 155, in gen
    for message in generator:
                   ^^^^^^^^^
  File "/app/api/core/app/apps/base_app_generate_response_converter.py", line 25, in _generate_full_response
    yield from cls.convert_stream_full_response(response)
  File "/app/api/core/app/apps/completion/generate_response_converter.py", line 61, in convert_stream_full_response
    for chunk in stream_response:
                 ^^^^^^^^^^^^^^^
  File "/app/api/core/app/task_pipeline/easy_ui_based_generate_task_pipeline.py", line 182, in _to_stream_response
    for stream_response in generator:
                           ^^^^^^^^^
  File "/app/api/core/app/task_pipeline/easy_ui_based_generate_task_pipeline.py", line 221, in _wrapper_process_stream_response
    for response in self._process_stream_response(publisher=publisher, trace_manager=trace_manager):
                    ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/app/api/core/app/task_pipeline/easy_ui_based_generate_task_pipeline.py", line 317, in _process_stream_response
    current_content += cast(str, delta_text)
TypeError: can only concatenate str (not "list") to str
Originally created by @progamesigner on GitHub (May 15, 2025). Originally assigned to: @QuantumGhost on GitHub. ### Self Checks - [x] This is only for bug report, if you would like to ask a question, please head to [Discussions](https://github.com/langgenius/dify/discussions/categories/general). - [x] I have searched for existing issues [search for existing issues](https://github.com/langgenius/dify/issues), including closed ones. - [x] I confirm that I am using English to submit this report (我已阅读并同意 [Language Policy](https://github.com/langgenius/dify/issues/1542)). - [x] [FOR CHINESE USERS] 请务必使用英文提交 Issue,否则会被关闭。谢谢!:) - [x] Please do not modify this template :) and fill in all the required fields. ### Dify version 1.3.1 ### Cloud or Self Hosted Self Hosted (Source), Self Hosted (Docker) ### Steps to reproduce 1. Create a text generator from blank 2. Use Gemini models (I am using Gemini 2.0 Flash / Gemini 2.5 Flash Preview) 3. Type something to ask model (Use other models work, such DeepSeek or models from OpenAI) ### ✔️ Expected Behavior Should be able to response texts ### ❌ Actual Behavior Do nothing with API error: ``` [2025-05-15 06:32:18 +0000] [31] [ERROR] Error handling request /console/api/apps/0c70a1c6-db89-4cb6-9c1d-049fb2240f8d/completion-messages Traceback (most recent call last): File "/app/api/.venv/lib/python3.12/site-packages/gunicorn/workers/base_async.py", line 54, in handle self.handle_request(listener_name, req, client, addr) File "/app/api/.venv/lib/python3.12/site-packages/gunicorn/workers/ggevent.py", line 127, in handle_request super().handle_request(listener_name, req, sock, addr) File "/app/api/.venv/lib/python3.12/site-packages/gunicorn/workers/base_async.py", line 114, in handle_request for item in respiter: ^^^^^^^^ File "/app/api/.venv/lib/python3.12/site-packages/werkzeug/wsgi.py", line 256, in __next__ return self._next() ^^^^^^^^^^^^ File "/app/api/.venv/lib/python3.12/site-packages/werkzeug/wrappers/response.py", line 32, in _iter_encoded for item in iterable: ^^^^^^^^ File "/app/api/.venv/lib/python3.12/site-packages/flask/helpers.py", line 125, in generator yield from gen File "/app/api/libs/helper.py", line 203, in generate yield from response File "/app/api/core/app/features/rate_limiting/rate_limit.py", line 116, in __next__ return next(self.generator) ^^^^^^^^^^^^^^^^^^^^ File "/app/api/core/app/apps/base_app_generator.py", line 155, in gen for message in generator: ^^^^^^^^^ File "/app/api/core/app/apps/base_app_generate_response_converter.py", line 25, in _generate_full_response yield from cls.convert_stream_full_response(response) File "/app/api/core/app/apps/completion/generate_response_converter.py", line 61, in convert_stream_full_response for chunk in stream_response: ^^^^^^^^^^^^^^^ File "/app/api/core/app/task_pipeline/easy_ui_based_generate_task_pipeline.py", line 182, in _to_stream_response for stream_response in generator: ^^^^^^^^^ File "/app/api/core/app/task_pipeline/easy_ui_based_generate_task_pipeline.py", line 221, in _wrapper_process_stream_response for response in self._process_stream_response(publisher=publisher, trace_manager=trace_manager): ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/app/api/core/app/task_pipeline/easy_ui_based_generate_task_pipeline.py", line 317, in _process_stream_response current_content += cast(str, delta_text) TypeError: can only concatenate str (not "list") to str ```
yindo closed this issue 2026-02-16 10:18:47 -05:00
Author
Owner

@dosubot[bot] commented on GitHub (May 15, 2025):

Hello @progamesigner! I'm Dosu, a bot here to help you solve bugs, answer your questions, and assist you in becoming a contributor. I'm ready to assist while you wait for a human maintainer. How can I help you today?

To resolve the "TypeError: can only concatenate str (not 'list') to str" error in the text generator using Gemini models on a self-hosted Dify version 1.3.1, you should update to Gemini plugin version 0.1.5. This version includes a fix that checks if chunk.delta.message.content is a list and iterates over it to concatenate each content.data to the response string, ensuring proper string concatenation [1][2].

To continue talking to Dosu, mention @dosu.


Help Dosu learn! Give it feedback: Great Response | Irrelevant Answer | Incorrect Sources | Too Verbose | Hallucination | Bug Report | Other

@dosubot[bot] commented on GitHub (May 15, 2025): <!-- Greeting --> Hello @progamesigner! I'm [Dosu](https://dosu.dev), a bot here to help you solve bugs, answer your questions, and assist you in becoming a contributor. I'm ready to assist while you wait for a human maintainer. How can I help you today? <!-- Answer --> To resolve the "TypeError: can only concatenate str (not 'list') to str" error in the text generator using Gemini models on a self-hosted Dify version 1.3.1, you should update to Gemini plugin version 0.1.5. This version includes a fix that checks if `chunk.delta.message.content` is a list and iterates over it to concatenate each `content.data` to the `response` string, ensuring proper string concatenation <sup>[[1]](https://github.com/langgenius/dify/issues/18394)</sup><sup>[[2]](https://github.com/crazywoola/dify-docs-mintlify/blob/main/plugin_dev_en/9433-agent-strategy-plugin.en.mdx)</sup>. <!-- Dosu Comment Footer --> *To continue talking to [Dosu](https://dosu.dev), mention @dosu.* --- <sup>Help Dosu learn! Give it feedback: [Great Response](https://app.dosu.dev/response-feedback/2f6e8c10-6941-4ee5-8bca-2fa735b132f8?feedback_type=great_response) | [Irrelevant Answer](https://app.dosu.dev/response-feedback/2f6e8c10-6941-4ee5-8bca-2fa735b132f8?feedback_type=irrelevant_answer) | [Incorrect Sources](https://app.dosu.dev/response-feedback/2f6e8c10-6941-4ee5-8bca-2fa735b132f8?feedback_type=incorrect_sources) | [Too Verbose](https://app.dosu.dev/response-feedback/2f6e8c10-6941-4ee5-8bca-2fa735b132f8?feedback_type=too_verbose) | [Hallucination](https://app.dosu.dev/response-feedback/2f6e8c10-6941-4ee5-8bca-2fa735b132f8?feedback_type=hallucination) | [Bug Report](https://app.dosu.dev/response-feedback/2f6e8c10-6941-4ee5-8bca-2fa735b132f8?feedback_type=bug_report) | [Other](https://app.dosu.dev/response-feedback/2f6e8c10-6941-4ee5-8bca-2fa735b132f8?feedback_type=other)</sup>
Author
Owner

@progamesigner commented on GitHub (May 15, 2025):

My Gemini plugin was in 0.2.0 which doesn't existed on marketplace 🤔

After update to current latest version 0.1.6 and the problem fixed.

@progamesigner commented on GitHub (May 15, 2025): My Gemini plugin was in 0.2.0 which doesn't existed on marketplace 🤔 After update to current latest version 0.1.6 and the problem fixed.
Author
Owner

@QuantumGhost commented on GitHub (May 15, 2025):

Hi, @progamesigner

Thank you for reporting this bug! Could you confirm if you're using the development version of the Gemini plugin from langgenius/dify-official-plugins#804?

@QuantumGhost commented on GitHub (May 15, 2025): Hi, @progamesigner Thank you for reporting this bug! Could you confirm if you're using the development version of the Gemini plugin from langgenius/dify-official-plugins#804?
Author
Owner

@progamesigner commented on GitHub (May 15, 2025):

Not sure if I am using development version of Gemini plugin. I saw bot's response to check version, my Dify showed that the Gemini plugin is "0.2.0" but check the published versions, the latest one is "0.1.6". After reinstall version 0.1.6, the chat bot works. I also not use multmodel and only text now.

@progamesigner commented on GitHub (May 15, 2025): Not sure if I am using development version of Gemini plugin. I saw bot's response to check version, my Dify showed that the Gemini plugin is "0.2.0" but check the published versions, the latest one is "0.1.6". After reinstall version 0.1.6, the chat bot works. I also not use multmodel and only text now.
Author
Owner

@AmeowCAT commented on GitHub (May 16, 2025):

version 0.1.6 worked
version 0.2.1 same error
[2025-05-16 06:29:33 +0000] [26] [ERROR] Error handling request /console/api/apps/77303f57-dfeb-4b10-9c83-a7ba2ed60f03/chat-messages Traceback (most recent call last): File "/app/api/.venv/lib/python3.12/site-packages/gunicorn/workers/base_async.py", line 54, in handle self.handle_request(listener_name, req, client, addr) File "/app/api/.venv/lib/python3.12/site-packages/gunicorn/workers/ggevent.py", line 127, in handle_request super().handle_request(listener_name, req, sock, addr) File "/app/api/.venv/lib/python3.12/site-packages/gunicorn/workers/base_async.py", line 114, in handle_request for item in respiter: ^^^^^^^^ File "/app/api/.venv/lib/python3.12/site-packages/werkzeug/wsgi.py", line 256, in __next__ return self._next() ^^^^^^^^^^^^ File "/app/api/.venv/lib/python3.12/site-packages/werkzeug/wrappers/response.py", line 32, in _iter_encoded for item in iterable: ^^^^^^^^ File "/app/api/.venv/lib/python3.12/site-packages/flask/helpers.py", line 125, in generator yield from gen File "/app/api/libs/helper.py", line 203, in generate yield from response File "/app/api/core/app/features/rate_limiting/rate_limit.py", line 116, in __next__ return next(self.generator) ^^^^^^^^^^^^^^^^^^^^ File "/app/api/core/app/apps/base_app_generator.py", line 155, in gen for message in generator: ^^^^^^^^^ File "/app/api/core/app/apps/base_app_generate_response_converter.py", line 25, in _generate_full_response yield from cls.convert_stream_full_response(response) File "/app/api/core/app/apps/chat/generate_response_converter.py", line 62, in convert_stream_full_response for chunk in stream_response: ^^^^^^^^^^^^^^^ File "/app/api/core/app/task_pipeline/easy_ui_based_generate_task_pipeline.py", line 182, in _to_stream_response for stream_response in generator: ^^^^^^^^^ File "/app/api/core/app/task_pipeline/easy_ui_based_generate_task_pipeline.py", line 221, in _wrapper_process_stream_response for response in self._process_stream_response(publisher=publisher, trace_manager=trace_manager): ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/app/api/core/app/task_pipeline/easy_ui_based_generate_task_pipeline.py", line 317, in _process_stream_response current_content += cast(str, delta_text) TypeError: can only concatenate str (not "list") to str 2025-05-16 06:30:10.166 ERROR [Thread-23 (_generate_worker)] [app_generator.py:246] - Unknown Error when generating Traceback (most recent call last): File "/app/api/core/app/apps/chat/app_generator.py", line 226, in _generate_worker runner.run( File "/app/api/core/app/apps/chat/app_runner.py", line 217, in run self._handle_invoke_result( File "/app/api/core/app/apps/base_app_runner.py", line 279, in _handle_invoke_result self._handle_invoke_result_stream(invoke_result=invoke_result, queue_manager=queue_manager, agent=agent) File "/app/api/core/app/apps/base_app_runner.py", line 320, in _handle_invoke_result_stream text += result.delta.message.content TypeError: can only concatenate str (not "list") to str

@AmeowCAT commented on GitHub (May 16, 2025): version 0.1.6 worked version 0.2.1 same error `[2025-05-16 06:29:33 +0000] [26] [ERROR] Error handling request /console/api/apps/77303f57-dfeb-4b10-9c83-a7ba2ed60f03/chat-messages Traceback (most recent call last): File "/app/api/.venv/lib/python3.12/site-packages/gunicorn/workers/base_async.py", line 54, in handle self.handle_request(listener_name, req, client, addr) File "/app/api/.venv/lib/python3.12/site-packages/gunicorn/workers/ggevent.py", line 127, in handle_request super().handle_request(listener_name, req, sock, addr) File "/app/api/.venv/lib/python3.12/site-packages/gunicorn/workers/base_async.py", line 114, in handle_request for item in respiter: ^^^^^^^^ File "/app/api/.venv/lib/python3.12/site-packages/werkzeug/wsgi.py", line 256, in __next__ return self._next() ^^^^^^^^^^^^ File "/app/api/.venv/lib/python3.12/site-packages/werkzeug/wrappers/response.py", line 32, in _iter_encoded for item in iterable: ^^^^^^^^ File "/app/api/.venv/lib/python3.12/site-packages/flask/helpers.py", line 125, in generator yield from gen File "/app/api/libs/helper.py", line 203, in generate yield from response File "/app/api/core/app/features/rate_limiting/rate_limit.py", line 116, in __next__ return next(self.generator) ^^^^^^^^^^^^^^^^^^^^ File "/app/api/core/app/apps/base_app_generator.py", line 155, in gen for message in generator: ^^^^^^^^^ File "/app/api/core/app/apps/base_app_generate_response_converter.py", line 25, in _generate_full_response yield from cls.convert_stream_full_response(response) File "/app/api/core/app/apps/chat/generate_response_converter.py", line 62, in convert_stream_full_response for chunk in stream_response: ^^^^^^^^^^^^^^^ File "/app/api/core/app/task_pipeline/easy_ui_based_generate_task_pipeline.py", line 182, in _to_stream_response for stream_response in generator: ^^^^^^^^^ File "/app/api/core/app/task_pipeline/easy_ui_based_generate_task_pipeline.py", line 221, in _wrapper_process_stream_response for response in self._process_stream_response(publisher=publisher, trace_manager=trace_manager): ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/app/api/core/app/task_pipeline/easy_ui_based_generate_task_pipeline.py", line 317, in _process_stream_response current_content += cast(str, delta_text) TypeError: can only concatenate str (not "list") to str 2025-05-16 06:30:10.166 ERROR [Thread-23 (_generate_worker)] [app_generator.py:246] - Unknown Error when generating Traceback (most recent call last): File "/app/api/core/app/apps/chat/app_generator.py", line 226, in _generate_worker runner.run( File "/app/api/core/app/apps/chat/app_runner.py", line 217, in run self._handle_invoke_result( File "/app/api/core/app/apps/base_app_runner.py", line 279, in _handle_invoke_result self._handle_invoke_result_stream(invoke_result=invoke_result, queue_manager=queue_manager, agent=agent) File "/app/api/core/app/apps/base_app_runner.py", line 320, in _handle_invoke_result_stream text += result.delta.message.content TypeError: can only concatenate str (not "list") to str`
Author
Owner

@progamesigner commented on GitHub (May 20, 2025):

Tested with 0.2.0 and 0.2.1 versions, both give the same error as previous mentioned.

@progamesigner commented on GitHub (May 20, 2025): Tested with 0.2.0 and 0.2.1 versions, both give the same error as previous mentioned.
Author
Owner

@Loping151 commented on GitHub (May 20, 2025):

I installed 0.2.0/0.2.1 from marketplace. However, I couldn't get any response in agent mode. The output is blank as if I clicked 'stop response' but I didn't. Confused.
0.1.6 worked properly
Image

@Loping151 commented on GitHub (May 20, 2025): I installed 0.2.0/0.2.1 from marketplace. However, I couldn't get any response in agent mode. The output is blank as if I clicked 'stop response' but I didn't. Confused. 0.1.6 worked properly ![Image](https://github.com/user-attachments/assets/48d43a2f-6ba3-4d55-9f72-7886cae10ece)
Author
Owner

@tomo-v commented on GitHub (May 25, 2025):

Gemini plugin 0.2.2 is same on Dify 1.4.0 at agent mode. Chatflow works well.

@tomo-v commented on GitHub (May 25, 2025): Gemini plugin 0.2.2 is same on Dify 1.4.0 at agent mode. Chatflow works well.
Author
Owner

@zboyaboy commented on GitHub (May 25, 2025):

2025-05-24 16:33:54.256 ERROR [Dummy-6] [models.py:162] - Failed to save model credentials, tenant_id: b8c6adbf-5acf-4842-b2d8-2076e4da15a9, model: gemini-2.0-flash, model_type: llm
Traceback (most recent call last):
File "/app/api/controllers/console/workspace/models.py", line 154, in post
model_provider_service.save_model_credentials(
File "/app/api/services/model_provider_service.py", line 237, in save_model_credentials
provider_configuration.add_or_update_custom_model_credentials(
File "/app/api/core/entities/provider_configuration.py", line 422, in add_or_update_custom_model_credentials
provider_model_record, credentials = self.custom_model_credentials_validate(model_type, model, credentials)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/app/api/core/entities/provider_configuration.py", line 402, in custom_model_credentials_validate
credentials = model_provider_factory.model_credentials_validate(
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/app/api/core/model_runtime/model_providers/model_provider_factory.py", line 191, in model_credentials_validate
self.plugin_model_manager.validate_model_credentials(
File "/app/api/core/plugin/impl/model.py", line 137, in validate_model_credentials
for resp in response:
^^^^^^^^
File "/app/api/core/plugin/impl/base.py", line 192, in _request_with_plugin_daemon_response_stream
self._handle_plugin_daemon_error(error.error_type, error.message)
File "/app/api/core/plugin/impl/base.py", line 222, in _handle_plugin_daemon_error
raise CredentialsValidateFailedError(error_object.get("message"))
core.model_runtime.errors.validate.CredentialsValidateFailedError: Credentials validation failed with status code 500
2025-05-25 00:44:52.547 ERROR [Thread-13 (_generate_worker)] [app_generator.py:246] - Unknown Error when generating
Traceback (most recent call last):
File "/app/api/core/app/apps/chat/app_generator.py", line 226, in _generate_worker
runner.run(
File "/app/api/core/app/apps/chat/app_runner.py", line 217, in run
self._handle_invoke_result(
File "/app/api/core/app/apps/base_app_runner.py", line 279, in _handle_invoke_result
self._handle_invoke_result_stream(invoke_result=invoke_result, queue_manager=queue_manager, agent=agent)
File "/app/api/core/app/apps/base_app_runner.py", line 320, in _handle_invoke_result_stream
text += result.delta.message.content
TypeError: can only concatenate str (not "list") to str
[2025-05-25 00:44:52 +0000] [15] [ERROR] Error handling request
Traceback (most recent call last):
File "/app/api/.venv/lib/python3.12/site-packages/gunicorn/workers/base_async.py", line 114, in handle_request
for item in respiter:
^^^^^^^^
File "/app/api/.venv/lib/python3.12/site-packages/werkzeug/wsgi.py", line 256, in next
return self._next()
^^^^^^^^^^^^
File "/app/api/.venv/lib/python3.12/site-packages/werkzeug/wrappers/response.py", line 32, in _iter_encoded
for item in iterable:
^^^^^^^^
File "/app/api/.venv/lib/python3.12/site-packages/flask/helpers.py", line 125, in generator
yield from gen
File "/app/api/libs/helper.py", line 203, in generate
yield from response
File "/app/api/core/app/features/rate_limiting/rate_limit.py", line 116, in next
return next(self.generator)
^^^^^^^^^^^^^^^^^^^^
File "/app/api/core/app/apps/base_app_generator.py", line 155, in gen
for message in generator:
^^^^^^^^^
File "/app/api/core/app/apps/base_app_generate_response_converter.py", line 25, in _generate_full_response
yield from cls.convert_stream_full_response(response)
File "/app/api/core/app/apps/chat/generate_response_converter.py", line 62, in convert_stream_full_response
for chunk in stream_response:
^^^^^^^^^^^^^^^
File "/app/api/core/app/task_pipeline/easy_ui_based_generate_task_pipeline.py", line 182, in _to_stream_response
for stream_response in generator:
^^^^^^^^^
File "/app/api/core/app/task_pipeline/easy_ui_based_generate_task_pipeline.py", line 221, in _wrapper_process_stream_response
for response in self._process_stream_response(publisher=publisher, trace_manager=trace_manager):
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/app/api/core/app/task_pipeline/easy_ui_based_generate_task_pipeline.py", line 317, in _process_stream_response
current_content += cast(str, delta_text)
TypeError: can only concatenate str (not "list") to str
2025-05-26 02:24:59.068 ERROR [Thread-15 (_generate_worker)] [app_generator.py:246] - Unknown Error when generating
Traceback (most recent call last):
File "/app/api/core/app/apps/chat/app_generator.py", line 226, in _generate_worker
runner.run(
File "/app/api/core/app/apps/chat/app_runner.py", line 217, in run
self._handle_invoke_result(
File "/app/api/core/app/apps/base_app_runner.py", line 279, in _handle_invoke_result
self._handle_invoke_result_stream(invoke_result=invoke_result, queue_manager=queue_manager, agent=agent)
File "/app/api/core/app/apps/base_app_runner.py", line 320, in _handle_invoke_result_stream
text += result.delta.message.content
TypeError: can only concatenate str (not "list") to str
[2025-05-26 02:24:59 +0000] [15] [ERROR] Error handling request /console/api/apps/f2e96185-177c-409e-9c5d-32dd826af21c/chat-messages
Traceback (most recent call last):
File "/app/api/.venv/lib/python3.12/site-packages/gunicorn/workers/base_async.py", line 54, in handle
self.handle_request(listener_name, req, client, addr)
File "/app/api/.venv/lib/python3.12/site-packages/gunicorn/workers/ggevent.py", line 127, in handle_request
super().handle_request(listener_name, req, sock, addr)
File "/app/api/.venv/lib/python3.12/site-packages/gunicorn/workers/base_async.py", line 114, in handle_request
for item in respiter:
^^^^^^^^
File "/app/api/.venv/lib/python3.12/site-packages/werkzeug/wsgi.py", line 256, in next
return self._next()
^^^^^^^^^^^^
File "/app/api/.venv/lib/python3.12/site-packages/werkzeug/wrappers/response.py", line 32, in _iter_encoded
for item in iterable:
^^^^^^^^
File "/app/api/.venv/lib/python3.12/site-packages/flask/helpers.py", line 125, in generator
yield from gen
File "/app/api/libs/helper.py", line 203, in generate
yield from response
File "/app/api/core/app/features/rate_limiting/rate_limit.py", line 116, in next
return next(self.generator)
^^^^^^^^^^^^^^^^^^^^
File "/app/api/core/app/apps/base_app_generator.py", line 155, in gen
for message in generator:
^^^^^^^^^
File "/app/api/core/app/apps/base_app_generate_response_converter.py", line 25, in _generate_full_response
yield from cls.convert_stream_full_response(response)
File "/app/api/core/app/apps/chat/generate_response_converter.py", line 62, in convert_stream_full_response
for chunk in stream_response:
^^^^^^^^^^^^^^^
File "/app/api/core/app/task_pipeline/easy_ui_based_generate_task_pipeline.py", line 182, in _to_stream_response
for stream_response in generator:
^^^^^^^^^
File "/app/api/core/app/task_pipeline/easy_ui_based_generate_task_pipeline.py", line 221, in _wrapper_process_stream_response
for response in self._process_stream_response(publisher=publisher, trace_manager=trace_manager):
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/app/api/core/app/task_pipeline/easy_ui_based_generate_task_pipeline.py", line 317, in _process_stream_response
current_content += cast(str, delta_text)
TypeError: can only concatenate str (not "list") to str

@zboyaboy commented on GitHub (May 25, 2025): 2025-05-24 16:33:54.256 ERROR [Dummy-6] [models.py:162] - Failed to save model credentials, tenant_id: b8c6adbf-5acf-4842-b2d8-2076e4da15a9, model: gemini-2.0-flash, model_type: llm Traceback (most recent call last): File "/app/api/controllers/console/workspace/models.py", line 154, in post model_provider_service.save_model_credentials( File "/app/api/services/model_provider_service.py", line 237, in save_model_credentials provider_configuration.add_or_update_custom_model_credentials( File "/app/api/core/entities/provider_configuration.py", line 422, in add_or_update_custom_model_credentials provider_model_record, credentials = self.custom_model_credentials_validate(model_type, model, credentials) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/app/api/core/entities/provider_configuration.py", line 402, in custom_model_credentials_validate credentials = model_provider_factory.model_credentials_validate( ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/app/api/core/model_runtime/model_providers/model_provider_factory.py", line 191, in model_credentials_validate self.plugin_model_manager.validate_model_credentials( File "/app/api/core/plugin/impl/model.py", line 137, in validate_model_credentials for resp in response: ^^^^^^^^ File "/app/api/core/plugin/impl/base.py", line 192, in _request_with_plugin_daemon_response_stream self._handle_plugin_daemon_error(error.error_type, error.message) File "/app/api/core/plugin/impl/base.py", line 222, in _handle_plugin_daemon_error raise CredentialsValidateFailedError(error_object.get("message")) core.model_runtime.errors.validate.CredentialsValidateFailedError: Credentials validation failed with status code 500 2025-05-25 00:44:52.547 ERROR [Thread-13 (_generate_worker)] [app_generator.py:246] - Unknown Error when generating Traceback (most recent call last): File "/app/api/core/app/apps/chat/app_generator.py", line 226, in _generate_worker runner.run( File "/app/api/core/app/apps/chat/app_runner.py", line 217, in run self._handle_invoke_result( File "/app/api/core/app/apps/base_app_runner.py", line 279, in _handle_invoke_result self._handle_invoke_result_stream(invoke_result=invoke_result, queue_manager=queue_manager, agent=agent) File "/app/api/core/app/apps/base_app_runner.py", line 320, in _handle_invoke_result_stream text += result.delta.message.content TypeError: can only concatenate str (not "list") to str [2025-05-25 00:44:52 +0000] [15] [ERROR] Error handling request Traceback (most recent call last): File "/app/api/.venv/lib/python3.12/site-packages/gunicorn/workers/base_async.py", line 114, in handle_request for item in respiter: ^^^^^^^^ File "/app/api/.venv/lib/python3.12/site-packages/werkzeug/wsgi.py", line 256, in __next__ return self._next() ^^^^^^^^^^^^ File "/app/api/.venv/lib/python3.12/site-packages/werkzeug/wrappers/response.py", line 32, in _iter_encoded for item in iterable: ^^^^^^^^ File "/app/api/.venv/lib/python3.12/site-packages/flask/helpers.py", line 125, in generator yield from gen File "/app/api/libs/helper.py", line 203, in generate yield from response File "/app/api/core/app/features/rate_limiting/rate_limit.py", line 116, in __next__ return next(self.generator) ^^^^^^^^^^^^^^^^^^^^ File "/app/api/core/app/apps/base_app_generator.py", line 155, in gen for message in generator: ^^^^^^^^^ File "/app/api/core/app/apps/base_app_generate_response_converter.py", line 25, in _generate_full_response yield from cls.convert_stream_full_response(response) File "/app/api/core/app/apps/chat/generate_response_converter.py", line 62, in convert_stream_full_response for chunk in stream_response: ^^^^^^^^^^^^^^^ File "/app/api/core/app/task_pipeline/easy_ui_based_generate_task_pipeline.py", line 182, in _to_stream_response for stream_response in generator: ^^^^^^^^^ File "/app/api/core/app/task_pipeline/easy_ui_based_generate_task_pipeline.py", line 221, in _wrapper_process_stream_response for response in self._process_stream_response(publisher=publisher, trace_manager=trace_manager): ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/app/api/core/app/task_pipeline/easy_ui_based_generate_task_pipeline.py", line 317, in _process_stream_response current_content += cast(str, delta_text) TypeError: can only concatenate str (not "list") to str 2025-05-26 02:24:59.068 ERROR [Thread-15 (_generate_worker)] [app_generator.py:246] - Unknown Error when generating Traceback (most recent call last): File "/app/api/core/app/apps/chat/app_generator.py", line 226, in _generate_worker runner.run( File "/app/api/core/app/apps/chat/app_runner.py", line 217, in run self._handle_invoke_result( File "/app/api/core/app/apps/base_app_runner.py", line 279, in _handle_invoke_result self._handle_invoke_result_stream(invoke_result=invoke_result, queue_manager=queue_manager, agent=agent) File "/app/api/core/app/apps/base_app_runner.py", line 320, in _handle_invoke_result_stream text += result.delta.message.content TypeError: can only concatenate str (not "list") to str [2025-05-26 02:24:59 +0000] [15] [ERROR] Error handling request /console/api/apps/f2e96185-177c-409e-9c5d-32dd826af21c/chat-messages Traceback (most recent call last): File "/app/api/.venv/lib/python3.12/site-packages/gunicorn/workers/base_async.py", line 54, in handle self.handle_request(listener_name, req, client, addr) File "/app/api/.venv/lib/python3.12/site-packages/gunicorn/workers/ggevent.py", line 127, in handle_request super().handle_request(listener_name, req, sock, addr) File "/app/api/.venv/lib/python3.12/site-packages/gunicorn/workers/base_async.py", line 114, in handle_request for item in respiter: ^^^^^^^^ File "/app/api/.venv/lib/python3.12/site-packages/werkzeug/wsgi.py", line 256, in __next__ return self._next() ^^^^^^^^^^^^ File "/app/api/.venv/lib/python3.12/site-packages/werkzeug/wrappers/response.py", line 32, in _iter_encoded for item in iterable: ^^^^^^^^ File "/app/api/.venv/lib/python3.12/site-packages/flask/helpers.py", line 125, in generator yield from gen File "/app/api/libs/helper.py", line 203, in generate yield from response File "/app/api/core/app/features/rate_limiting/rate_limit.py", line 116, in __next__ return next(self.generator) ^^^^^^^^^^^^^^^^^^^^ File "/app/api/core/app/apps/base_app_generator.py", line 155, in gen for message in generator: ^^^^^^^^^ File "/app/api/core/app/apps/base_app_generate_response_converter.py", line 25, in _generate_full_response yield from cls.convert_stream_full_response(response) File "/app/api/core/app/apps/chat/generate_response_converter.py", line 62, in convert_stream_full_response for chunk in stream_response: ^^^^^^^^^^^^^^^ File "/app/api/core/app/task_pipeline/easy_ui_based_generate_task_pipeline.py", line 182, in _to_stream_response for stream_response in generator: ^^^^^^^^^ File "/app/api/core/app/task_pipeline/easy_ui_based_generate_task_pipeline.py", line 221, in _wrapper_process_stream_response for response in self._process_stream_response(publisher=publisher, trace_manager=trace_manager): ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/app/api/core/app/task_pipeline/easy_ui_based_generate_task_pipeline.py", line 317, in _process_stream_response current_content += cast(str, delta_text) TypeError: can only concatenate str (not "list") to str
Author
Owner

@zboyaboy commented on GitHub (May 26, 2025):

Plug in versions 0.2.0 and later all show this error message, and chatflow testing does not report any errors

@zboyaboy commented on GitHub (May 26, 2025): Plug in versions 0.2.0 and later all show this error message, and chatflow testing does not report any errors
Author
Owner

@mauricio-egadnet commented on GitHub (May 28, 2025):

I have same issue, on version 0.1.6 works.

@mauricio-egadnet commented on GitHub (May 28, 2025): I have same issue, on version 0.1.6 works.
Author
Owner

@princehaku commented on GitHub (May 30, 2025):

same here...

@princehaku commented on GitHub (May 30, 2025): same here...
Author
Owner

@X4tar commented on GitHub (Jun 4, 2025):

+1

@X4tar commented on GitHub (Jun 4, 2025): +1
Author
Owner

@progamesigner commented on GitHub (Jun 5, 2025):

I’m curious, why does this unresolved issue get closed? It seems like many people are facing the same problem and are stuck on an older version.

On latest Gemini plugin 0.2.3 with all models will produce the same error in all basic app type (Text Generator, Agent, and Chatbot).

2025-06-05 04:04:18,963.963 ERROR [Thread-96 (worker_with_context)] [app_generator.py:247] - Unknown Error when generating
Traceback (most recent call last):
  File "/app/api/core/app/apps/chat/app_generator.py", line 227, in _generate_worker
    runner.run(
  File "/app/api/core/app/apps/chat/app_runner.py", line 217, in run
    self._handle_invoke_result(
  File "/app/api/core/app/apps/base_app_runner.py", line 279, in _handle_invoke_result
    self._handle_invoke_result_stream(invoke_result=invoke_result, queue_manager=queue_manager, agent=agent)
  File "/app/api/core/app/apps/base_app_runner.py", line 320, in _handle_invoke_result_stream
    text += result.delta.message.content
TypeError: can only concatenate str (not "list") to str
[2025-06-05 04:04:18 +0000] [21] [ERROR] Error handling request /console/api/apps/7cbd7a56-0928-4942-9119-5624544d50d8/chat-messages
Traceback (most recent call last):
  File "/app/api/.venv/lib/python3.12/site-packages/gunicorn/workers/base_async.py", line 54, in handle
    self.handle_request(listener_name, req, client, addr)
  File "/app/api/.venv/lib/python3.12/site-packages/gunicorn/workers/ggevent.py", line 127, in handle_request
    super().handle_request(listener_name, req, sock, addr)
  File "/app/api/.venv/lib/python3.12/site-packages/gunicorn/workers/base_async.py", line 114, in handle_request
    for item in respiter:
                ^^^^^^^^
  File "/app/api/.venv/lib/python3.12/site-packages/werkzeug/wsgi.py", line 256, in __next__
    return self._next()
           ^^^^^^^^^^^^
  File "/app/api/.venv/lib/python3.12/site-packages/werkzeug/wrappers/response.py", line 32, in _iter_encoded
    for item in iterable:
                ^^^^^^^^
  File "/app/api/.venv/lib/python3.12/site-packages/flask/helpers.py", line 125, in generator
    yield from gen
  File "/app/api/libs/helper.py", line 203, in generate
    yield from response
  File "/app/api/core/app/features/rate_limiting/rate_limit.py", line 116, in __next__
    return next(self.generator)
           ^^^^^^^^^^^^^^^^^^^^
  File "/app/api/core/app/apps/base_app_generator.py", line 155, in gen
    for message in generator:
                   ^^^^^^^^^
  File "/app/api/core/app/apps/base_app_generate_response_converter.py", line 25, in _generate_full_response
    yield from cls.convert_stream_full_response(response)
  File "/app/api/core/app/apps/chat/generate_response_converter.py", line 62, in convert_stream_full_response
    for chunk in stream_response:
                 ^^^^^^^^^^^^^^^
  File "/app/api/core/app/task_pipeline/easy_ui_based_generate_task_pipeline.py", line 182, in _to_stream_response
    for stream_response in generator:
                           ^^^^^^^^^
  File "/app/api/core/app/task_pipeline/easy_ui_based_generate_task_pipeline.py", line 221, in _wrapper_process_stream_response
    for response in self._process_stream_response(publisher=publisher, trace_manager=trace_manager):
                    ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/app/api/core/app/task_pipeline/easy_ui_based_generate_task_pipeline.py", line 317, in _process_stream_response
    current_content += cast(str, delta_text)
TypeError: can only concatenate str (not "list") to str
@progamesigner commented on GitHub (Jun 5, 2025): I’m curious, why does this unresolved issue get closed? It seems like many people are facing the same problem and are stuck on an older version. On latest Gemini plugin `0.2.3` with all models will produce the same error in all basic app type (Text Generator, Agent, and Chatbot). ``` 2025-06-05 04:04:18,963.963 ERROR [Thread-96 (worker_with_context)] [app_generator.py:247] - Unknown Error when generating Traceback (most recent call last): File "/app/api/core/app/apps/chat/app_generator.py", line 227, in _generate_worker runner.run( File "/app/api/core/app/apps/chat/app_runner.py", line 217, in run self._handle_invoke_result( File "/app/api/core/app/apps/base_app_runner.py", line 279, in _handle_invoke_result self._handle_invoke_result_stream(invoke_result=invoke_result, queue_manager=queue_manager, agent=agent) File "/app/api/core/app/apps/base_app_runner.py", line 320, in _handle_invoke_result_stream text += result.delta.message.content TypeError: can only concatenate str (not "list") to str [2025-06-05 04:04:18 +0000] [21] [ERROR] Error handling request /console/api/apps/7cbd7a56-0928-4942-9119-5624544d50d8/chat-messages Traceback (most recent call last): File "/app/api/.venv/lib/python3.12/site-packages/gunicorn/workers/base_async.py", line 54, in handle self.handle_request(listener_name, req, client, addr) File "/app/api/.venv/lib/python3.12/site-packages/gunicorn/workers/ggevent.py", line 127, in handle_request super().handle_request(listener_name, req, sock, addr) File "/app/api/.venv/lib/python3.12/site-packages/gunicorn/workers/base_async.py", line 114, in handle_request for item in respiter: ^^^^^^^^ File "/app/api/.venv/lib/python3.12/site-packages/werkzeug/wsgi.py", line 256, in __next__ return self._next() ^^^^^^^^^^^^ File "/app/api/.venv/lib/python3.12/site-packages/werkzeug/wrappers/response.py", line 32, in _iter_encoded for item in iterable: ^^^^^^^^ File "/app/api/.venv/lib/python3.12/site-packages/flask/helpers.py", line 125, in generator yield from gen File "/app/api/libs/helper.py", line 203, in generate yield from response File "/app/api/core/app/features/rate_limiting/rate_limit.py", line 116, in __next__ return next(self.generator) ^^^^^^^^^^^^^^^^^^^^ File "/app/api/core/app/apps/base_app_generator.py", line 155, in gen for message in generator: ^^^^^^^^^ File "/app/api/core/app/apps/base_app_generate_response_converter.py", line 25, in _generate_full_response yield from cls.convert_stream_full_response(response) File "/app/api/core/app/apps/chat/generate_response_converter.py", line 62, in convert_stream_full_response for chunk in stream_response: ^^^^^^^^^^^^^^^ File "/app/api/core/app/task_pipeline/easy_ui_based_generate_task_pipeline.py", line 182, in _to_stream_response for stream_response in generator: ^^^^^^^^^ File "/app/api/core/app/task_pipeline/easy_ui_based_generate_task_pipeline.py", line 221, in _wrapper_process_stream_response for response in self._process_stream_response(publisher=publisher, trace_manager=trace_manager): ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/app/api/core/app/task_pipeline/easy_ui_based_generate_task_pipeline.py", line 317, in _process_stream_response current_content += cast(str, delta_text) TypeError: can only concatenate str (not "list") to str ```
Author
Owner

@crazywoola commented on GitHub (Jun 5, 2025):

I’m curious, why does this unresolved issue get closed? It seems like many people are facing the same problem and are stuck on an older version.

On latest Gemini plugin 0.2.3 with all models will produce the same error in all basic app type (Text Generator, Agent, and Chatbot).

2025-06-05 04:04:18,963.963 ERROR [Thread-96 (worker_with_context)] [app_generator.py:247] - Unknown Error when generating
Traceback (most recent call last):
  File "/app/api/core/app/apps/chat/app_generator.py", line 227, in _generate_worker
    runner.run(
  File "/app/api/core/app/apps/chat/app_runner.py", line 217, in run
    self._handle_invoke_result(
  File "/app/api/core/app/apps/base_app_runner.py", line 279, in _handle_invoke_result
    self._handle_invoke_result_stream(invoke_result=invoke_result, queue_manager=queue_manager, agent=agent)
  File "/app/api/core/app/apps/base_app_runner.py", line 320, in _handle_invoke_result_stream
    text += result.delta.message.content
TypeError: can only concatenate str (not "list") to str
[2025-06-05 04:04:18 +0000] [21] [ERROR] Error handling request /console/api/apps/7cbd7a56-0928-4942-9119-5624544d50d8/chat-messages
Traceback (most recent call last):
  File "/app/api/.venv/lib/python3.12/site-packages/gunicorn/workers/base_async.py", line 54, in handle
    self.handle_request(listener_name, req, client, addr)
  File "/app/api/.venv/lib/python3.12/site-packages/gunicorn/workers/ggevent.py", line 127, in handle_request
    super().handle_request(listener_name, req, sock, addr)
  File "/app/api/.venv/lib/python3.12/site-packages/gunicorn/workers/base_async.py", line 114, in handle_request
    for item in respiter:
                ^^^^^^^^
  File "/app/api/.venv/lib/python3.12/site-packages/werkzeug/wsgi.py", line 256, in __next__
    return self._next()
           ^^^^^^^^^^^^
  File "/app/api/.venv/lib/python3.12/site-packages/werkzeug/wrappers/response.py", line 32, in _iter_encoded
    for item in iterable:
                ^^^^^^^^
  File "/app/api/.venv/lib/python3.12/site-packages/flask/helpers.py", line 125, in generator
    yield from gen
  File "/app/api/libs/helper.py", line 203, in generate
    yield from response
  File "/app/api/core/app/features/rate_limiting/rate_limit.py", line 116, in __next__
    return next(self.generator)
           ^^^^^^^^^^^^^^^^^^^^
  File "/app/api/core/app/apps/base_app_generator.py", line 155, in gen
    for message in generator:
                   ^^^^^^^^^
  File "/app/api/core/app/apps/base_app_generate_response_converter.py", line 25, in _generate_full_response
    yield from cls.convert_stream_full_response(response)
  File "/app/api/core/app/apps/chat/generate_response_converter.py", line 62, in convert_stream_full_response
    for chunk in stream_response:
                 ^^^^^^^^^^^^^^^
  File "/app/api/core/app/task_pipeline/easy_ui_based_generate_task_pipeline.py", line 182, in _to_stream_response
    for stream_response in generator:
                           ^^^^^^^^^
  File "/app/api/core/app/task_pipeline/easy_ui_based_generate_task_pipeline.py", line 221, in _wrapper_process_stream_response
    for response in self._process_stream_response(publisher=publisher, trace_manager=trace_manager):
                    ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/app/api/core/app/task_pipeline/easy_ui_based_generate_task_pipeline.py", line 317, in _process_stream_response
    current_content += cast(str, delta_text)
TypeError: can only concatenate str (not "list") to str

Sorry, I have transferred this issue to this repo.

@crazywoola commented on GitHub (Jun 5, 2025): > I’m curious, why does this unresolved issue get closed? It seems like many people are facing the same problem and are stuck on an older version. > > On latest Gemini plugin `0.2.3` with all models will produce the same error in all basic app type (Text Generator, Agent, and Chatbot). > > ``` > 2025-06-05 04:04:18,963.963 ERROR [Thread-96 (worker_with_context)] [app_generator.py:247] - Unknown Error when generating > Traceback (most recent call last): > File "/app/api/core/app/apps/chat/app_generator.py", line 227, in _generate_worker > runner.run( > File "/app/api/core/app/apps/chat/app_runner.py", line 217, in run > self._handle_invoke_result( > File "/app/api/core/app/apps/base_app_runner.py", line 279, in _handle_invoke_result > self._handle_invoke_result_stream(invoke_result=invoke_result, queue_manager=queue_manager, agent=agent) > File "/app/api/core/app/apps/base_app_runner.py", line 320, in _handle_invoke_result_stream > text += result.delta.message.content > TypeError: can only concatenate str (not "list") to str > [2025-06-05 04:04:18 +0000] [21] [ERROR] Error handling request /console/api/apps/7cbd7a56-0928-4942-9119-5624544d50d8/chat-messages > Traceback (most recent call last): > File "/app/api/.venv/lib/python3.12/site-packages/gunicorn/workers/base_async.py", line 54, in handle > self.handle_request(listener_name, req, client, addr) > File "/app/api/.venv/lib/python3.12/site-packages/gunicorn/workers/ggevent.py", line 127, in handle_request > super().handle_request(listener_name, req, sock, addr) > File "/app/api/.venv/lib/python3.12/site-packages/gunicorn/workers/base_async.py", line 114, in handle_request > for item in respiter: > ^^^^^^^^ > File "/app/api/.venv/lib/python3.12/site-packages/werkzeug/wsgi.py", line 256, in __next__ > return self._next() > ^^^^^^^^^^^^ > File "/app/api/.venv/lib/python3.12/site-packages/werkzeug/wrappers/response.py", line 32, in _iter_encoded > for item in iterable: > ^^^^^^^^ > File "/app/api/.venv/lib/python3.12/site-packages/flask/helpers.py", line 125, in generator > yield from gen > File "/app/api/libs/helper.py", line 203, in generate > yield from response > File "/app/api/core/app/features/rate_limiting/rate_limit.py", line 116, in __next__ > return next(self.generator) > ^^^^^^^^^^^^^^^^^^^^ > File "/app/api/core/app/apps/base_app_generator.py", line 155, in gen > for message in generator: > ^^^^^^^^^ > File "/app/api/core/app/apps/base_app_generate_response_converter.py", line 25, in _generate_full_response > yield from cls.convert_stream_full_response(response) > File "/app/api/core/app/apps/chat/generate_response_converter.py", line 62, in convert_stream_full_response > for chunk in stream_response: > ^^^^^^^^^^^^^^^ > File "/app/api/core/app/task_pipeline/easy_ui_based_generate_task_pipeline.py", line 182, in _to_stream_response > for stream_response in generator: > ^^^^^^^^^ > File "/app/api/core/app/task_pipeline/easy_ui_based_generate_task_pipeline.py", line 221, in _wrapper_process_stream_response > for response in self._process_stream_response(publisher=publisher, trace_manager=trace_manager): > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ > File "/app/api/core/app/task_pipeline/easy_ui_based_generate_task_pipeline.py", line 317, in _process_stream_response > current_content += cast(str, delta_text) > TypeError: can only concatenate str (not "list") to str > ``` Sorry, I have transferred this issue to this repo.
Author
Owner

@progamesigner commented on GitHub (Jun 9, 2025):

There is an opening PR to address this issue.

@progamesigner commented on GitHub (Jun 9, 2025): There is an opening [PR](https://github.com/langgenius/dify/pull/20794) to address this issue.
Author
Owner

@progamesigner commented on GitHub (Jun 15, 2025):

The issue has been fixed in https://github.com/langgenius/dify/pull/20794. It's likely to be included in the next release.

@progamesigner commented on GitHub (Jun 15, 2025): The issue has been fixed in https://github.com/langgenius/dify/pull/20794. It's likely to be included in the next release.
Author
Owner

@progamesigner commented on GitHub (Jun 17, 2025):

I believe this issue has been resolved in Dify v1.4.3.

@progamesigner commented on GitHub (Jun 17, 2025): I believe this issue has been resolved in [Dify v1.4.3](https://github.com/langgenius/dify/releases/tag/1.4.3).
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: langgenius/dify-official-plugins#285