Error with Vertex AI google models #801

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

Originally created by @tahasuperr on GitHub (Nov 13, 2025).

Self Checks

  • I have read the Contributing Guide and Language Policy.
  • 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, otherwise it will be closed.
  • 【中文用户 & Non English User】请使用英语提交,否则会被关闭 :)
  • Please do not modify this template :) and fill in all the required fields.

Dify version

Version 1.9.2

Cloud or Self Hosted

Cloud

Steps to reproduce

Run failed: req_id: 1892037c54 PluginInvokeError: {"args":{"description":"[models] Error: 'NoneType' object has no attribute 'get'"},"error_type":"InvokeError","message":"[models] Error: 'NoneType' object has no attribute 'get'"}

Getting this error in all my nodes with google vertex api, it is working with Open AI

✔️ Expected Behavior

It should work

Actual Behavior

Run failed: req_id: 1892037c54 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 @tahasuperr on GitHub (Nov 13, 2025). ### Self Checks - [x] I have read the [Contributing Guide](https://github.com/langgenius/dify/blob/main/CONTRIBUTING.md) and [Language Policy](https://github.com/langgenius/dify/issues/1542). - [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, otherwise it will be closed. - [x] 【中文用户 & Non English User】请使用英语提交,否则会被关闭 :) - [x] Please do not modify this template :) and fill in all the required fields. ### Dify version Version 1.9.2 ### Cloud or Self Hosted Cloud ### Steps to reproduce Run failed: req_id: 1892037c54 PluginInvokeError: {"args":{"description":"[models] Error: 'NoneType' object has no attribute 'get'"},"error_type":"InvokeError","message":"[models] Error: 'NoneType' object has no attribute 'get'"} Getting this error in all my nodes with google vertex api, it is working with Open AI ### ✔️ Expected Behavior It should work ### ❌ Actual Behavior Run failed: req_id: 1892037c54 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:32 -05:00
yindo closed this issue 2026-02-16 10:20:32 -05:00
Author
Owner

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

This error usually means that a required configuration for the Vertex AI model is missing or not structured as expected, causing the code to call .get on a None object. Compared to OpenAI, the Vertex AI integration in Dify is less robust against missing configs, so if any required field (like model_parameters) is absent or misconfigured, you'll see this error.

Make sure all necessary fields for your Vertex AI provider are present and correctly structured in your configuration. Double-check your model provider settings in Dify, especially for fields like project ID, region, model name, and authentication. If you are using a plugin, ensure it's up to date and compatible with your Dify version.

If you recently updated the Vertex AI plugin or Dify itself, some users have found that downgrading the VertexAI plugin to an earlier version (such as 0.0.6) or updating to the latest available version can resolve similar issues. Also, some errors have been fixed in later Dify and plugin releases, so upgrading both Dify and the VertexAI plugin may help if you are not already on the latest versions. See more details and user experiences in this related thread: VertexAI plugin issues and fixes.

If the problem persists, check your plugin daemon logs for clues about missing or misconfigured parameters, and ensure your environment variables and credentials are set up as required by Vertex AI.

To reply, just mention @dosu.


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

