Skip to content

[Bug] Google providers authentication failures and LLM request timeouts #9300

@nikolasdehor

Description

@nikolasdehor

Problem

Multiple Google-based providers are failing with authentication errors and extreme request timeouts.

Affected Providers

All Google providers are failing:

  • google (Gemini)
  • google-antigravity (Claude via Google OAuth)
  • google-gemini-cli
  • google-vertex
  • github-copilot (Claude via GitHub)

Error Analysis

1. Missing API Keys

FailoverError: No API key found for provider "google-antigravity". 
Auth store: ~/.openclaw/agents/main/agent/auth-profiles.json

All Google providers show this error despite:

  • Plugins enabled in config (google-antigravity-auth, google-gemini-cli-auth)
  • Config reload triggered

2. Extreme LLM Request Timeouts

2026-02-02T23:57:31.197Z [diagnostic] lane task error: durationMs=724391 
error="FailoverError: LLM request timed out."

2026-02-03T00:47:42.218Z [diagnostic] lane task error: durationMs=1001984 
error="FailoverError: LLM request timed out."

2026-02-03T01:11:09.197Z [diagnostic] lane task error: durationMs=1406944 
error="FailoverError: LLM request timed out."

Timeout durations:

  • 724s (12 minutes)
  • 1001s (16.7 minutes)
  • 1406s (23.4 minutes)

This suggests requests are hanging rather than failing fast.

3. Google OAuth Cookie Error

Permita que o Google Planilhas acesse os cookies necessários
Não é possível acessar sua Conta do Google
Não é possível acessar o conteúdo no momento. Faça login na sua Conta do Google ou permita o acesso a cookies para continuar.

This appears in logs, suggesting OAuth flow is attempting browser-based auth but hitting cookie restrictions.

Configuration

openclaw.json

{
  "plugins": {
    "entries": {
      "google-antigravity-auth": {
        "enabled": true
      },
      "google-gemini-cli-auth": {
        "enabled": true
      }
    }
  },
  "agents": {
    "defaults": {
      "model": {
        "fallbacks": [
          "google/gemini-3-pro-preview",
          "google/gemini-3-flash-preview",
          "google-antigravity/claude-opus-4-5-thinking",
          "google-antigravity/claude-sonnet-4-5-thinking"
        ]
      }
    }
  }
}

auth-profiles.json

{
  "profiles": {
    "openai-codex:default": { ... },  // Works
    "anthropic:default": { ... }      // Has issues (see #9095)
    // No Google profiles!
  }
}

Root Causes

1. Google Provider Authentication Not Completing

Plugins are enabled but authentication never completes:

  • No Google profiles in auth-profiles.json
  • openclaw configure doesn't seem to set up Google auth
  • OAuth flow may require browser interaction (cookie error suggests this)

2. No Timeout Configuration

Request timeouts exceed 20 minutes before failing:

  • Should fail fast (30-120s) instead of hanging
  • No configurable timeout for LLM requests
  • Blocks entire failover chain

3. Cookie-Based OAuth Incompatible with Headless

Google OAuth appears to require browser cookies:

  • OpenClaw runs headless (LaunchAgent/daemon)
  • Can't complete browser-based OAuth flows
  • Needs API key or service account auth instead

Impact

Severity: High

When primary model (OpenAI Codex) fails:

  1. Tries Anthropic models → fails (issue [Bug] Anthropic OAuth authentication fails with HTTP 401 invalid bearer token #9095)
  2. Tries Google models → hangs for 20+ minutes
  3. Eventually fails with "All models failed"
  4. Total service outage

Expected Behavior

  1. Fast Failure: Timeout after 30-120s, not 1400s
  2. Clear Auth Setup: openclaw configure should guide Google auth
  3. Service Accounts: Support Google service account JSON for headless auth
  4. Fallback: Skip unconfigured providers instead of hanging

Suggested Fixes

Short-term

  1. Add configurable request timeout (default 120s)
  2. Skip providers with no auth profile (don't attempt)
  3. Add warning on startup: "Google providers configured but not authenticated"

Long-term

  1. Implement Google service account auth (JSON key file)
  2. Add Google OAuth device flow (no browser needed)
  3. Better fallback chain management (skip known-broken providers)

Reproduction

  1. Configure OpenClaw with Google providers in fallback chain
  2. Don't configure Google auth
  3. Trigger failover (disable OpenAI Codex)
  4. Observe 20+ minute hang before failure

Environment

  • OpenClaw: 2026.2.2-3
  • OS: macOS
  • Google plugins: google-antigravity-auth, google-gemini-cli-auth (enabled)
  • Auth profiles: Only OpenAI Codex configured

Related Issues

Logs

Error samples
2026-02-02T23:57:31.218Z [diagnostic] lane task error: lane=main durationMs=0 
error="FailoverError: No API key found for provider \"google-antigravity\". 
Auth store: /Users/nikolas/.openclaw/agents/main/agent/auth-profiles.json"

2026-02-03T01:26:15.186Z [diagnostic] lane task error: lane=main durationMs=905987 
error="FailoverError: LLM request timed out."

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions