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. 版本回退

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

禁用插件自动更新

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

相关推荐
肩上风骋1 小时前
C++14特性
开发语言·c++·c++14特性
一个扣子1 小时前
第十八篇:Agent怎么用?区分Commands(即时指令)、Skills(复用能力)、Agents(自主任务)
command·claude code·skills·能力分层·agent模式
JAVA社区3 小时前
Java高级全套教程(十)—— SpringCloudAlibaba超详细实战详解
java·开发语言·spring cloud·面试·职场和发展
弥树子3 小时前
踩坑记录:服务器内网调用接口,真实请求URL与官方公开URL不一致问题排查
开发语言·php
z落落3 小时前
C# ToCharArray + foreach遍历 + String与StringBuilder
开发语言·c#
学代码的真由酱3 小时前
Java多用户一对一网页聊天室-测试报告
java·开发语言·功能测试·测试
人道领域3 小时前
【LeetCode刷题日记】669.修剪二叉搜索树
开发语言·python·算法
xiaoshuaishuai84 小时前
C# AvaloniaUI动态显示图片
开发语言·c#
日光明媚4 小时前
一步生成视频!One-Forcing:DMD + 零成本 GAN,训练 200 步超越多步 SOTA
android·开发语言·kotlin