claude-code - 💡(How to fix) Fix Dispatch: 400 error - text content blocks must contain non-whitespace text [1 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#45262Fetched 2026-04-09 08:09:29
View on GitHub
Comments
0
Participants
1
Timeline
1
Reactions
0
Author
Participants
Timeline (top)
labeled ×1

Dispatch consistently returns a 400 API error on every message sent:

API Error: 400 {"type":"error","error":{"type":"invalid_request_error","message":"messages: text content blocks must contain non-whitespace text"},"request_id":"req_011CZrTqSGP4NPm4tJcpi9g9"}

Error Message

API Error: 400 {"type":"error","error":{"type":"invalid_request_error","message":"messages: text content blocks must contain non-whitespace text"},"request_id":"req_011CZrTqSGP4NPm4tJcpi9g9"}

Root Cause

The API error indicates that the Dispatch client is sending a message with an empty or whitespace-only text content block in the messages array. This may be caused by a corrupted/empty assistant message in the conversation history being resent with each new request.

🤖 Generated with Claude Code

Fix Action

Fix / Workaround

Dispatch consistently returns a 400 API error on every message sent:

  1. Open Dispatch in the Claude desktop app
  2. Send any message (e.g. "hello?")
  3. Error appears immediately — every subsequent message also fails with the same error
  • Restarting the Dispatch session
  • Creating a new task
  • Clearing the conversation
  • Fully quitting and restarting the Claude desktop app
  • Attempting to update the app via Homebrew (app was installed via .dmg, not brew)

Code Example

API Error: 400 {"type":"error","error":{"type":"invalid_request_error","message":"messages: text content blocks must contain non-whitespace text"},"request_id":"req_011CZrTqSGP4NPm4tJcpi9g9"}
RAW_BUFFERClick to expand / collapse

Description

Dispatch consistently returns a 400 API error on every message sent:

API Error: 400 {"type":"error","error":{"type":"invalid_request_error","message":"messages: text content blocks must contain non-whitespace text"},"request_id":"req_011CZrTqSGP4NPm4tJcpi9g9"}

Steps to reproduce

  1. Open Dispatch in the Claude desktop app
  2. Send any message (e.g. "hello?")
  3. Error appears immediately — every subsequent message also fails with the same error

What I've tried

  • Restarting the Dispatch session
  • Creating a new task
  • Clearing the conversation
  • Fully quitting and restarting the Claude desktop app
  • Attempting to update the app via Homebrew (app was installed via .dmg, not brew)

None of these resolved the issue. The error persists across all new Dispatch sessions.

Environment

  • macOS (Darwin 25.4.0, Apple Silicon)
  • Claude desktop app (Max plan)
  • Was working on a project ("traceless" — Expo/React Native app) when it stopped working

Analysis

The API error indicates that the Dispatch client is sending a message with an empty or whitespace-only text content block in the messages array. This may be caused by a corrupted/empty assistant message in the conversation history being resent with each new request.

🤖 Generated with Claude Code

extent analysis

TL;DR

Check the conversation history for any empty or whitespace-only messages and remove them to potentially resolve the 400 API error.

Guidance

  • Verify that the issue is indeed caused by a corrupted or empty assistant message in the conversation history by inspecting the messages sent in the messages array.
  • Attempt to clear the conversation history again, ensuring that all messages are removed, and then try sending a new message.
  • If the issue persists, try creating a new conversation or task to see if the problem is specific to the current conversation or task.
  • Consider reaching out to the Claude desktop app support team for further assistance, as the issue may be related to a bug in the app.

Example

No code snippet is provided as the issue does not imply a specific code-related fix.

Notes

The provided analysis suggests that the issue may be caused by a corrupted or empty assistant message in the conversation history. However, the exact cause and solution may require further investigation and debugging.

Recommendation

Apply workaround: Remove any empty or whitespace-only messages from the conversation history and try sending a new message. This is recommended as it is a non-invasive and reversible change that may potentially resolve 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