[Bug] Anthropic API Error: Invalid Message Content in Request

Resolved 💬 5 comments Opened Aug 24, 2025 by htelsiz Closed Jan 7, 2026

I can't reproduce this consistently but it's happened to me a few times in the last couple of hours.

---

Environment

  • Platform: darwin
  • Terminal: iTerm.app
  • Version: 1.0.89
  • Feedback ID: c50eaff3-5281-4343-bb75-77851b9d2c51

---

Error Log

[
  {
    "error": "Error: Agent file /Users/comfy/glyx/.claude/agents/README.md is missing required 'name' in frontmatter",
    "stack": "at lJ5 (.../cli.js:2408:6762)\n at .../cli.js:2408:5236\n at Array.map (<anonymous>)\n at ...",
    "timestamp": "2025-08-24T11:53:36.188Z"
  },
  {
    "error": "SyntaxError: Unexpected token 'I', \"I apologiz\"... is not valid JSON",
    "stack": "at JSON.parse (<anonymous>)\n at .../cli.js:712:9932\n at Q (.../cli.js:671:13339)\n at cn2 (.../cli.js:1058:1992)\n at process.processTicksAndRejections (node:internal/process/task_queues:95:5)",
    "timestamp": "2025-08-24T11:53:38.483Z"
  },
  {
    "error": "Error: Request was aborted.",
    "stack": "at HP.makeRequest (.../cli.js:943:3840)\n at process.processTicksAndRejections (node:internal/process/task_queues:95:5)",
    "timestamp": "2025-08-24T11:53:38.512Z"
  },
  {
    "error": "Error: 400 {\"type\":\"error\",\"error\":{\"type\":\"invalid_request_error\",\"message\":\"messages.25: all messages must have non-empty content except for the optional final assistant message\"},\"request_id\":\"req_011CSSazhEELgurDXH3EeUGn\"}",
    "stack": "at b4.generate (.../cli.js:926:2412)\n at HP.makeStatusError (.../cli.js:943:2101)\n at HP.makeRequest (.../cli.js:943:5314)\n at process.processTicksAndRejections (node:internal/process/task_queues:95:5)\n at async NZ1.showErrors (.../cli.js:1898:27491)\n at async NZ1 (.../cli.js:1898:16486)\n at async qBB (.../cli.js:1898:27321)\n at async .../cli.js:1898:22275\n at async XD0 (.../cli.js:1898:3656)\n at async $e (.../cli.js:1898:22245)",
    "timestamp": "2025-08-24T13:08:05.348Z"
  }
]

View original on GitHub ↗

This issue has 5 comments on GitHub. Read the full discussion on GitHub ↗