Terminal Image Paste Causes Session Interruption and Error
Resolved 💬 8 comments Opened Apr 25, 2025 by fieryWaters Closed Jan 3, 2026
Bug Description
Pasting image into terminal breaks the session resulting in error in conversation. I now have to reset claude code to get it to work.
Environment Info
- Platform: macos
- Terminal: Apple_Terminal
- Version: 0.2.81
- Feedback ID: bc0214e9-7069-472f-a7eb-dcab515a3a4d
Errors
[{"error":"Error: Request was aborted.\n at s3.makeRequest (file:///Users/jacob/.npm-global/lib/node_modules/@anthropic-ai/claude-code/cli.js:627:7699)\n at process.processTicksAndRejections (node:internal/process/task_queues:105:5)","timestamp":"2025-04-25T00:36:25.327Z"},{"error":"Error: Request was aborted.\n at Kc._createMessage (file:///Users/jacob/.npm-global/lib/node_modules/@anthropic-ai/claude-code/cli.js:627:24091)\n at processTicksAndRejections (node:internal/process/task_queues:105:5)\n at runNextTicks (node:internal/process/task_queues:69:3)\n at process.processTimers (node:internal/timers:526:9)","timestamp":"2025-04-25T00:37:17.669Z"},{"error":"Error: Tool error\n at Object.call (file:///Users/jacob/.npm-global/lib/node_modules/@anthropic-ai/claude-code/cli.js:1814:10137)\n at process.processTicksAndRejections (node:internal/process/task_queues:105:5)\n at async o33 (file:///Users/jacob/.npm-global/lib/node_modules/@anthropic-ai/claude-code/cli.js:1814:16353)\n at async eB1 (file:///Users/jacob/.npm-global/lib/node_modules/@anthropic-ai/claude-code/cli.js:1814:14764)\n at async ZI1 (file:///Users/jacob/.npm-global/lib/node_modules/@anthropic-ai/claude-code/cli.js:645:8582)\n at async r33 (file:///Users/jacob/.npm-global/lib/node_modules/@anthropic-ai/claude-code/cli.js:1814:14105)\n at async ui1 (file:///Users/jacob/.npm-global/lib/node_modules/@anthropic-ai/claude-code/cli.js:1814:13962)\n at async da (file:///Users/jacob/.npm-global/lib/node_modules/@anthropic-ai/claude-code/cli.js:1814:13233)\n at async p6 (file:///Users/jacob/.npm-global/lib/node_modules/@anthropic-ai/claude-code/cli.js:1868:1550)","timestamp":"2025-04-25T00:39:55.510Z"},{"error":"Error: Expected ',' or '}' after property value in JSON at position 1365 (line 1 column 1366)\n at file:///Users/jacob/.npm-global/lib/node_modules/@anthropic-ai/claude-code/cli.js:627:22625\n at process.processTicksAndRejections (node:internal/process/task_queues:105:5)","timestamp":"2025-04-25T00:41:47.169Z"},{"error":"Error: Tool error\n at Object.call (file:///Users/jacob/.npm-global/lib/node_modules/@anthropic-ai/claude-code/cli.js:1814:10137)\n at process.processTicksAndRejections (node:internal/process/task_queues:105:5)\n at async o33 (file:///Users/jacob/.npm-global/lib/node_modules/@anthropic-ai/claude-code/cli.js:1814:16353)\n at async eB1 (file:///Users/jacob/.npm-global/lib/node_modules/@anthropic-ai/claude-code/cli.js:1814:14764)","timestamp":"2025-04-25T00:42:12.314Z"},{"error":"Error: Tool error\n at Object.call (file:///Users/jacob/.npm-global/lib/node_modules/@anthropic-ai/claude-code/cli.js:1814:10137)\n at process.processTicksAndRejections (node:internal/process/task_queues:105:5)\n at async o33 (file:///Users/jacob/.npm-global/lib/node_modules/@anthropic-ai/claude-code/cli.js:1814:16353)\n at async eB1 (file:///Users/jacob/.npm-global/lib/node_modules/@anthropic-ai/claude-code/cli.js:1814:14764)","timestamp":"2025-04-25T00:42:26.802Z"},{"error":"Error: Request was aborted.\n at Kc._createMessage (file:///Users/jacob/.npm-global/lib/node_modules/@anthropic-ai/claude-code/cli.js:627:24091)\n at processTicksAndRejections (node:internal/process/task_queues:105:5)\n at runNextTicks (node:internal/process/task_queues:69:3)\n at process.processTimers (node:internal/timers:526:9)","timestamp":"2025-04-25T00:45:02.629Z"},{"error":"SyntaxError: Unexpected token 'I', \"I apologiz\"... is not valid JSON\n at JSON.parse (<anonymous>)\n at WG (file:///Users/jacob/.npm-global/lib/node_modules/@anthropic-ai/claude-code/cli.js:580:9967)\n at TI2 (file:///Users/jacob/.npm-global/lib/node_modules/@anthropic-ai/claude-code/cli.js:709:672)\n at process.processTicksAndRejections (node:internal/process/task_queues:105:5)","timestamp":"2025-04-25T00:52:38.787Z"},{"error":"Error: 400 {\"type\":\"error\",\"error\":{\"type\":\"invalid_request_error\",\"message\":\"messages.58.content.0.image.source.base64.data: Image does not match the provided media type image/png\"}}\n at b3.generate (file:///Users/jacob/.npm-global/lib/node_modules/@anthropic-ai/claude-code/cli.js:623:24425)\n at s3.makeStatusError (file:///Users/jacob/.npm-global/lib/node_modules/@anthropic-ai/claude-code/cli.js:627:7212)\n at s3.makeRequest (file:///Users/jacob/.npm-global/lib/node_modules/@anthropic-ai/claude-code/cli.js:627:8157)\n at process.processTicksAndRejections (node:internal/process/task_queues:105:5)","timestamp":"2025-04-25T01:41:52.083Z"},{"error":"Error: 400 {\"type\":\"error\",\"error\":{\"type\":\"invalid_request_error\",\"message\":\"messages.58.content.0.image.source.base64.data: Image does not match the provided m
Note: Error logs were truncated.
This issue has 8 comments on GitHub. Read the full discussion on GitHub ↗