[Bug] File type mismatch causes persistent image processing error on CSV upload

Resolved 💬 3 comments Opened Nov 11, 2025 by GeorgeKouk Closed Nov 14, 2025

Bug Description
I never attached an image but attached a CSV file instead and ever since I sent that the chat will not continue saying there is an error with the attached image. I rolled the chat back and this bug continued.

Actual error reported here is not the error I see in the chat. The error I see it this:
"API Error: 400
{"type":"error","error":{"type":"invalid_request_error","message":"messages.22.content.0.image.source.base64: image
cannot be empty"},"request_id":"req_011CV1RjPXiLYoM6gKtgqL3n"}"

Environment Info

  • Platform: darwin
  • Terminal: Apple_Terminal
  • Version: 2.0.36
  • Feedback ID: cb7d3e40-c459-4899-aef9-bc16bb7c373a

Errors

[{"error":"MaxFileReadTokenExceededError: File content (28248 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 UwQ (file:///Users/george/.claude/local/node_modules/@anthropic-ai/claude-code/cli.js:1639:25881)\n    at process.processTicksAndRejections (node:internal/process/task_queues:105:5)\n    at async Object.call (file:///Users/george/.claude/local/node_modules/@anthropic-ai/claude-code/cli.js:1648:1020)\n    at async JN (file:///Users/george/.claude/local/node_modules/@anthropic-ai/claude-code/cli.js:1648:3002)\n    at async file:///Users/george/.claude/local/node_modules/@anthropic-ai/claude-code/cli.js:3580:1397","timestamp":"2025-11-10T01:59:59.836Z"},{"error":"MaxFileReadTokenExceededError: File content (28248 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 UwQ (file:///Users/george/.claude/local/node_modules/@anthropic-ai/claude-code/cli.js:1639:25881)\n    at process.processTicksAndRejections (node:internal/process/task_queues:105:5)\n    at async Object.call (file:///Users/george/.claude/local/node_modules/@anthropic-ai/claude-code/cli.js:1648:1020)\n    at async JN (file:///Users/george/.claude/local/node_modules/@anthropic-ai/claude-code/cli.js:1648:3002)\n    at async file:///Users/george/.claude/local/node_modules/@anthropic-ai/claude-code/cli.js:3580:1397","timestamp":"2025-11-10T02:01:08.589Z"},{"error":"MaxFileReadTokenExceededError: File content (28248 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 UwQ (file:///Users/george/.claude/local/node_modules/@anthropic-ai/claude-code/cli.js:1639:25881)\n    at process.processTicksAndRejections (node:internal/process/task_queues:105:5)\n    at async Object.call (file:///Users/george/.claude/local/node_modules/@anthropic-ai/claude-code/cli.js:1648:1020)\n    at async JN (file:///Users/george/.claude/local/node_modules/@anthropic-ai/claude-code/cli.js:1648:3002)\n    at async file:///Users/george/.claude/local/node_modules/@anthropic-ai/claude-code/cli.js:3580:1397","timestamp":"2025-11-10T02:01:43.391Z"},{"error":"Error: Request was aborted.\n    at Hn._createMessage (file:///Users/george/.claude/local/node_modules/@anthropic-ai/claude-code/cli.js:432:4515)\n    at process.processTicksAndRejections (node:internal/process/task_queues:105:5)","timestamp":"2025-11-10T02:27:30.995Z"},{"error":"Error: Input Buffer is empty\n    at Zi.Vd9 [as _createInputDescriptor] (file:///Users/george/.claude/local/node_modules/@anthropic-ai/claude-code/cli.js:232:28418)\n    at new Zi (file:///Users/george/.claude/local/node_modules/@anthropic-ai/claude-code/cli.js:232:3224)\n    at Zi (file:///Users/george/.claude/local/node_modules/@anthropic-ai/claude-code/cli.js:232:240)\n    at B0A (file:///Users/george/.claude/local/node_modules/@anthropic-ai/claude-code/cli.js:232:79994)\n    at async BPA (file:///Users/george/.claude/local/node_modules/@anthropic-ai/claude-code/cli.js:232:82887)","timestamp":"2025-11-11T03:49:48.444Z"},{"error":"Error: Input Buffer is empty\n    at Zi.Vd9 [as _createInputDescriptor] (file:///Users/george/.claude/local/node_modules/@anthropic-ai/claude-code/cli.js:232:28418)\n    at new Zi (file:///Users/george/.claude/local/node_modules/@anthropic-ai/claude-code/cli.js:232:3224)\n    at Zi (file:///Users/george/.claude/local/node_modules/@anthropic-ai/claude-code/cli.js:232:240)\n    at B0A (file:///Users/george/.claude/local/node_modules/@anthropic-ai/claude-code/cli.js:232:79994)\n    at async BPA (file:///Users/george/.claude/local/node_modules/@anthropic-ai/claude-code/cli.js:232:82887)","timestamp":"2025-11-11T03:49:53.944Z"},{"error":"Error: 400 {\"type\":\"error\",\"error\":{\"type\":\"invalid_request_error\",\"message\":\"messages.22.content.0.image.source.base64: image cannot be empty\"},\"request_id\":\"req_011CV1RQs7Ng78mNHZvEJdmp\"}\n    at L4.generate (file:///Users/george/.claude/local/node_modules/@anthropic-ai/claude-code/cli.js:428:26211)\n    at U_.makeStatusError (file:///Users/george/.claude/local/node_modules/@anthropic-ai/claude-code/cli.js:707:2117)\n    at U_.makeRequest (file:///Users/george/.claude/local/node_modules/@anthropic-ai/claude-code/cli.js:707:5341)\n    at process.processTicksAndRejections (node:internal/process/task_queues:105:5)\n    at async Js2.wrA.model (fi

Note: Error logs were truncated.

View original on GitHub ↗

This issue has 3 comments on GitHub. Read the full discussion on GitHub ↗