[Bug] Anthropic API Error: Empty base64 image data sent to API without validation
Resolved 💬 3 comments Opened Nov 30, 2025 by Wuffz Closed Dec 4, 2025
Bug Description
I keep getting Error: 400 {"type":"error","error":{"type":"invalid_request_error","message":"messages.118.content.4.image.source.base64: image cannot be empty"},"request_id":"req_011CVenVXsDFJh5e7nDnTMgX"}
on vscode.. probably because it could not succesfully upload the image or something... why is that not checked BEFORE adding it to the context? ... this is not the first time it happened, and it ALWAYS ruines my running context.. ( which is VERRY anoying - especially after using plan mode )
Environment Info
- Platform: linux
- Terminal: vscode
- Version: 2.0.55
- Feedback ID: c6485bdc-ad56-4c76-962b-c4955eb8442a
Errors
{"type":"error","error":{"type":"invalid_request_error","message":"messages.118.content.4.image.source.base64: image cannot be empty"},"request_id":"req_011CVenVXsDFJh5e7nDnTMgX"}This issue has 3 comments on GitHub. Read the full discussion on GitHub ↗