[VertexAI Plugin] AttributeError: 'list' object has no attribute 'get' on Gemini 2.5 (flash/pro) with plugin v0.0.22 #423

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

Originally created by @unmo on GitHub (Jul 3, 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 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.5.1

Cloud or Self Hosted

Self Hosted (Docker)

Steps to reproduce

This error consistently occurs when trying to chat with Gemini 2.5 via the plugin.


Expected Behavior

Gemini 2.5 (both flash and pro) models should respond normally via VertexAI plugin.


Actual Behavior

[vertex_ai] Error: PluginInvokeError: {"args":{},"error_type":"AttributeError","message":"'list' object has no attribute 'get'"}


Steps to Reproduce

  1. Install Dify v1.5.1 and VertexAI plugin v0.0.22
  2. Add a Gemini 2.5 model provider (either gemini-2.5-flash or gemini-2.5-pro)
  3. Try sending a simple chat prompt (e.g., “Hello”)
  4. Observe the error

Additional Notes

  • The same issue does NOT occur with Gemini 1.5 models or preview versions (e.g., gemini-pro-preview)
  • Possibly caused by plugin logic assuming input is a dict, but actually receives a list

Environment

  • Dify version: v1.5.1
  • VertexAI plugin version: v0.0.22
  • Deployment: Self-hosted via Docker
  • Model: gemini-2.5-flash, gemini-2.5-pro
  • Working models: gemini-pro-preview (no error)

Please let me know if additional logs or plugin code context is needed.

Originally created by @unmo on GitHub (Jul 3, 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 [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.5.1 ### Cloud or Self Hosted Self Hosted (Docker) ### Steps to reproduce This error consistently occurs when trying to chat with Gemini 2.5 via the plugin. --- ### Expected Behavior Gemini 2.5 (both flash and pro) models should respond normally via VertexAI plugin. --- ### Actual Behavior [vertex_ai] Error: PluginInvokeError: {"args":{},"error_type":"AttributeError","message":"'list' object has no attribute 'get'"} --- ### Steps to Reproduce 1. Install Dify `v1.5.1` and VertexAI plugin `v0.0.22` 2. Add a Gemini 2.5 model provider (either `gemini-2.5-flash` or `gemini-2.5-pro`) 3. Try sending a simple chat prompt (e.g., “Hello”) 4. Observe the error --- ### Additional Notes - The same issue **does NOT occur** with Gemini 1.5 models or **preview** versions (e.g., `gemini-pro-preview`) - Possibly caused by plugin logic assuming input is a `dict`, but actually receives a `list` --- ### Environment - **Dify version**: `v1.5.1` - **VertexAI plugin version**: `v0.0.22` - **Deployment**: Self-hosted via Docker - **Model**: `gemini-2.5-flash`, `gemini-2.5-pro` - **Working models**: `gemini-pro-preview` (no error) --- Please let me know if additional logs or plugin code context is needed.
yindo closed this issue 2026-02-16 10:19:22 -05:00
Author
Owner

@unmo commented on GitHub (Jul 10, 2025):

Hi, I wanted to follow up on this issue. Let me know if there's anything I can do to help move it forward.

Please note that support for the gemini-2.5-pro-preview model will end soon, so we may need to update this accordingly to ensure continued compatibility.

@unmo commented on GitHub (Jul 10, 2025): Hi, I wanted to follow up on this issue. Let me know if there's anything I can do to help move it forward. Please note that support for the `gemini-2.5-pro-preview` model will end soon, so we may need to update this accordingly to ensure continued compatibility.
Author
Owner

@unmo commented on GitHub (Jul 16, 2025):

After modifying the configuration, I encountered an error similar to the one shown in the attached screenshot.
It appears that the issue is related to a region mismatch. Could you please let me know where the region setting is specified?

Image
@unmo commented on GitHub (Jul 16, 2025): After modifying the configuration, I encountered an error similar to the one shown in the attached screenshot. It appears that the issue is related to a region mismatch. Could you please let me know where the region setting is specified? <img width="415" height="287" alt="Image" src="https://github.com/user-attachments/assets/8d2719dd-3baa-47ce-a6b3-b7ffd6a9d8d8" />
Author
Owner

@unmo commented on GitHub (Jul 16, 2025):

This issue is resolved.

@unmo commented on GitHub (Jul 16, 2025): This issue is resolved.
Author
Owner

@Imccccc commented on GitHub (Aug 1, 2025):

any clue?

@Imccccc commented on GitHub (Aug 1, 2025): any clue?
Author
Owner

@unmo commented on GitHub (Aug 1, 2025):

It would be helpful if you could refer to this issue: https://github.com/langgenius/dify-official-plugins/issues/1134

@unmo commented on GitHub (Aug 1, 2025): It would be helpful if you could refer to this issue: https://github.com/langgenius/dify-official-plugins/issues/1134
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: langgenius/dify-official-plugins#423