[Bug] The vertex_ai plugin version 0.0.27 has a bug in the "Parameter Extractor" function, causing an error when calling it. #804

Closed
opened 2026-02-16 10:20:33 -05:00 by yindo · 6 comments
Owner

Originally created by @CarGod on GitHub (Nov 13, 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.9.0

Plugin version

0.0.27

Cloud or Self Hosted

Cloud

Steps to reproduce

The LLM node is functioning normally, but selecting a Gemini-related model in the "parameter extractor" causes an error

✔️ Error log

[vertex_ai] Error: req_id: f3fed0ba4a PluginInvokeError: {"args":{"description":"[models] Error: 'NoneType' object has no attribute 'get'"},"error_type":"InvokeError","message":"[models] Error: 'NoneType' object has no attribute 'get'"}

Originally created by @CarGod on GitHub (Nov 13, 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.9.0 ### Plugin version 0.0.27 ### Cloud or Self Hosted Cloud ### Steps to reproduce The LLM node is functioning normally, but selecting a Gemini-related model in the "parameter extractor" causes an error ### ✔️ Error log [vertex_ai] Error: req_id: f3fed0ba4a PluginInvokeError: {"args":{"description":"[models] Error: 'NoneType' object has no attribute 'get'"},"error_type":"InvokeError","message":"[models] Error: 'NoneType' object has no attribute 'get'"}
yindo added the bug label 2026-02-16 10:20:33 -05:00
yindo closed this issue 2026-02-16 10:20:33 -05:00
Author
Owner

@dosubot[bot] commented on GitHub (Nov 13, 2025):

Hi @CarGod! I'm Dosu and I’m helping the dify-official-plugins team.

This is a known issue with the vertex_ai plugin when using Gemini models in certain workflows like the Parameter Extractor. The error 'NoneType' object has no attribute 'get' happens because the plugin expects a specific response format from Vertex AI, but Gemini models sometimes return None or a malformed response—often due to using the :predict endpoint instead of the required :streamGenerateContent endpoint for Gemini. This leads to the plugin trying to access .get on a None value, which isn't handled defensively in the current codebase. This issue is specific to Gemini models and does not affect all models or nodes (for example, the LLM node works as expected) [source].

Workarounds reported by users include: using supported regions like us-central1, switching to non-preview Gemini models, retrying requests if errors are intermittent, or using Gemini 2.5 flash-lite for more stability. Also, double-check that your Vertex AI credentials and region are correctly configured—setting region to global is not supported for embeddings and can cause issues [source].

A migration to the new google-genai SDK with improved response handling and defensive checks has been implemented in a recent pull request, but it may not be available in your current plugin version (0.0.27). Monitoring for plugin updates or applying the above workarounds is recommended until a full fix is released [source].

To reply, just mention @dosu.


How did I do? Good | Irrelevant | Incorrect | Verbose | Hallucination | Report 🐛 | Other  Join Discord Share on X

@dosubot[bot] commented on GitHub (Nov 13, 2025): <!-- Greeting --> Hi @CarGod! I'm [Dosu](https://go.dosu.dev/dosubot) and I’m helping the dify-official-plugins team. <!-- Answer --> This is a known issue with the vertex_ai plugin when using Gemini models in certain workflows like the Parameter Extractor. The error `'NoneType' object has no attribute 'get'` happens because the plugin expects a specific response format from Vertex AI, but Gemini models sometimes return `None` or a malformed response—often due to using the `:predict` endpoint instead of the required `:streamGenerateContent` endpoint for Gemini. This leads to the plugin trying to access `.get` on a `None` value, which isn't handled defensively in the current codebase. This issue is specific to Gemini models and does not affect all models or nodes (for example, the LLM node works as expected) [[source]](https://github.com/langgenius/dify-official-plugins/issues/2055). Workarounds reported by users include: using supported regions like `us-central1`, switching to non-preview Gemini models, retrying requests if errors are intermittent, or using Gemini 2.5 flash-lite for more stability. Also, double-check that your Vertex AI credentials and region are correctly configured—setting region to `global` is not supported for embeddings and can cause issues [[source]](https://github.com/langgenius/dify-official-plugins/issues/2055). A migration to the new `google-genai` SDK with improved response handling and defensive checks has been implemented in a recent pull request, but it may not be available in your current plugin version (0.0.27). Monitoring for plugin updates or applying the above workarounds is recommended until a full fix is released [[source]](https://github.com/langgenius/dify-official-plugins/pull/1914). <!-- Dosu Comment Footer --> *To reply, just mention [@dosu](https://go.dosu.dev/dosubot).* --- <sup>How did I do? [Good](https://app.dosu.dev/response-feedback/e3cc84d4-ce93-4af7-8889-8888e2ddd26c?feedback_type=great_response) | [Irrelevant](https://app.dosu.dev/response-feedback/e3cc84d4-ce93-4af7-8889-8888e2ddd26c?feedback_type=irrelevant_answer) | [Incorrect](https://app.dosu.dev/response-feedback/e3cc84d4-ce93-4af7-8889-8888e2ddd26c?feedback_type=incorrect_sources) | [Verbose](https://app.dosu.dev/response-feedback/e3cc84d4-ce93-4af7-8889-8888e2ddd26c?feedback_type=too_verbose) | [Hallucination](https://app.dosu.dev/response-feedback/e3cc84d4-ce93-4af7-8889-8888e2ddd26c?feedback_type=hallucination) | [Report 🐛](https://app.dosu.dev/response-feedback/e3cc84d4-ce93-4af7-8889-8888e2ddd26c?feedback_type=bug_report) | [Other](https://app.dosu.dev/response-feedback/e3cc84d4-ce93-4af7-8889-8888e2ddd26c?feedback_type=other)</sup>&nbsp;&nbsp;[![Join Discord](https://img.shields.io/badge/join-5865F2?logo=discord&logoColor=white&label=)](https://go.dosu.dev/discord-bot)&nbsp;[![Share on X](https://img.shields.io/badge/X-share-black)](https://twitter.com/intent/tweet?text=%40dosu_ai%20helped%20me%20solve%20this%20issue!&url=https%3A//github.com/langgenius/dify-official-plugins/issues/2061)
Author
Owner

@nadazero commented on GitHub (Nov 19, 2025):

@Zhaohuai-L please have a look at this issue and fix this bug ASAP please, this issue will block testing new model such as gemini 3.0

@nadazero commented on GitHub (Nov 19, 2025): @Zhaohuai-L please have a look at this issue and fix this bug ASAP please, this issue will block testing new model such as gemini 3.0
Author
Owner

@Zhaohuai-L commented on GitHub (Nov 20, 2025):

@Zhaohuai-L please have a look at this issue and fix this bug ASAP please, this issue will block testing new model such as gemini 3.0

@nadazero Thanks for pointing out this issue. I'll try to reproduce and fix it locally. BTW, I've already added gemini3 with signature support locally. I'll get the PR up for this soon.

@Zhaohuai-L commented on GitHub (Nov 20, 2025): > [@Zhaohuai-L](https://github.com/Zhaohuai-L) please have a look at this issue and fix this bug ASAP please, this issue will block testing new model such as gemini 3.0 @nadazero Thanks for pointing out this issue. I'll try to reproduce and fix it locally. BTW, I've already added gemini3 with signature support locally. I'll get the PR up for this soon.
Author
Owner

@Zhaohuai-L commented on GitHub (Nov 21, 2025):

@Zhaohuai-L please have a look at this issue and fix this bug ASAP please, this issue will block testing new model such as gemini 3.0

@nadazero This issue has been fixed in https://github.com/langgenius/dify-official-plugins/pull/2111

@Zhaohuai-L commented on GitHub (Nov 21, 2025): > [@Zhaohuai-L](https://github.com/Zhaohuai-L) please have a look at this issue and fix this bug ASAP please, this issue will block testing new model such as gemini 3.0 @nadazero This issue has been fixed in https://github.com/langgenius/dify-official-plugins/pull/2111
Author
Owner

@nadazero commented on GitHub (Nov 21, 2025):

@Zhaohuai-L please have a look at this issue and fix this bug ASAP please, this issue will block testing new model such as gemini 3.0

@nadazero This issue has been fixed in #2111

Thank you very much!

@nadazero commented on GitHub (Nov 21, 2025): > > [@Zhaohuai-L](https://github.com/Zhaohuai-L) please have a look at this issue and fix this bug ASAP please, this issue will block testing new model such as gemini 3.0 > > [@nadazero](https://github.com/nadazero) This issue has been fixed in [#2111](https://github.com/langgenius/dify-official-plugins/pull/2111) Thank you very much!
Author
Owner

@dosubot[bot] commented on GitHub (Dec 7, 2025):

Hi, @CarGod. 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 "'NoneType' object has no attribute 'get'" error in the vertex_ai plugin v0.0.27 when using Gemini models on Dify 1.9.0 cloud.
  • The error was due to the plugin expecting a specific response format that Gemini models sometimes did not follow.
  • Workarounds involving region settings and model versions were suggested.
  • The maintainer confirmed a fix was implemented in PR #2111 and is preparing support for Gemini 3.0.
  • The fix was confirmed by you and appreciated by the community.

Next Steps:

  • Please confirm if this issue is still relevant with the latest version of the dify-official-plugins repository by commenting here.
  • If no further updates are provided, I will automatically close this issue in 5 days.

Thank you for your understanding and contribution!

@dosubot[bot] commented on GitHub (Dec 7, 2025): Hi, @CarGod. 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 "'NoneType' object has no attribute 'get'" error in the vertex_ai plugin v0.0.27 when using Gemini models on Dify 1.9.0 cloud. - The error was due to the plugin expecting a specific response format that Gemini models sometimes did not follow. - Workarounds involving region settings and model versions were suggested. - The maintainer confirmed a fix was implemented in PR #2111 and is preparing support for Gemini 3.0. - The fix was confirmed by you and appreciated by the community. **Next Steps:** - Please confirm if this issue is still relevant with the latest version of the dify-official-plugins repository by commenting here. - If no further updates are provided, I will automatically close this issue in 5 days. Thank you for your understanding and contribution!
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: langgenius/dify-official-plugins#804