Dify API Issue while Retrieving and Displaying Responses (Cloud and API) #1363

Closed
opened 2026-02-21 17:32:46 -05:00 by yindo · 0 comments
Owner

Originally created by @Eng-AliKazemi on GitHub (Mar 14, 2024).

Self Checks

  • 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).
  • Pleas do not modify this template :) and fill in all the required fields.

Dify version

0.5.9

Cloud or Self Hosted

Cloud

Steps to reproduce

I’ve been using Dify with Google Gemini Pro API for some time, and the API calls and cloud 's “preview chat” started returning the following error, although previously everything was functioning correctly.

✔️ Expected Behavior

API's response as text.

Actual Behavior

[google] Error: The response.text quick accessor only works for simple (single-Part) text responses. This response is not simple text.Use the result.parts accessor or the full result.candidates[index].content.parts lookup instead.

Originally created by @Eng-AliKazemi on GitHub (Mar 14, 2024). ### Self Checks - [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] Pleas do not modify this template :) and fill in all the required fields. ### Dify version 0.5.9 ### Cloud or Self Hosted Cloud ### Steps to reproduce I’ve been using Dify with Google Gemini Pro API for some time, and the API calls and cloud 's “preview chat” started returning the following error, although previously everything was functioning correctly. ### ✔️ Expected Behavior API's response as text. ### ❌ Actual Behavior [google] Error: The `response.text` quick accessor only works for simple (single-`Part`) text responses. This response is not simple text.Use the `result.parts` accessor or the full `result.candidates[index].content.parts` lookup instead.
yindo added the 🐞 bug label 2026-02-21 17:32:46 -05:00
yindo closed this issue 2026-02-21 17:32:46 -05:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: langgenius/dify#1363