今天使用Claude code报下面错误
(base) aneirin@xuliat14p:~$ claude
▐▛███▜▌ Claude Code v2.1.154
▝▜█████▛▘ qwen3.6-plus with high effort · API Usage Billing
▘▘ ▝▝ ~/claudeEverything/awssaa
❯ 你是什么模型
⎿ API Error: 400 Request body format invalid
✻ Brewed for 0s
出问题前,我没有做任何操作。因为Claude code的默认升级模式是开启的,
(base) aneirin@xuliat14p:~$ claude doctor
─────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────
Diagnostics
├ Currently running: native (2.1.154)
├ Commit: daa4c3755d45
├ Platform: linux-x64
├ Path: /home/aneirin/.local/share/claude/versions/2.1.154
├ Config install method: native
└ Search: OK (bundled)
Updates
├ Auto-updates: enabled
├ Auto-update channel: stable
├ Stable version: 2.1.145
└ Latest version: 2.1.156
Background server
└ Status: not running
└ Mode: ephemeral
└ See claude daemon status for details
Still having issues? Run /feedback to report details.
Enter to continue
推测可能是自动升级导致,基于这个推测,降级Claude code到稳定版"2.1.145"
# 降级Claude code到稳定版2.1.145
curl -fsSL https://claude.ai/install.sh | bash -s 2.1.145
# 关闭自动升级
vim ~/.claude/settings.json
{
"env": {
"DISABLE_AUTOUPDATER": "1"
}
}
查看已经降级成功,
(base) aneirin@xuliat14p:~$ claude --version
2.1.145 (Claude Code)
如果还是显示原来的版本,可以手动使用下面命令处理,
# 人为指向需要降级的版本
ln -sf ~/.local/share/claude/versions/2.1.154 ~/.local/bin/claude
降级后,再次运行,恢复正常。
(base) aneirin@xuliat14p:~$ claude
▐▛███▜▌ Claude Code v2.1.145
▝▜█████▛▘ qwen3.6-plus with high effort · API Usage Billing
▘▘ ▝▝ ~/claudeEverything/awssaa
❯ 你使用什么模型
● 我使用的是 Qwen 3.6 Plus 模型。
✻ Crunched for 3s