Skip to content

API Error 400 "Could not process image" on every message #21

@theartworkclub-oss

Description

@theartworkclub-oss

The framework sends a screenshot to the Anthropic API on every agent message. The image encoding produces an invalid payload, causing a 400 error on every call regardless of the task.

Steps to reproduce:

  • Run any squad with image-creator or template-designer skills
  • Every message triggers: API Error 400 - Could not process image
  • Error fires even on simple text messages like "hey" or "continue"
  • Killing all processes and restarting does not fix it

Environment:

  • Mac, Claude Sonnet 4
  • Playwright/Chromium headless enabled in playwright.config.json
  • Squad: blix-launch-content

Root cause suspected:

  • Playwright screenshot is being encoded and passed to the Anthropic API as a vision input on every message
  • The image buffer appears to be invalid or malformed at the point it hits the API
  • Error persists across restarts, config changes, and squad state resets

Workaround needed:

  • Option to disable screenshot capture entirely
  • Or fix the base64 encoding before passing to Anthropic vision API

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions