PaPoo
cover

invalid_request_error が返るときに見ておきたいこと

まず、自分のケースかどうかを切り分けます。今回の issue 群では、同じ invalid_request_error でも中身がかなり違いました。

#64854 は、Claude Dispatch で送った各メッセージに対して Could not process image が返り、しかも画像を送っていないように見える場面でも同じエラーが続く、という報告です。Windows 11 上の Claude Desktop で起きていました。本文では、毎回同じ request_id が返ってくる点も挙がっており、セッション状態が壊れているように見える、という整理でした。

一方の #64796 は、/schedulePOST /v1/code/triggers を使って新しい trigger を作れない、という報告です。こちらは events[0] event_type is required と出るのに、別の経路では event_typeunknown field event_type として拒否される、つまり v1 と v2 の変換が噛み合っていない状態だと書かれていました。既存の trigger は動き続けるが、作成や一部更新が失敗する、というのが報告内容です。

この2件に共通しているのは、エラー名は同じでも「画像処理系の失敗」と「トリガー作成のスキーマ不整合」で、症状の入口が違うことです。なので、invalid_request_error だけを見て一般的な再試行をしても、すぐには切り分けに結びつきません。

手元で確認できた環境は次のとおりです。

[env_summary]
OS          : Darwin 25.3.0 (arm64)
Python      : 3.14.2
検証日時    : 2026-08-09T16:10:26+09:00

Claude Code CLI の版数はこれでした。

$ claude --version
2.1.207 (Claude Code)

claude doctor では、インストール状態に少し気になる点が出ています。

$ claude doctor
Claude Code doctor

Running: native (2.1.207)
Commit: bc512d563325
Platform: darwin-arm64
Path: ~/.local/share/claude/versions/2.1.207
Config install method: native
Search: OK (bundled)
Auto-updates: enabled
Auto-update channel: latest
Last update attempt: none recorded

Multiple installations found
- npm-global at /usr/local/bin/claude
- native at ~/.local/bin/claude

Remote Control
Control this session from claude.ai/code or the Claude mobile app

1 warning found
- Leftover npm global installation at /usr/local/bin/claude
  Fix: Run: npm -g uninstall @anthropic-ai/claude-code

For a full setup checkup that can also fix issues, run /doctor in a Claude Code session.

この出力から言えるのは、少なくとも筆者の環境では native 版の 2.1.207 が動いていて、同時に npm-global の古い残骸が残っている、という点です。ただし、これが今回の invalid_request_error の直接原因だとは、出力だけでは断定できません。claude doctor は健全性の確認には役立ちますが、issue の報告内容そのものを説明するものではないからです。

現時点で、報告から実測値までをつなげて言えるのはここまでです。

もし手元で似たエラーに当たったなら、まずは「どの操作で出たか」を見たほうが早いです。画像を送っていないのに Could not process image なのか、/schedule や trigger 作成まわりで event_type の話が出るのかで、別件として扱う必要があります。


検証環境

claude --version : 2.1.207 (Claude Code)
OS          : Darwin 25.3.0 (arm64)
Python      : 3.14.2
検証日時    : 2026-08-09T16:10:26+09:00

参照した Issue(anthropics/claude-code): #64796, #64854

同じ著者の記事