[Bug] Anthropic API Error: Could Not Process Image Upload
Resolved 💬 4 comments Opened Oct 6, 2025 by wilsonweb Closed Oct 10, 2025
Bug Description
/BMad:agents:sm is running… draft
⎿ API Error: 400 {"type":"error","error":{"type":"invalid_request_error","message":"Could not process image"},"request_id":"req_011CTrY8ejqye8N5udEtvFio"}
Environment Info
- Platform: darwin
- Terminal: phpstorm
- Version: 2.0.0
- Feedback ID: 78067c52-3d6c-4546-b651-4b8ee67d39dd
Errors
[{"error":"Error: Input buffer contains unsupported image format\n at bg.dsQ [as metadata] (file:///Users/jason/.bun/install/global/node_modules/@anthropic-ai/claude-code/cli.js:116:36391)\n at La (file:///Users/jason/.bun/install/global/node_modules/@anthropic-ai/claude-code/cli.js:842:1879)\n at process.processTicksAndRejections (node:internal/process/task_queues:105:5)\n at async SE6 (file:///Users/jason/.bun/install/global/node_modules/@anthropic-ai/claude-code/cli.js:1684:2723)\n at async Object.call (file:///Users/jason/.bun/install/global/node_modules/@anthropic-ai/claude-code/cli.js:1679:329)\n at async QO (file:///Users/jason/.bun/install/global/node_modules/@anthropic-ai/claude-code/cli.js:1120:30497)\n at async file:///Users/jason/.bun/install/global/node_modules/@anthropic-ai/claude-code/cli.js:1757:1322","timestamp":"2025-10-04T23:18:46.534Z"},{"error":"Error: Input buffer contains unsupported image format\n at bg.dsQ [as metadata] (file:///Users/jason/.bun/install/global/node_modules/@anthropic-ai/claude-code/cli.js:116:36391)\n at La (file:///Users/jason/.bun/install/global/node_modules/@anthropic-ai/claude-code/cli.js:842:1879)\n at async SE6 (file:///Users/jason/.bun/install/global/node_modules/@anthropic-ai/claude-code/cli.js:1684:2723)\n at async Object.call (file:///Users/jason/.bun/install/global/node_modules/@anthropic-ai/claude-code/cli.js:1679:329)\n at async QO (file:///Users/jason/.bun/install/global/node_modules/@anthropic-ai/claude-code/cli.js:1120:30497)\n at async file:///Users/jason/.bun/install/global/node_modules/@anthropic-ai/claude-code/cli.js:1757:1322","timestamp":"2025-10-04T23:18:46.535Z"},{"error":"Error: Input buffer contains unsupported image format\n at bg.dsQ [as metadata] (file:///Users/jason/.bun/install/global/node_modules/@anthropic-ai/claude-code/cli.js:116:36391)\n at La (file:///Users/jason/.bun/install/global/node_modules/@anthropic-ai/claude-code/cli.js:842:1879)\n at async SE6 (file:///Users/jason/.bun/install/global/node_modules/@anthropic-ai/claude-code/cli.js:1684:2723)\n at async Object.call (file:///Users/jason/.bun/install/global/node_modules/@anthropic-ai/claude-code/cli.js:1679:329)\n at async QO (file:///Users/jason/.bun/install/global/node_modules/@anthropic-ai/claude-code/cli.js:1120:30497)\n at async file:///Users/jason/.bun/install/global/node_modules/@anthropic-ai/claude-code/cli.js:1757:1322","timestamp":"2025-10-04T23:18:46.536Z"},{"error":"MaxFileReadTokenExceededError: File content (40343 tokens) exceeds maximum allowed tokens (25000). Please use offset and limit parameters to read specific portions of the file, or use the GrepTool to search for specific content.\n at dBB (file:///Users/jason/.bun/install/global/node_modules/@anthropic-ai/claude-code/cli.js:1684:404)\n at process.processTicksAndRejections (node:internal/process/task_queues:105:5)\n at async Object.call (file:///Users/jason/.bun/install/global/node_modules/@anthropic-ai/claude-code/cli.js:1679:1010)\n at async QO (file:///Users/jason/.bun/install/global/node_modules/@anthropic-ai/claude-code/cli.js:1120:30497)\n at async file:///Users/jason/.bun/install/global/node_modules/@anthropic-ai/claude-code/cli.js:1757:1322","timestamp":"2025-10-04T23:18:47.036Z"},{"error":"MaxFileReadTokenExceededError: File content (69529 tokens) exceeds maximum allowed tokens (25000). Please use offset and limit parameters to read specific portions of the file, or use the GrepTool to search for specific content.\n at dBB (file:///Users/jason/.bun/install/global/node_modules/@anthropic-ai/claude-code/cli.js:1684:404)\n at process.processTicksAndRejections (node:internal/process/task_queues:105:5)\n at async Object.call (file:///Users/jason/.bun/install/global/node_modules/@anthropic-ai/claude-code/cli.js:1679:1010)\n at async QO (file:///Users/jason/.bun/install/global/node_modules/@anthropic-ai/claude-code/cli.js:1120:30497)\n at async file:///Users/jason/.bun/install/global/node_modules/@anthropic-ai/claude-code/cli.js:1757:1322","timestamp":"2025-10-04T23:18:47.467Z"},{"error":"Error: Language not supported while highlighting code, falling back to markdown: \n at ZK (file:///Users/jason/.bun/install/global/node_modules/@anthropic-ai/claude-code/cli.js:1741:1183)\n at file:///Users/jason/.bun/install/global/node_modules/@anthropic-ai/claude-code/cli.js:1741:911\n at Array.map (<anonymous>)\n at vX (file:///Users/jason/.bun/install/global/node_modules/@anthropic-ai/claude-code/cli.js:1741:902)\n at rJB (file:///Users/jason/.bun/install/global/node_m
Note: Error logs were truncated.
This issue has 4 comments on GitHub. Read the full discussion on GitHub ↗