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
相关推荐
wacsii9 分钟前
【Linux进程(四)】命令行参数与环境变量
linux·服务器
无奈笑天下10 分钟前
银河麒麟上lsblk命令教程详解
linux·运维·服务器·数据库
深圳雨林凯AI27 分钟前
商品详情长图的自动生成:版块模板、要素抽取与版式约束的实现思路
人工智能·ai
科研邪修法1 小时前
培训PDF保护配置:把需求转换成可验收权限
linux·服务器·网络
Felven2 小时前
中科驭数100G网卡RDMA性能测试
linux·rdma·中科驭数·100g网卡
雪落漂泊5 小时前
Liunux进程(七):程序控制篇(中)
linux·运维·windows
俊俊几年的5 小时前
动态规划(Dynamic Programming)详解:从入门到 LeetCode Hot 100
linux·c++·算法·leetcode·嵌入式·动态规划·c
星恒随风14 小时前
MySQL 从零入门(五):MySQL 内置函数详解——日期、字符串、数学函数与实战案例
linux·数据库·笔记·sql·mysql
Miya_Ye15 小时前
AI工具 Phoenix
ai·工具
吴名氏.16 小时前
Java转AI Agent教程(第十三周)混合检索与重排
java·数据库·人工智能·ai·ai agent