Claude Code相关最新问题解决API Error: 400 Failed to deserialize the JSON body into the target type:
·
Claude Code 更新后 DeepSeek 兼容问题解决记录(本人亲测有效)
一、问题出现
今天 Claude Code 2.1.56更新后,原本正常使用的 DeepSeek 出现异常。
具体表现:
-
终端以及VSCode插件中提问直接报
400错误(API Error: 400 Failed to deserialize the JSON body into the target type:...) -
重装 VSCode /ccswitch后问题依旧存在
二、解决终端部分
处理过程
1. 在命令行中运行(将Claude Code回退到153版本)
npm install -g @anthropic-ai/claude-code@2.1.153
2.并在C:\Users\用户名\.claude\settings.json中,添加(关闭Claude Code自动更新)
"CLAUDE_CODE_DISABLE_AUTOUPDATER": "1"
具体位置如下

结果
终端恢复正常。
三、解决VSCode插件部分
处理过程
1.选择插件为153版本
2.关闭自动更新

最终结果
插件恢复正常。
四、总结
这次问题本质上是:
-
Claude Code 更新后与 DeepSeek 的部分配置兼容性发生变化
吐槽:
-
a社有点苟
更多推荐
所有评论(0)