[Bug] Anthropic API Error: Invalid Model Name for Sonnet

Resolved 💬 3 comments Opened Oct 4, 2025 by pleasebeavailable Closed Oct 8, 2025

Bug Description

While following
[ https://medium.com/@dan.avila7/complete-guide-to-setting-up-git-flow-in-claude-code-616477941f78 ]

On Example workflow: /flow-status command tries to access non existent api.

/flow-status is running…
⎿  Allowed 2 tools for this command
⎿  API Error: 404 {"type":"error","error":{"type":"not_found_error","message":"model:
sonnet"},"request_id":"req_011CTmwmpadHSSeNm19qKrXF"}

Environment Info

  • Platform: darwin
  • Terminal: iTerm.app
  • Version: 2.0.5
  • Feedback ID: a15cc3cc-62c4-4941-9078-ffbbe8896d0c

Errors

[{"error":"Error: 404 {\"type\":\"error\",\"error\":{\"type\":\"not_found_error\",\"message\":\"model: sonnet\"},\"request_id\":\"req_011CTmwmpadHSSeNm19qKrXF\"}\n    at B4.generate (file:///opt/homebrew/lib/node_modules/@anthropic-ai/claude-code/cli.js:895:18792)\n    at yP.makeStatusError (file:///opt/homebrew/lib/node_modules/@anthropic-ai/claude-code/cli.js:1034:2131)\n    at yP.makeRequest (file:///opt/homebrew/lib/node_modules/@anthropic-ai/claude-code/cli.js:1034:5344)\n    at process.processTicksAndRejections (node:internal/process/task_queues:105:5)\n    at async E2B.dG1.model (file:///opt/homebrew/lib/node_modules/@anthropic-ai/claude-code/cli.js:1120:39804)\n    at async dG1 (file:///opt/homebrew/lib/node_modules/@anthropic-ai/claude-code/cli.js:1120:27733)\n    at async E2B (file:///opt/homebrew/lib/node_modules/@anthropic-ai/claude-code/cli.js:1120:39958)\n    at async file:///opt/homebrew/lib/node_modules/@anthropic-ai/claude-code/cli.js:1120:34180\n    at async ZH0 (file:///opt/homebrew/lib/node_modules/@anthropic-ai/claude-code/cli.js:1120:9568)\n    at async r11 (file:///opt/homebrew/lib/node_modules/@anthropic-ai/claude-code/cli.js:1120:34150)","timestamp":"2025-10-04T09:46:18.745Z"}]

View original on GitHub ↗

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