API Error: 400 Request body format invalid

今天使用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
相关推荐
喵了几个咪7 分钟前
GoWind Admin 拆解:智能问数——从一句自然语言到一张可信图表
ai·golang·llm·智能问数·gowind
爆米花byh1 小时前
在RockyLinux9环境下安装Rust1.100.0环境
linux·rust
爆米花byh1 小时前
在RockyLinux9环境下安装Manticore Search32.1.3单机版
linux·服务器·搜索引擎
大今野1 小时前
技能六 · Linux(CentOS 7)操作系统章节习题
linux·运维·centos·专转本
我命由我123451 小时前
Android Gradle - Android Gradle 配置
android·java·linux·java-ee·kotlin·android studio·android-studio
机智阳1 小时前
系统优化(高级)
linux·运维·编辑器
.道阻且长.2 小时前
Linux基础IO:缓冲区 和 库函数的实现
linux·运维·服务器
人工智能研究所2 小时前
开源 AI 手绘动画:一句话画出会走路、会“昼夜交替“的手绘风格动画
人工智能·ai·开源·手绘动画·线条动画·ai 动画
镜舟科技2 小时前
一个底座承载四种负载:MirrorData 统一数据底座的存储与计算设计
sql·ai·负载·数据底座·mirrordata·mirrorlake·mirrorbase
皓月盈江3 小时前
Windows 复制文件夹到 Linux 后显示“带锁”解决方法
linux·运维·windows·linux文件·文件带锁·文件夹带锁