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
相关推荐
Liaiyang663 小时前
空圈容错:从 (0, 1) 夹缝本体论到 11 次跨域盲测
ai·大模型·量子力学·科学哲学·宇宙学·认识论·认知边界
浩浩测试一下3 小时前
Linux 底层知识点 1
linux·运维·服务器
俊哥V4 小时前
每日 AI 研究简报 · 2026-10-19
人工智能·ai
秋饼4 小时前
LLM API密钥动态轮换实战:Spring Vault + Spring AI + 多Provider路由
java·ai·技术分享·后端开发
Escalating_xu4 小时前
【Linux 网络编程】TCP 跨平台实战:用 Windows 客户端访问 Linux 服务器
linux·服务器·网络
忆挽篱笙歌5 小时前
环境变量,本地变量
linux·运维·服务器
KeyAction66667 小时前
第二届中国国际人工智能+行动大会看点:智能体专场、算力账本与产品发布
人工智能·ai
吹什么轩7 小时前
linux系统复习:僵尸进程与孤儿进程
linux·运维·php
殷忆枫8 小时前
告别依赖地狱!在 Ubuntu 上用 Docker 极速部署 Home Assistant 与 MQTT,并接入 Siri 与嵌入式 C 终端
linux·ubuntu·docker
第404号工位8 小时前
手机到底有没有偷听我们?我抓包了 72 小时,抓到了真凶
linux·人工智能·架构