[Bug] Malformed PDF causes complete task failure and CLI unresponsiveness
Resolved 💬 4 comments Opened Jan 20, 2026 by do-rtk Closed Feb 27, 2026
Bug Description
after failing to read a mailformed PDF, claude was unable to perform any other tasks
Environment Info
- Platform: darwin
- Terminal: iTerm.app
- Version: 2.1.12
- Feedback ID: a7dca1ac-2740-40b4-9164-73e723345fe9
Errors
[{"error":"Error: 400 {\"type\":\"error\",\"error\":{\"type\":\"invalid_request_error\",\"message\":\"messages.2.content.0.pdf.source.base64.data: The PDF specified was not valid.\"},\"request_id\":\"req_011CXKPcEy6jstsaLwEzmryg\"}\n at generate (/$bunfs/root/claude:867:2085)\n at makeRequest (/$bunfs/root/claude:884:5435)\n at processTicksAndRejections (native:7:39)","timestamp":"2026-01-20T22:06:54.293Z"},{"error":"Error: 400 {\"type\":\"error\",\"error\":{\"type\":\"invalid_request_error\",\"message\":\"messages.2.content.0.pdf.source.base64.data: The PDF specified was not valid.\"},\"request_id\":\"req_011CXKPcmRRRR4uSW8np1Xez\"}\n at generate (/$bunfs/root/claude:867:2085)\n at makeRequest (/$bunfs/root/claude:884:5435)\n at processTicksAndRejections (native:7:39)","timestamp":"2026-01-20T22:07:01.417Z"},{"error":"Error: API Error: 400 {\"type\":\"error\",\"error\":{\"type\":\"invalid_request_error\",\"message\":\"messages.2.content.0.pdf.source.base64.data: The PDF specified was not valid.\"},\"request_id\":\"req_011CXKPcmRRRR4uSW8np1Xez\"}\n at yIR (/$bunfs/root/claude:2367:600)\n at async call (/$bunfs/root/claude:3255:56)\n at async pc7 (/$bunfs/root/claude:2588:3202)\n at async Z3B (/$bunfs/root/claude:2588:1034)\n at async rc7 (/$bunfs/root/claude:2596:2507)\n at async ThR (/$bunfs/root/claude:2594:583)\n at async u58 (/$bunfs/root/claude:5255:15074)\n at async WYR (/$bunfs/root/claude:5255:14274)\n at async <anonymous> (/$bunfs/root/claude:5263:6002)\n at async <anonymous> (/$bunfs/root/claude:5253:5029)\n at processTicksAndRejections (native:7:39)","timestamp":"2026-01-20T22:07:01.418Z"},{"error":"Error: Error during compaction: Error: API Error: 400 {\"type\":\"error\",\"error\":{\"type\":\"invalid_request_error\",\"message\":\"messages.2.content.0.pdf.source.base64.data: The PDF specified was not valid.\"},\"request_id\":\"req_011CXKPcmRRRR4uSW8np1Xez\"}\n at call (/$bunfs/root/claude:3256:189)\n at async pc7 (/$bunfs/root/claude:2588:3202)\n at async Z3B (/$bunfs/root/claude:2588:1034)\n at async rc7 (/$bunfs/root/claude:2596:2507)\n at async ThR (/$bunfs/root/claude:2594:583)\n at async u58 (/$bunfs/root/claude:5255:15074)\n at async WYR (/$bunfs/root/claude:5255:14274)\n at async <anonymous> (/$bunfs/root/claude:5263:6002)\n at async <anonymous> (/$bunfs/root/claude:5253:5029)\n at processTicksAndRejections (native:7:39)","timestamp":"2026-01-20T22:07:01.418Z"},{"error":"Error: 400 {\"type\":\"error\",\"error\":{\"type\":\"invalid_request_error\",\"message\":\"messages.2.content.0.pdf.source.base64.data: The PDF specified was not valid.\"},\"request_id\":\"req_011CXKPgUZmetCsZWevbVQui\"}\n at generate (/$bunfs/root/claude:867:2085)\n at makeRequest (/$bunfs/root/claude:884:5435)\n at processTicksAndRejections (native:7:39)","timestamp":"2026-01-20T22:07:51.727Z"}]This issue has 4 comments on GitHub. Read the full discussion on GitHub ↗