Completion app is not returning a response with official Gemini plugin (0.2.0) #307

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

Originally created by @s4s7 on GitHub (May 23, 2025).

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 Dify issues & Dify Official Plugins, 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.4.0

Plugin version

Gemini 0.2.0

Cloud or Self Hosted

Cloud

Description

When using Gemini 0.2.0 with Dify 1.4.0, the completion app does not return any response. There are no error logs shown in the console.

However, when using Gemini 0.1.6 with the same Dify version (1.4.0), everything works as expected.

Expected Behavior

The app should return a completion response when using Gemini 0.2.0, just like it does with 0.1.6.

Actual Behavior

No response is returned. No errors appear in logs either.

✔️ Error log

no error log

Originally created by @s4s7 on GitHub (May 23, 2025). ### 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 [Dify issues](https://github.com/langgenius/dify/issues) & [Dify Official Plugins](https://github.com/langgenius/dify-official-plugins/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.4.0 ### Plugin version Gemini 0.2.0 ### Cloud or Self Hosted Cloud ### Description When using Gemini 0.2.0 with Dify 1.4.0, the completion app does not return any response. There are no error logs shown in the console. However, when using Gemini 0.1.6 with the same Dify version (1.4.0), everything works as expected. ### Expected Behavior The app should return a completion response when using Gemini 0.2.0, just like it does with 0.1.6. ### Actual Behavior No response is returned. No errors appear in logs either. ### ✔️ Error log no error log
yindo added the bug label 2026-02-16 10:18:55 -05:00
yindo closed this issue 2026-02-16 10:18:55 -05:00
Author
Owner

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

Yeah, Gemini stopped working. no response. no errors showing.
Dify Cloud v1.4.0
Gemini plugin v0.2.2

@Korayem commented on GitHub (May 25, 2025): Yeah, Gemini stopped working. no response. no errors showing. Dify Cloud v1.4.0 Gemini plugin v0.2.2
Author
Owner

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

Dify v1.4.0 on Docker
Host machine: Raspberry pi 4B (arm64), Ubuntu 22.04.5
Gemini plugin: v0.2.2
LLM model: Gemini 1.5 Flash

no return genarated text

plugin_daemon-1  | 2025/05/26 04:17:01 stdio.go:182: [INFO]plugin langgenius/gemini:0.2.2: Installed model: google
...

