[Bug] Anthropic API Error: System role not supported on model

Resolved 💬 1 comment Opened May 20, 2026 by imlozano Closed Jun 20, 2026

Bug Description
2.1.145 (Claude Code) De un momento a otro estaba usando Claude Code normal con Opus y me sale este mensaje: API Error: 400 role 'system' is not supported on this model, nunca me habia salido.

Environment Info

  • Platform: darwin
  • Terminal: WarpTerminal
  • Version: 2.1.140
  • Feedback ID: a3553dd0-0fae-4b8d-97d0-b76e4abb519e

Errors

[{"error":"AxiosError: timeout of 5000ms exceeded\n    at <anonymous> (/$bunfs/root/src/entrypoints/cli.js:121:13313)\n    at emit (node:events:92:22)\n    at <anonymous> (/$bunfs/root/src/entrypoints/cli.js:120:3321)\n    at request (/$bunfs/root/src/entrypoints/cli.js:123:2467)\n    at processTicksAndRejections (native:7:39)","timestamp":"2026-05-17T19:27:31.984Z"},{"error":"Error: The socket connection was closed unexpectedly. For more information, pass `verbose: true` in the second argument to fetch()\n    at from (/$bunfs/root/src/entrypoints/cli.js:113:7862)\n    at <anonymous> (/$bunfs/root/src/entrypoints/cli.js:121:12898)\n    at emitError (node:events:43:23)\n    at <anonymous> (/$bunfs/root/src/entrypoints/cli.js:120:1149)\n    at emitError (node:events:43:23)\n    at <anonymous> (node:_http_client:251:22)\n    at processTicksAndRejections (native:7:39)\n    at request (/$bunfs/root/src/entrypoints/cli.js:123:2467)\n    at processTicksAndRejections (native:7:39)","timestamp":"2026-05-17T22:12:23.392Z"},{"error":"McpToolCallError: Failed to fetch project: 404 Not Found\n    at $73 (/$bunfs/root/src/entrypoints/cli.js:4950:63)\n    at zt7 (/$bunfs/root/src/entrypoints/cli.js:4950:1409)\n    at processTicksAndRejections (native:7:39)","timestamp":"2026-05-17T22:38:44.406Z"},{"error":"McpToolCallError: Failed to fetch project: 404 Not Found\n    at $73 (/$bunfs/root/src/entrypoints/cli.js:4950:63)\n    at zt7 (/$bunfs/root/src/entrypoints/cli.js:4950:1409)\n    at processTicksAndRejections (native:7:39)","timestamp":"2026-05-17T22:40:08.524Z"},{"error":"McpToolCallError: API error occurred: Status 404 Content-Type \"application/json; charset=utf-8\". Body: {\"error\":{\"code\":\"not_found\",\"message\":\"Deployment not found\"}}\n    at $73 (/$bunfs/root/src/entrypoints/cli.js:4950:63)\n    at zt7 (/$bunfs/root/src/entrypoints/cli.js:4950:1409)\n    at processTicksAndRejections (native:7:39)","timestamp":"2026-05-17T22:48:38.410Z"},{"error":"Error: The socket connection was closed unexpectedly. For more information, pass `verbose: true` in the second argument to fetch()\n    at from (/$bunfs/root/src/entrypoints/cli.js:113:7862)\n    at <anonymous> (/$bunfs/root/src/entrypoints/cli.js:121:12898)\n    at emitError (node:events:43:23)\n    at <anonymous> (/$bunfs/root/src/entrypoints/cli.js:120:1149)\n    at emitError (node:events:43:23)\n    at <anonymous> (node:_http_client:251:22)\n    at processTicksAndRejections (native:7:39)\n    at request (/$bunfs/root/src/entrypoints/cli.js:123:2467)\n    at processTicksAndRejections (native:7:39)","timestamp":"2026-05-18T03:43:08.083Z"},{"error":"Error: Request was aborted.\n    at makeRequest (/$bunfs/root/src/entrypoints/cli.js:51:6192)\n    at processTicksAndRejections (native:7:39)","timestamp":"2026-05-20T06:40:01.888Z"},{"error":"Error: The socket connection was closed unexpectedly. For more information, pass `verbose: true` in the second argument to fetch()\n    at from (/$bunfs/root/src/entrypoints/cli.js:113:7862)\n    at <anonymous> (/$bunfs/root/src/entrypoints/cli.js:121:12898)\n    at emitError (node:events:43:23)\n    at <anonymous> (/$bunfs/root/src/entrypoints/cli.js:120:1149)\n    at emitError (node:events:43:23)\n    at <anonymous> (node:_http_client:251:22)\n    at processTicksAndRejections (native:7:39)","timestamp":"2026-05-20T07:24:49.257Z"},{"error":"AxiosError: timeout of 5000ms exceeded\n    at <anonymous> (/$bunfs/root/src/entrypoints/cli.js:121:13313)\n    at emit (node:events:92:22)\n    at <anonymous> (/$bunfs/root/src/entrypoints/cli.js:120:3321)\n    at request (/$bunfs/root/src/entrypoints/cli.js:123:2467)\n    at async u88 (unknown)\n    at processTicksAndRejections (native:7:39)","timestamp":"2026-05-20T17:31:02.013Z"},{"error":"Error: 400 {\"type\":\"error\",\"error\":{\"type\":\"invalid_request_error\",\"message\":\"role 'system' is not supported on this model\"},\"request_id\":\"req_011CbEDgy8wCoF8379YcJi4K\"}\n    at generate (/$bunfs/root/src/entrypoints/cli.js:11:59486)\n    at makeRequest (/$bunfs/root/src/entrypoints/cli.js:51:7694)\n    at processTicksAndRejections (native:7:39)","timestamp":"2026-05-20T17:31:42.533Z"},{"error":"Error: 400 {\"type\":\"error\",\"error\":{\"type\":\"invalid_request_error\",\"message\":\"role 'system' is not supp…

Note: Content was truncated.

View original on GitHub ↗

This issue has 1 comment on GitHub. Read the full discussion on GitHub ↗