code-cli icon indicating copy to clipboard operation
code-cli copied to clipboard

[Auto] session_failure: Request timed out. The AI service may be experiencing high load.

Open igorcosta opened this issue 6 months ago • 1 comments

Auto-Reported Error

Field Value
Error Type session_failure
CLI Version 0.8.3
Model qwen3-coder-30b-a3b-instruct-dwq-v2
Provider openrouter
Platform darwin 24.5.0
Session ID 1513dde8-0c6b-48f3-a07c-022be81d3dc5-1777991196911
Report ID Thm5qSXVTfKQe60SrR3GG

Error Message

Request timed out. The AI service may be experiencing high load.

Stack Trace

ApiError: Request timed out. The AI service may be experiencing high load.
    at OpenRouterClient.makeRequest (file://~/.nvm/versions/node/v24.13.1/lib/node_modules/autohand-cli/dist/chunk-B53A2NM2.js:846:15)
    at process.processTicksAndRejections (node:internal/process/task_queues:103:5)
    at async OpenRouterClient.complete (file://~/.nvm/versions/node/v24.13.1/lib/node_modules/autohand-cli/dist/chunk-B53A2NM2.js:801:26)
    at async AutohandAgent.runReactLoop (file://~/.nvm/versions/node/v24.13.1/lib/node_modules/autohand-cli/dist/index.js:15029:22)
    at async AutohandAgent.runInstruction (file://~/.nvm/versions/node/v24.13.1/lib/node_modules/autohand-cli/dist/index.js:14737:7)
    at async AutohandAgent.runCommandMode (file://~/.nvm/versions/node/v24.13.1/lib/node_modules/autohand-cli/dist/index.js:13946:5)
    at async runCLI (file://~/.nvm/versions/node/v24.13.1/lib/node_modules/autohand-cli/dist/index.js:23448:7)
    at async Command.<anonymous> (file://~/.nvm/versions/node/v24.13.1/lib/node_modules/autohand-cli/dist/index.js:22986:3)
    at async Command.parseAsync (~/.nvm/versions/node/v24.13.1/lib/node_modules/autohand-cli/node_modules/commander/lib/command.js:1122:5)

Session Context

  • Conversation length: 2 messages
  • Context usage: 29%
  • Last tools used: N/A
  • Retry attempt: 1 / 3

Additional Context

{
  "retryAttempt": 1,
  "maxRetries": 3
}

Auto-reported by Autohand CLI v0.8.3 | Report ID: Thm5qSXVTfKQe60SrR3GG

igorcosta avatar May 05 '26 14:05 igorcosta

Classified during the open-issue pass: provider timeout, not a code fix in this pass.

The OpenRouter request timed out while the provider/service was under load. Current error classification treats this as timeout with retry guidance.

Validation context:

  • bun run test tests/providers/apiErrors.test.ts tests/providers/LLMGatewayClient.spec.ts tests/providers/OpenRouterProvider.test.ts tests/providers/ZaiProvider.test.ts tests/providers/OllamaProvider.test.ts

Tip: retry later, increase configured network timeout if appropriate, or switch to a faster model/provider.

igorcosta avatar Jun 12 '26 12:06 igorcosta

Closing as operational/provider-side rather than a CLI bug. The report is caused by rate limits, provider auth/billing/model availability, local provider connectivity, or provider timeout conditions that users need to resolve with the selected provider/account/model.

igorcosta avatar Jun 22 '26 21:06 igorcosta