Agent strategy use vertex ai Failed to parse candidates field #543

Closed
opened 2026-02-16 10:19:42 -05:00 by yindo · 12 comments
Owner

Originally created by @yj11 on GitHub (Aug 11, 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.7.0

Plugin version

dify Agent: 0.0.23, Vertex AI: 0.0.22

Cloud or Self Hosted

Self Hosted (Docker)

Steps to reproduce

Image

✔️ Error log

Image
Originally created by @yj11 on GitHub (Aug 11, 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.7.0 ### Plugin version dify Agent: 0.0.23, Vertex AI: 0.0.22 ### Cloud or Self Hosted Self Hosted (Docker) ### Steps to reproduce <img width="1406" height="906" alt="Image" src="https://github.com/user-attachments/assets/3c790226-c03e-4d28-8987-f4d369ce61a7" /> ### ✔️ Error log <img width="758" height="466" alt="Image" src="https://github.com/user-attachments/assets/09f8a0f5-6bd6-42e2-9bcb-fa0c73f846b3" />
yindo added the bug label 2026-02-16 10:19:42 -05:00
yindo closed this issue 2026-02-16 10:19:42 -05:00
Author
Owner

@dosubot[bot] commented on GitHub (Aug 27, 2025):

Hi, @yj11. I'm Dosu, and I'm helping the dify-official-plugins team manage their backlog and am marking this issue as stale.

Issue Summary:

  • You reported a "Failed to parse candidates field" error when using the Agent strategy with Vertex AI.
  • This occurs in Dify version 1.7.0 on a self-hosted Docker setup.
  • The involved plugin versions are Agent 0.0.23 and Vertex AI 0.0.22.
  • You provided screenshots for reference.
  • There have been no further comments or updates on this issue.

Next Steps:

  • Please let me know if this issue is still relevant with the latest version of dify-official-plugins by commenting here.
  • If I don’t hear back from you within 5 days, I will automatically close this issue.

Thank you for your understanding and contribution!

@dosubot[bot] commented on GitHub (Aug 27, 2025): Hi, @yj11. I'm [Dosu](https://dosu.dev), and I'm helping the dify-official-plugins team manage their backlog and am marking this issue as stale. **Issue Summary:** - You reported a "Failed to parse candidates field" error when using the Agent strategy with Vertex AI. - This occurs in Dify version 1.7.0 on a self-hosted Docker setup. - The involved plugin versions are Agent 0.0.23 and Vertex AI 0.0.22. - You provided screenshots for reference. - There have been no further comments or updates on this issue. **Next Steps:** - Please let me know if this issue is still relevant with the latest version of dify-official-plugins by commenting here. - If I don’t hear back from you within 5 days, I will automatically close this issue. Thank you for your understanding and contribution!
Author
Owner

@yj11 commented on GitHub (Aug 28, 2025):

yes, vertex ai plugin not update

@yj11 commented on GitHub (Aug 28, 2025): yes, vertex ai plugin not update
Author
Owner

@dosubot[bot] commented on GitHub (Aug 28, 2025):

@crazywoola The user confirms the issue with the Vertex AI plugin not updating is still relevant. Could you please assist with this?

@dosubot[bot] commented on GitHub (Aug 28, 2025): @crazywoola The user confirms the issue with the Vertex AI plugin not updating is still relevant. Could you please assist with this?
Author
Owner

@ymshenyu commented on GitHub (Aug 28, 2025):

+1

@ymshenyu commented on GitHub (Aug 28, 2025): +1
Author
Owner

@ymshenyu commented on GitHub (Aug 28, 2025):

https://cloud.google.com/vertex-ai/generative-ai/docs/deprecations/genai-vertexai-sdk

Should we consider migrating to the GenAI SDK? @Yeuoly

@ymshenyu commented on GitHub (Aug 28, 2025): https://cloud.google.com/vertex-ai/generative-ai/docs/deprecations/genai-vertexai-sdk Should we consider migrating to the GenAI SDK? @Yeuoly
Author
Owner

@jortegac commented on GitHub (Sep 11, 2025):

I have the same issue

Dify version: 1.5.0
Vertex plugin version: 0.0.23
Dify Agent Strategies version: 0.0.19

Image

I ONLY see the problem with Gemini 2.5 pro and Gemini 2.5 flash, NOT with Gemini 2.5 flash-lite

Some weeks ago I did not have this issue. Maybe is related to the deprecation mentioned above?

@jortegac commented on GitHub (Sep 11, 2025): I have the same issue Dify version: 1.5.0 Vertex plugin version: 0.0.23 Dify Agent Strategies version: 0.0.19 <img width="366" height="250" alt="Image" src="https://github.com/user-attachments/assets/4c4f3656-ef68-4d06-a681-5f7932924f72" /> I ONLY see the problem with `Gemini 2.5 pro` and `Gemini 2.5 flash`, NOT with `Gemini 2.5 flash-lite` Some weeks ago I did not have this issue. Maybe is related to the deprecation mentioned above?
Author
Owner

@jortegac commented on GitHub (Sep 22, 2025):

Would it be terrible to ask for this to be looked into?

@jortegac commented on GitHub (Sep 22, 2025): Would it be terrible to ask for this to be looked into?
Author
Owner

@Yeuoly commented on GitHub (Sep 23, 2025):

https://cloud.google.com/vertex-ai/generative-ai/docs/deprecations/genai-vertexai-sdk

Should we consider migrating to the GenAI SDK? @Yeuoly

SGTM, are you interested in contributing it?

@Yeuoly commented on GitHub (Sep 23, 2025): > https://cloud.google.com/vertex-ai/generative-ai/docs/deprecations/genai-vertexai-sdk > > Should we consider migrating to the GenAI SDK? [@Yeuoly](https://github.com/Yeuoly) SGTM, are you interested in contributing it?
Author
Owner

@pr-maia commented on GitHub (Sep 29, 2025):

Relevant to me

@pr-maia commented on GitHub (Sep 29, 2025): Relevant to me
Author
Owner

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

Hi, @yj11. I'm Dosu, and I'm helping the dify-official-plugins team manage their backlog and am marking this issue as stale.

Issue Summary:

  • You reported a parsing error with the "candidates" field when using the Agent strategy and Vertex AI plugin in Dify v1.7.0 within a self-hosted Docker setup.
  • The problem persists because the Vertex AI plugin has not been updated to accommodate changes, particularly with Gemini models.
  • Other users, like jortegac, have confirmed similar issues, likely due to Google's deprecation of the current SDK.
  • Maintainers have discussed migrating to the new GenAI SDK as a potential solution.
  • The issue remains open, awaiting further development or community contributions.

Next Steps:

  • Please let me know if this issue is still relevant with the latest version of dify-official-plugins by commenting here to keep the discussion active.
  • If I do not hear back within 5 days, I will automatically close this issue to keep the backlog manageable.

Thank you for your understanding and contribution!

@dosubot[bot] commented on GitHub (Oct 15, 2025): Hi, @yj11. I'm [Dosu](https://dosu.dev), and I'm helping the dify-official-plugins team manage their backlog and am marking this issue as stale. **Issue Summary:** - You reported a parsing error with the "candidates" field when using the Agent strategy and Vertex AI plugin in Dify v1.7.0 within a self-hosted Docker setup. - The problem persists because the Vertex AI plugin has not been updated to accommodate changes, particularly with Gemini models. - Other users, like jortegac, have confirmed similar issues, likely due to Google's deprecation of the current SDK. - Maintainers have discussed migrating to the new GenAI SDK as a potential solution. - The issue remains open, awaiting further development or community contributions. **Next Steps:** - Please let me know if this issue is still relevant with the latest version of dify-official-plugins by commenting here to keep the discussion active. - If I do not hear back within 5 days, I will automatically close this issue to keep the backlog manageable. Thank you for your understanding and contribution!
Author
Owner

@yj11 commented on GitHub (Oct 16, 2025):

bug save

@yj11 commented on GitHub (Oct 16, 2025): bug save
Author
Owner

@jortegac commented on GitHub (Oct 23, 2025):

@Yeuoly @ymshenyu I made an attempt at addressing this issue with PR https://github.com/langgenius/dify-official-plugins/pull/1914

@jortegac commented on GitHub (Oct 23, 2025): @Yeuoly @ymshenyu I made an attempt at addressing this issue with PR https://github.com/langgenius/dify-official-plugins/pull/1914
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: langgenius/dify-official-plugins#543