Fix Vertex "null to object" Crash (v2026.3.1)
Critical Regression in v2026.3.1
This is a confirmed regression in the latest OpenClaw update. It specifically breaks Vertex AI when used in embedded mode (Telegram bots, Discord group replies, and scheduled cron jobs).
If your Telegram bot or cron jobs stopped working after the March 2026 update, showing a TypeError: Cannot convert undefined or null to object, you are hitting a bug in how OpenClaw parses Vertex metadata.
Next Step
Fix now, then reduce repeat incidents
If this issue keeps coming back, validate your setup in Doctor first, then harden your config.
Quick Solutions
Symptoms
Fix 1: Downgrade to v2026.2.26
The most reliable fix until v2026.3.2 is released is to roll back to the previous stable version. This version does not contain the breaking Vertex parser changes.
npm install -g [email protected]
Fix 2: Disable Vertex Usage Metadata
The crash occurs when OpenClaw tries to calculate token costs for Vertex. You can temporarily bypass this by disabling usage tracking in your provider config.
Update openclaw.json
"providers": {
"vertex": {
"module": "vertex",
"config": {
"project": "your-project",
"skipMetadata": true // Add this line
}
}
}Fix 3: Global Environment Override
If you cannot easily edit your config file (e.g., in a Docker environment), you can set a global flag to skip the faulty parsing logic.
export OPENCLAW_VERTEX_SKIP_METADATA=1\nopenclaw gateway restart
Check for Official Patch
The OpenClaw team is tracking this in Issue #32245. Run the following command to see if a newer, fixed version is available:
npm view openclaw version\n# If version > 2026.3.1, run:\nnpm install -g openclaw@latest
Verify the Fix
After applying the fix, trigger a manual cron run or send a message to your Telegram bot to ensure the crash is gone.
Did this guide solve your problem?