@dosubot[bot] commented on GitHub (Nov 13, 2025): <!-- Answer --> This error usually means that a required configuration for the Vertex AI model is missing or not structured as expected, causing the code to call `.get` on a `None` object. Compared to OpenAI, the Vertex AI integration in Dify is less robust against missing configs, so if any required field (like `model_parameters`) is absent or misconfigured, you'll see this error. Make sure all necessary fields for your Vertex AI provider are present and correctly structured in your configuration. Double-check your model provider settings in Dify, especially for fields like project ID, region, model name, and authentication. If you are using a plugin, ensure it's up to date and compatible with your Dify version. If you recently updated the Vertex AI plugin or Dify itself, some users have found that downgrading the VertexAI plugin to an earlier version (such as 0.0.6) or updating to the latest available version can resolve similar issues. Also, some errors have been fixed in later Dify and plugin releases, so upgrading both Dify and the VertexAI plugin may help if you are not already on the latest versions. See more details and user experiences in this related thread: [VertexAI plugin issues and fixes](https://github.com/langgenius/dify/issues/16472). If the problem persists, check your plugin daemon logs for clues about missing or misconfigured parameters, and ensure your environment variables and credentials are set up as required by Vertex AI. <!-- 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/39975570-0c0b-4e7b-9ada-5feabc5126c8?feedback_type=great_response) | [Irrelevant](https://app.dosu.dev/response-feedback/39975570-0c0b-4e7b-9ada-5feabc5126c8?feedback_type=irrelevant_answer) | [Incorrect](https://app.dosu.dev/response-feedback/39975570-0c0b-4e7b-9ada-5feabc5126c8?feedback_type=incorrect_sources) | [Verbose](https://app.dosu.dev/response-feedback/39975570-0c0b-4e7b-9ada-5feabc5126c8?feedback_type=too_verbose) | [Hallucination](https://app.dosu.dev/response-feedback/39975570-0c0b-4e7b-9ada-5feabc5126c8?feedback_type=hallucination) | [Report 🐛](https://app.dosu.dev/response-feedback/39975570-0c0b-4e7b-9ada-5feabc5126c8?feedback_type=bug_report) | [Other](https://app.dosu.dev/response-feedback/39975570-0c0b-4e7b-9ada-5feabc5126c8?feedback_type=other)</sup>&nbsp;&nbsp;[![Chat with Dosu](https://dosu.dev/dosu-chat-badge.svg)](https://app.dosu.dev/6088a4f4-073a-43f3-b3d4-4f06fb0c05a0/ask?utm_source=github)&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/issues/28157)
Author
Owner

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

This error is a known issue in Dify v1.9.2 when using Google Vertex AI models, especially Gemini, and is caused by a mismatch between the expected response format and what Vertex AI returns—often when Dify uses the :predict endpoint instead of the required :streamGenerateContent endpoint for Gemini models. The error happens when the plugin returns None or a malformed response, and Dify tries to access .get on it, which isn't robustly handled in the current codebase. This doesn't happen with OpenAI because its plugin always returns the expected data structure reference.

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 reference. Also, double-check that your Vertex AI credentials and region are correctly configured—setting region to global is not supported for embeddings, for example reference.

A migration to the new google-genai SDK with better response handling has been implemented in a recent PR, but it may not be present in v1.9.2 cloud reference. Until the plugin is updated, you may need to use the workarounds above or monitor for future updates that add defensive checks and proper endpoint support.

If you control any workflow or plugin code, adding defensive checks for missing keys (using .get() or fallback values) can help avoid these errors reference.

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): <!-- Answer --> This error is a known issue in Dify v1.9.2 when using Google Vertex AI models, especially Gemini, and is caused by a mismatch between the expected response format and what Vertex AI returns—often when Dify uses the `:predict` endpoint instead of the required `:streamGenerateContent` endpoint for Gemini models. The error happens when the plugin returns `None` or a malformed response, and Dify tries to access `.get` on it, which isn't robustly handled in the current codebase. This doesn't happen with OpenAI because its plugin always returns the expected data structure [reference](https://github.com/langgenius/dify-official-plugins/issues/1874). 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 [reference](https://github.com/langgenius/dify-official-plugins/issues/1874). Also, double-check that your Vertex AI credentials and region are correctly configured—setting region to `global` is not supported for embeddings, for example [reference](https://github.com/langgenius/dify-official-plugins/issues/1412). A migration to the new `google-genai` SDK with better response handling has been implemented in a recent PR, but it may not be present in v1.9.2 cloud [reference](https://github.com/langgenius/dify-official-plugins/pull/1914). Until the plugin is updated, you may need to use the workarounds above or monitor for future updates that add defensive checks and proper endpoint support. If you control any workflow or plugin code, adding defensive checks for missing keys (using `.get()` or fallback values) can help avoid these errors [reference](https://github.com/langgenius/dify-official-plugins/issues/1704). <!-- 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/96cfe0ae-8c46-483e-a967-342ecbd78010?feedback_type=great_response) | [Irrelevant](https://app.dosu.dev/response-feedback/96cfe0ae-8c46-483e-a967-342ecbd78010?feedback_type=irrelevant_answer) | [Incorrect](https://app.dosu.dev/response-feedback/96cfe0ae-8c46-483e-a967-342ecbd78010?feedback_type=incorrect_sources) | [Verbose](https://app.dosu.dev/response-feedback/96cfe0ae-8c46-483e-a967-342ecbd78010?feedback_type=too_verbose) | [Hallucination](https://app.dosu.dev/response-feedback/96cfe0ae-8c46-483e-a967-342ecbd78010?feedback_type=hallucination) | [Report 🐛](https://app.dosu.dev/response-feedback/96cfe0ae-8c46-483e-a967-342ecbd78010?feedback_type=bug_report) | [Other](https://app.dosu.dev/response-feedback/96cfe0ae-8c46-483e-a967-342ecbd78010?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/2055)
Author
Owner

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

I met same error.

@nadazero commented on GitHub (Nov 13, 2025): I met same error.
Author
Owner

@Allamss commented on GitHub (Nov 14, 2025):

This issue can be reproduced in both versions 0.0.26 and 0.0.27, but it works again after downgrading to 0.0.25.

@Allamss commented on GitHub (Nov 14, 2025): This issue can be reproduced in both versions 0.0.26 and 0.0.27, but it works again after downgrading to 0.0.25.
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

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

Hi, @tahasuperr. 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 encountered a "NoneType object has no attribute 'get'" error when using Google Vertex AI models in Dify v1.9.2 cloud, while OpenAI models worked fine.
  • The root cause was misconfigured Vertex AI parameters and the plugin using incorrect endpoints for Gemini models, resulting in malformed responses.
  • Workarounds included verifying configuration fields, using supported regions, downgrading the VertexAI plugin to version 0.0.25, or switching to more stable Gemini versions.
  • Other users confirmed the issue and noted it blocked testing of newer models like Gemini 3.0, urging a fix.
  • The issue has been resolved with the above workarounds and clarifications.

What's Next:

  • Please let me know if this issue is still relevant with the latest version of the dify-official-plugins repository by commenting here.
  • Otherwise, I will automatically close this issue in 5 days.

Thank you for your understanding and contribution!

@dosubot[bot] commented on GitHub (Dec 6, 2025): Hi, @tahasuperr. 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 encountered a "NoneType object has no attribute 'get'" error when using Google Vertex AI models in Dify v1.9.2 cloud, while OpenAI models worked fine. - The root cause was misconfigured Vertex AI parameters and the plugin using incorrect endpoints for Gemini models, resulting in malformed responses. - Workarounds included verifying configuration fields, using supported regions, downgrading the VertexAI plugin to version 0.0.25, or switching to more stable Gemini versions. - Other users confirmed the issue and noted it blocked testing of newer models like Gemini 3.0, urging a fix. - The issue has been resolved with the above workarounds and clarifications. **What's Next:** - Please let me know if this issue is still relevant with the latest version of the dify-official-plugins repository by commenting here. - Otherwise, 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#801