Vertex AI Plugin Run Failed #91

Closed
opened 2026-02-16 00:19:44 -05:00 by yindo · 3 comments
Owner

Originally created by @neyec on GitHub (Apr 16, 2025).

Hi, I'm trying to run the Vertex AI plugin (0.0.9). However, I'm getting a "Run Failed" error. It happens in both streaming and non-streaming configurations and there's no more information, not even in the logs. There's a correct response from Gemini though, as you can see in the image. Any ideas? Thank you for your help.

Image
Originally created by @neyec on GitHub (Apr 16, 2025). Hi, I'm trying to run the Vertex AI plugin (0.0.9). However, I'm getting a "Run Failed" error. It happens in both streaming and non-streaming configurations and there's no more information, not even in the logs. There's a correct response from Gemini though, as you can see in the image. Any ideas? Thank you for your help. <img width="1347" alt="Image" src="https://github.com/user-attachments/assets/0598dacd-7669-47e6-8ef1-413ea079cc88" />
yindo closed this issue 2026-02-16 00:19:44 -05:00
Author
Owner

@Yeuoly commented on GitHub (Apr 22, 2025):

Please paste all the error message here or I have no idea what happened

@Yeuoly commented on GitHub (Apr 22, 2025): Please paste all the error message here or I have no idea what happened
Author
Owner

@neyec commented on GitHub (Apr 22, 2025):

Hi, sure. By the way, I modified the plugin and set stream = False. I get the following output:

Run failed: {"code":0,"message":"success","data":{"model":"gemini-2.0-flash-001","system_fingerprint":"","delta":{"index":0,"message":{"role":"assistant","content":"Hi there! How can I help you today?\n","name":"","tool_calls":[],"tool_call_id":""},"usage":{"prompt_tokens":5,"prompt_unit_price":"0","prompt_price_unit":"0.000001","prompt_price":"0","completion_tokens":14,"completion_unit_price":"0","completion_price_unit":"0.000001","completion_price":"0","total_tokens":19,"total_price":"0","currency":"USD","latency":0.5703013610000198},"finish_reason":null}}}

If I set stream = True, this is the output. You can see here that only the first word of the response ("Hi") is processed :

Run failed: {"code":0,"message":"success","data":{"model":"gemini-2.0-flash-001","system_fingerprint":"","delta":{"index":0,"message":{"role":"assistant","content":"Hi","name":"","tool_calls":[],"tool_call_id":""},"usage":null,"finish_reason":null}}}

I'm deploying Dify on GCP using ADC, and there are no errors present in the Logs after Gemini is called:

Image

Thank you for your help.

@neyec commented on GitHub (Apr 22, 2025): Hi, sure. By the way, I modified the plugin and set stream = False. I get the following output: ``` Run failed: {"code":0,"message":"success","data":{"model":"gemini-2.0-flash-001","system_fingerprint":"","delta":{"index":0,"message":{"role":"assistant","content":"Hi there! How can I help you today?\n","name":"","tool_calls":[],"tool_call_id":""},"usage":{"prompt_tokens":5,"prompt_unit_price":"0","prompt_price_unit":"0.000001","prompt_price":"0","completion_tokens":14,"completion_unit_price":"0","completion_price_unit":"0.000001","completion_price":"0","total_tokens":19,"total_price":"0","currency":"USD","latency":0.5703013610000198},"finish_reason":null}}} ``` If I set stream = True, this is the output. You can see here that only the first word of the response ("Hi") is processed : ``` Run failed: {"code":0,"message":"success","data":{"model":"gemini-2.0-flash-001","system_fingerprint":"","delta":{"index":0,"message":{"role":"assistant","content":"Hi","name":"","tool_calls":[],"tool_call_id":""},"usage":null,"finish_reason":null}}} ``` I'm deploying Dify on GCP using ADC, and there are no errors present in the Logs after Gemini is called: <img width="1409" alt="Image" src="https://github.com/user-attachments/assets/6e7db697-882f-4473-993a-27a7a5440df6" /> Thank you for your help.
Author
Owner

@neyec commented on GitHub (Apr 24, 2025):

Hi. Fixed by updating to 1.3.0. Thank you.

@neyec commented on GitHub (Apr 24, 2025): Hi. Fixed by updating to 1.3.0. Thank you.
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: langgenius/dify-plugin-daemon#91