plugin_daemon-1  | [GIN] 2025/05/26 - 04:19:17 | 200 |   25.120969ms |      172.18.0.7 | GET      "/plugin/74cd4d6c-7126-4331-9d39-e324b9ad823d/management/models?page=1&page_size=256"
plugin_daemon-1  | [GIN] 2025/05/26 - 04:19:18 | 200 |    9.029819ms |      172.18.0.7 | POST     "/plugin/74cd4d6c-7126-4331-9d39-e324b9ad823d/dispatch/model/schema"
api-1            | 2025-05-26 04:19:18.582 ERROR [Thread-12 (_generate_worker)] [app_generator.py:246] - Unknown Error when generating
api-1            | Traceback (most recent call last):
api-1            |   File "/app/api/core/app/apps/chat/app_generator.py", line 226, in _generate_worker
api-1            |     runner.run(
api-1            |   File "/app/api/core/app/apps/chat/app_runner.py", line 217, in run
api-1            |     self._handle_invoke_result(
api-1            |   File "/app/api/core/app/apps/base_app_runner.py", line 279, in _handle_invoke_result
api-1            |     self._handle_invoke_result_stream(invoke_result=invoke_result, queue_manager=queue_manager, agent=agent)
api-1            |   File "/app/api/core/app/apps/base_app_runner.py", line 320, in _handle_invoke_result_stream
api-1            |     text += result.delta.message.content
api-1            | TypeError: can only concatenate str (not "list") to str
api-1            | [2025-05-26 04:19:18 +0000] [19] [ERROR] Error handling request /console/api/apps/ed55e035-9b63-47d0-9f42-127e22f2400a/chat-messages
api-1            | Traceback (most recent call last):
api-1            |   File "/app/api/.venv/lib/python3.12/site-packages/gunicorn/workers/base_async.py", line 54, in handle
api-1            |     self.handle_request(listener_name, req, client, addr)
api-1            |   File "/app/api/.venv/lib/python3.12/site-packages/gunicorn/workers/ggevent.py", line 127, in handle_request
nginx-1          | 000.000.000.000 - - [26/May/2025:04:19:18 +0000] "POST /console/api/apps/ed55e035-9b63-47d0-9f42-127e22f2400a/chat-messages HTTP/1.1" 500 141 "http:/dify-server/app/ed55e035-9b63-47d0-9f42-127e22f2400a/configuration" "USER-AGENT" "-"
api-1            |     super().handle_request(listener_name, req, sock, addr)
api-1            |   File "/app/api/.venv/lib/python3.12/site-packages/gunicorn/workers/base_async.py", line 114, in handle_request
api-1            |     for item in respiter:
api-1            |                 ^^^^^^^^
api-1            |   File "/app/api/.venv/lib/python3.12/site-packages/werkzeug/wsgi.py", line 256, in __next__
api-1            |     return self._next()
api-1            |            ^^^^^^^^^^^^
api-1            |   File "/app/api/.venv/lib/python3.12/site-packages/werkzeug/wrappers/response.py", line 32, in _iter_encoded
api-1            |     for item in iterable:
api-1            |                 ^^^^^^^^
api-1            |   File "/app/api/.venv/lib/python3.12/site-packages/flask/helpers.py", line 125, in generator
api-1            |     yield from gen
api-1            |   File "/app/api/libs/helper.py", line 203, in generate
api-1            |     yield from response
api-1            |   File "/app/api/core/app/features/rate_limiting/rate_limit.py", line 116, in __next__
api-1            |     return next(self.generator)
api-1            |            ^^^^^^^^^^^^^^^^^^^^
api-1            |   File "/app/api/core/app/apps/base_app_generator.py", line 155, in gen
api-1            |     for message in generator:
api-1            |                    ^^^^^^^^^
api-1            |   File "/app/api/core/app/apps/base_app_generate_response_converter.py", line 25, in _generate_full_response
api-1            |     yield from cls.convert_stream_full_response(response)
api-1            |   File "/app/api/core/app/apps/chat/generate_response_converter.py", line 62, in convert_stream_full_response
api-1            |     for chunk in stream_response:
api-1            |                  ^^^^^^^^^^^^^^^
api-1            |   File "/app/api/core/app/task_pipeline/easy_ui_based_generate_task_pipeline.py", line 182, in _to_stream_response
api-1            |     for stream_response in generator:
api-1            |                            ^^^^^^^^^
api-1            |   File "/app/api/core/app/task_pipeline/easy_ui_based_generate_task_pipeline.py", line 221, in _wrapper_process_stream_response
api-1            |     for response in self._process_stream_response(publisher=publisher, trace_manager=trace_manager):
api-1            |                     ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
api-1            |   File "/app/api/core/app/task_pipeline/easy_ui_based_generate_task_pipeline.py", line 317, in _process_stream_response
api-1            |     current_content += cast(str, delta_text)
api-1            | TypeError: can only concatenate str (not "list") to str
plugin_daemon-1  | [GIN] 2025/05/26 - 04:19:18 | 200 |  578.890873ms |      172.18.0.7 | POST     "/plugin/74cd4d6c-7126-4331-9d39-e324b9ad823d/dispatch/llm/invoke"
@hiratagoh commented on GitHub (May 26, 2025): Dify v1.4.0 on Docker Host machine: Raspberry pi 4B (arm64), Ubuntu 22.04.5 Gemini plugin: v0.2.2 LLM model: Gemini 1.5 Flash no return genarated text ``` plugin_daemon-1 | 2025/05/26 04:17:01 stdio.go:182: [INFO]plugin langgenius/gemini:0.2.2: Installed model: google ... plugin_daemon-1 | [GIN] 2025/05/26 - 04:19:17 | 200 | 25.120969ms | 172.18.0.7 | GET "/plugin/74cd4d6c-7126-4331-9d39-e324b9ad823d/management/models?page=1&page_size=256" plugin_daemon-1 | [GIN] 2025/05/26 - 04:19:18 | 200 | 9.029819ms | 172.18.0.7 | POST "/plugin/74cd4d6c-7126-4331-9d39-e324b9ad823d/dispatch/model/schema" api-1 | 2025-05-26 04:19:18.582 ERROR [Thread-12 (_generate_worker)] [app_generator.py:246] - Unknown Error when generating api-1 | Traceback (most recent call last): api-1 | File "/app/api/core/app/apps/chat/app_generator.py", line 226, in _generate_worker api-1 | runner.run( api-1 | File "/app/api/core/app/apps/chat/app_runner.py", line 217, in run api-1 | self._handle_invoke_result( api-1 | File "/app/api/core/app/apps/base_app_runner.py", line 279, in _handle_invoke_result api-1 | self._handle_invoke_result_stream(invoke_result=invoke_result, queue_manager=queue_manager, agent=agent) api-1 | File "/app/api/core/app/apps/base_app_runner.py", line 320, in _handle_invoke_result_stream api-1 | text += result.delta.message.content api-1 | TypeError: can only concatenate str (not "list") to str api-1 | [2025-05-26 04:19:18 +0000] [19] [ERROR] Error handling request /console/api/apps/ed55e035-9b63-47d0-9f42-127e22f2400a/chat-messages api-1 | Traceback (most recent call last): api-1 | File "/app/api/.venv/lib/python3.12/site-packages/gunicorn/workers/base_async.py", line 54, in handle api-1 | self.handle_request(listener_name, req, client, addr) api-1 | File "/app/api/.venv/lib/python3.12/site-packages/gunicorn/workers/ggevent.py", line 127, in handle_request nginx-1 | 000.000.000.000 - - [26/May/2025:04:19:18 +0000] "POST /console/api/apps/ed55e035-9b63-47d0-9f42-127e22f2400a/chat-messages HTTP/1.1" 500 141 "http:/dify-server/app/ed55e035-9b63-47d0-9f42-127e22f2400a/configuration" "USER-AGENT" "-" api-1 | super().handle_request(listener_name, req, sock, addr) api-1 | File "/app/api/.venv/lib/python3.12/site-packages/gunicorn/workers/base_async.py", line 114, in handle_request api-1 | for item in respiter: api-1 | ^^^^^^^^ api-1 | File "/app/api/.venv/lib/python3.12/site-packages/werkzeug/wsgi.py", line 256, in __next__ api-1 | return self._next() api-1 | ^^^^^^^^^^^^ api-1 | File "/app/api/.venv/lib/python3.12/site-packages/werkzeug/wrappers/response.py", line 32, in _iter_encoded api-1 | for item in iterable: api-1 | ^^^^^^^^ api-1 | File "/app/api/.venv/lib/python3.12/site-packages/flask/helpers.py", line 125, in generator api-1 | yield from gen api-1 | File "/app/api/libs/helper.py", line 203, in generate api-1 | yield from response api-1 | File "/app/api/core/app/features/rate_limiting/rate_limit.py", line 116, in __next__ api-1 | return next(self.generator) api-1 | ^^^^^^^^^^^^^^^^^^^^ api-1 | File "/app/api/core/app/apps/base_app_generator.py", line 155, in gen api-1 | for message in generator: api-1 | ^^^^^^^^^ api-1 | File "/app/api/core/app/apps/base_app_generate_response_converter.py", line 25, in _generate_full_response api-1 | yield from cls.convert_stream_full_response(response) api-1 | File "/app/api/core/app/apps/chat/generate_response_converter.py", line 62, in convert_stream_full_response api-1 | for chunk in stream_response: api-1 | ^^^^^^^^^^^^^^^ api-1 | File "/app/api/core/app/task_pipeline/easy_ui_based_generate_task_pipeline.py", line 182, in _to_stream_response api-1 | for stream_response in generator: api-1 | ^^^^^^^^^ api-1 | File "/app/api/core/app/task_pipeline/easy_ui_based_generate_task_pipeline.py", line 221, in _wrapper_process_stream_response api-1 | for response in self._process_stream_response(publisher=publisher, trace_manager=trace_manager): api-1 | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ api-1 | File "/app/api/core/app/task_pipeline/easy_ui_based_generate_task_pipeline.py", line 317, in _process_stream_response api-1 | current_content += cast(str, delta_text) api-1 | TypeError: can only concatenate str (not "list") to str plugin_daemon-1 | [GIN] 2025/05/26 - 04:19:18 | 200 | 578.890873ms | 172.18.0.7 | POST "/plugin/74cd4d6c-7126-4331-9d39-e324b9ad823d/dispatch/llm/invoke" ```
Author
Owner

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

I think this might be the same problem as the one I reported earlier, #1037.

@progamesigner commented on GitHub (Jun 5, 2025): I think this might be the same problem as the one I reported earlier, #1037.
Author
Owner

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

Only 0.1.6 plugin can work, Please focus on it!

@stephonye commented on GitHub (Jun 15, 2025): Only 0.1.6 plugin can work, Please focus on it!
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

@Korayem commented on GitHub (Jun 21, 2025):

as of v1.4.3. it's fixed. Been a month Gemini stopped working since v1.4.0 was released.

@Korayem commented on GitHub (Jun 21, 2025): as of v1.4.3. it's fixed. Been a month Gemini stopped working since v1.4.0 was released.
Author
Owner

@s4s7 commented on GitHub (Jul 4, 2025):

This issue was resolved by this PR and released in 1.4.3.

@s4s7 commented on GitHub (Jul 4, 2025): This issue was resolved by [this PR](https://github.com/langgenius/dify/pull/20794) and released in [1.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#307