九零不老心
发布于 2024-11-20 / 44 阅读 / 0 评论 / 0 点赞

error: RPC failed; curl 18 HTTP/2 stream 5 was reset error: 5570 bytes of body are still expected

环境:

青龙git拉取git项目

报错:

error: RPC failed; curl 18 HTTP/2 stream 5 was reset error: 5570 bytes of body are still expected fetch-pack: unexpected disconnect while reading sideband packet fatal: early EOF fatal: fetch-pack: invalid index-pack output

可能的解决办法:

1. 增加HTTP POST缓冲区大小

git config --global http.postBuffer 157286400

这会增加Git的POST缓冲区大小,可能有助于解决问题。

2. 禁用HTTP/2

git config --global http.version HTTP/1.1

这会强制Git使用HTTP/1.1,而不是HTTP/2。

3. 检查网络连接:确保你的网络连接稳定,尝试使用不同的网络环境进行操作。

4. 更新Git和curl:确保你的Git和curl都是最新版本,有时更新可以解决一些兼容性问题。

5. 使用代理:如果你在使用代理,确保代理配置正确。