claude-code - 💡(How to fix) Fix [BUG] 400 error if you send just an image to claude code via remote control, then stuck in this cycle forever [2 comments, 2 participants]

Official PRs (…)
ON THIS PAGE

Recommended Tools

×6

Utilities matched from this issue’s tags and category — try them while you read without losing context.

GitHub issue graph ai analysis

Paste a GitHub issue URL. We fetch that issue, discover linked issues from bodies/comments/timeline, collect linked pull requests, and produce a structured English report.

The report is written in English Markdown for sharing and archival.

Helpful · Quick feedback

Loading…
GitHub stats
anthropics/claude-code#55645Fetched 2026-05-03 04:48:04
View on GitHub
Comments
2
Participants
2
Timeline
3
Reactions
0
Timeline (top)
commented ×2labeled ×1

Error Message

[BUG] 400 error if you send just an image to claude code via remote control, then stuck in this cycle forever Error: 400 invalid_request_error: messages: text content blocks must be non-empty

Error Messages/Logs

Error: 400 invalid_request_error: messages: text content blocks must be non-empty

RAW_BUFFERClick to expand / collapse

Preflight Checklist

  • I have searched existing issues and this hasn't been reported yet
  • This is a single bug report (please file separate reports for different bugs)
  • I am using the latest version of Claude Code

What's Wrong?

[BUG] 400 error if you send just an image to claude code via remote control, then stuck in this cycle forever

Steps: attach an image, send with no text Error: 400 invalid_request_error: messages: text content blocks must be non-empty Request ID: req_011CaeDEVrkP54DkPzTNs6YL

What Should Happen?

either accept just an image or only fail once rather than continuing to send 400s on subsequent calls

Error Messages/Logs

Steps to Reproduce

Worth including in the report:

Steps: attach an image, send with no text Error: 400 invalid_request_error: messages: text content blocks must be non-empty Request ID: req_011CaeDEVrkP54DkPzTNs6YL

Claude Model

Not sure / Multiple models

Is this a regression?

No, this never worked

Last Working Version

No response

Claude Code Version

2.1.123

Platform

Anthropic API

Operating System

macOS

Terminal/Shell

Terminal.app (macOS)

Additional Information

No response

extent analysis

TL;DR

Modify the request to include a non-empty text content block or handle the 400 error response to break the cycle.

Guidance

  • Verify that the error occurs consistently when sending an image with no text using the remote control.
  • Check the API documentation for the Anthropic API to see if there are any specific requirements for text content blocks when sending images.
  • Consider adding a default or empty text message when sending an image to satisfy the non-empty text content block requirement.
  • Handle the 400 error response in the client code to prevent continuous retries and break the cycle.

Example

No code example is provided as the issue does not include specific code snippets or APIs.

Notes

The issue may be specific to the Anthropic API and its requirements for text content blocks. The solution may need to be adjusted based on the specific API documentation and requirements.

Recommendation

Apply a workaround by adding a default or empty text message when sending an image to satisfy the non-empty text content block requirement, as upgrading to a fixed version is not implied in the issue.

Vote matrix · Quick signals

Works
Did the solution work? Tap to confirm.
Easy Fix
Was it a quick fix?
Time Saver
Did it save you time?
Blocking
Was it severely blocking?
Common Issue
Are others likely hitting this too?
Flaky / Intermittent
Is it intermittent?
Verified / Reproducible
Can you reproduce it reliably?
Loading…

Still need to ship something?

×6

Another batch ranked right after the header list — different links, same matching logic.

Back to top recommendations

TRENDING