Skip to content

[Auto] session_failure: Ollama rejected the request. This can happen when message content confuses the m #532

Description

@igorcosta

Auto-Reported Error

Field Value
Error Type session_failure
CLI Version 0.9.7-alpha.d24c4e6
Model orcarouter/Qwen3.8-27B-Uncensored:latest
Provider ollama
Platform darwin 24.5.0
Session ID 141f9ae5-ded5-42bf-8a0c-a1e7236e380c-1787719605343
Report ID DEvbXUOReliRGhuFg11Ne

Error Message

Ollama rejected the request. This can happen when message content confuses the model's parser. Try simplifying your prompt or using a different model.
{"error":"json: cannot unmarshal array into Go struct field ChatRequest.messages.content of type string"}

Stack Trace

ApiError: Ollama rejected the request. This can happen when message content confuses the model's parser. Try simplifying your prompt or using a different model.
{"error":"json: cannot unmarshal array into Go struct field ChatRequest.messages.content of type string"}
    at buildApiError (/$bunfs/root/autohand-macos-arm64:151594:26)
    at async makeRequest (/$bunfs/root/autohand-macos-arm64:151520:48)
    at async complete (/$bunfs/root/autohand-macos-arm64:151477:38)
    at async runAgentReactLoop (/$bunfs/root/autohand-macos-arm64:253179:45)
    at processTicksAndRejections (native:7:39)

Session Context

  • Conversation length: 16 messages
  • Context usage: 40%
  • Last tools used: fff_grep, read_file, read_file, read_file, read_file, read_file, read_file
  • Retry attempt: 0 / 5

Additional Context

{
  "retryAttempt": 0,
  "maxRetries": 5
}

Auto-reported by Autohand CLI v0.9.7-alpha.d24c4e6 | Report ID: DEvbXUOReliRGhuFg11Ne

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions