Claude Code 错误:API Error: 400 Failed to deserialize the JSON body into the

时间:2026年5月29日

Claude Code报错信息:

API Error: 400 Failed to deserialize the JSON body into the target type: messages1.role: unknown variant system, expected user or assistant at line 1 column 44084
API Error: 400 Failed to deserialize the JSON body into the target type: messages1.role: unknown variant system, expected user or assistant at line 1 column 87797

解决方法

1. 版本回退

类似如上错误,如果你使用的 vscode 、cursor、 Trae 等代码编辑器,只需要将Claude Code插件的版本回退即可,我是回退到了一天前的 2.1.138版本

禁用插件自动更新

回退完成之后禁用自动更新:

相关推荐
两点王爷18 小时前
Java 面试高频:JWT、Cookie、Session、Token 鉴权详解
java·开发语言·面试
微笑星河q19 小时前
C++高阶之【多态】
开发语言·c++
snow@li1 天前
前端:导入EXCEL并解析文件内容,demo
前端·javascript·vue.js
ClkLog-开源埋点用户分析1 天前
【产品说明】【埋点分析】ClkLog 商业版 Java 运行环境安全更新说明
java·开发语言
yuzhiboyouye1 天前
《阿里巴巴 Java 开发手册》的 MySQL 核心规范
java·开发语言·mysql
郝学胜-神的一滴1 天前
Effective STL 条款12:对容器线程安全性的现实期望
c语言·开发语言·c++·qt·网络协议·rpc·numpy
geovindu1 天前
python: KNeighborsClassifier K
开发语言·后端·python·算法
夕水1 天前
一个小小的颜色选择器,差点让我开发出一个组件库来
前端·javascript·typescript
时间的情敌1 天前
Three.js 射线拾取进阶:hover 高亮、点击弹窗、多物体过滤、穿透拾取
开发语言·javascript·three.js