-
Goal:
Use Google Vertex AI models (e.g., google-vertex/gemini-3-flash-preview) with Application Default Credentials (ADC). This was working before the update. -
Error:
All calls to google-vertex models now fail with Cannot convert undefined or null to object. -
Config:
The issue occurs on agents configured like this:
{"id": "agent1",
"model": "google-vertex/gemini-2.5-flash"
}
Workaround: Changing the provider to "model": "google/gemini-2.5-flash" (using a standard API key) works perfectly.
- Environment:
• OS: Linux (GCP)
• OpenClaw: v2026.3.2
• Node.js: v24.14.0
- Log Snippet:
{"subsystem":"agent/embedded","1":"...isError=true error=Cannot convert undefined or null to object",...}
This seems to be a bug in how the new version handles ADC for the Vertex AI provider, as the standard google provider works fine.
Thanks for your help!