mirror of
https://github.com/langgenius/dify-official-plugins.git
synced 2026-07-21 17:45:23 -04:00
[Vertex AI] PluginInvokeError was randomly raise #389
Reference in New Issue
Block a user
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Originally created by @AlexChim1231 on GitHub (Jun 19, 2025).
Self Checks
Dify version
1.4.2
Plugin version
0.0.16, 0.0.19, 0.0.20
Cloud or Self Hosted
Self Hosted (Docker)
Steps to reproduce
While using Gemini though Vertex AI, the PluginInvokeError will be randomly throw, the workflow is only start -> gemini -> end.
This error would not raise for every request. We try different version of Vertex AI plugin and location and still error.
Temporary solution:
retry 5 times for each llm node using gemini
Related error:
Failed to transform tool message: [vertex_ai] Error: PluginInvokeError: {"args":{},"error_type":"IndexError","message":"list index out of range"}
Failed to transform tool message: [vertex_ai] Error: PluginInvokeError: {"args":{},"error_type":"AttributeError","message":"'list' object has no attribute 'get'"}
Failed to transform tool message: [vertex_ai] Error: PluginDaemonInternalServerError: killed by timeout
Screen Cap:
✔️ Error log
Unfortunately I cannot trace the log from docker because the response is 200, there is no any log for this error, this also created an issue in dify repo.
@unmo commented on GitHub (Jul 10, 2025):
same problem
@AlexChim1231 commented on GitHub (Jul 15, 2025):
After I upgrade Dify to v1.5.0+, I see this in debug panel. Is that the output from Vertex AI be changed?
@AlexChim1231 commented on GitHub (Jul 16, 2025):
@unmo
Any update for this?
After i debug for this error, it is actually a not success response from vertex ai. in my case i set the unsupport location, and it return a 404 response with list.
However, Google api sdk only consider the response is a dict/object instead a list in python, so we see this error in Dify web ui.
@AlexChim1231 commented on GitHub (Jul 16, 2025):
Issue to google api core
@unmo commented on GitHub (Jul 17, 2025):
@AlexChim1231
For the gemini-2.5-pro model, the available locations are limited. It seems the model is not deployed in asia-northeast1( and asia-southeast1 ), which likely causes the error. Setting the location to us-central1 or another supported region should allow the generation to proceed successfully.
@AlexChim1231 commented on GitHub (Jul 17, 2025):
@unmo
Yes, after i change to us-central1 and gemini 2.5 pro (not preview, it also disabled) then work fine.
Thank you
@dosubot[bot] commented on GitHub (Aug 20, 2025):
Hi, @AlexChim1231. I'm Dosu, and I'm helping the dify-official-plugins team manage their backlog and am marking this issue as stale.
Issue Summary:
Next Steps:
Thank you for your understanding and contribution!