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
相关推荐
曦尧1 小时前
Pascal Editor:基于 React Three Fiber + WebGPU 的开源浏览器端 3D 建筑编辑器深度解析
ai·自动化
2601_965798472 小时前
How to Build a Custom Artisan Store on WordPress: Crafti Theme Review
linux·服务器·数据库
mounter6252 小时前
深度解析 Linux 内核中的 iomap 子系统:历史、演进、核心机制与未来
linux·文件系统·linux kernel·kernel·iomap
养海绵宝宝的小蜗3 小时前
LVS(Linux Virtual Server)项目知识点总结
linux·运维·lvs
阿黎02144 小时前
Linux驱动
linux
俊哥V4 小时前
AI一周事件 · 2026-07-22 至 2026-07-28
人工智能·ai
tjjingpan4 小时前
HCIP-Datacom Core Technology V1.0_20 IPv6概述
linux·服务器·网络
人间凡尔赛4 小时前
2026年AI编程新范式:从Copilot到Agentic Coding的实战指南
ai·编程·agent·工具·效率
周航宇JoeZhou4 小时前
JP3-2-1-MyItem项目简介
java·ai·springboot·环境搭建·项目·管理·springai
云泽8085 小时前
Linux基础开发工具(三):Vim高级配置、Swap恢复机制与Sudo权限白名单详解
linux·运维·vim