Git pull失败HTTP 500 curl 22请求的URL返回错误:500内部服务器错误



我们坐在一个代理后面,因此git配置如下

[http "https://github.com"]
proxy = http://:@webproxy.intra:8080
sslBackend = schannel
sslverify = true
[http "https://gitlab.com"]
proxy = http://:@webproxy.intra:8080
sslBackend = schannel
sslverify = true

远程设置如下

origin  https://gitlab.com/papanito/website.git (fetch)
origin  https://gitlab.com/papanito/website.git (push)

虽然提取大部分工作,但有一段时间我在提取或提取时出现了以下错误

$ git fetch --all
Fetching origin
error: RPC failed; HTTP 500 curl 22 The requested URL returned error: 500
fatal: error reading section header 'acknowledgments'
error: Could not fetch origin

这与Git推送失败的HTTP 500 curl 22不同。请求的URL返回错误:500内部服务器错误

此问题可能与代理有关(阻塞?(。我会进一步检查,但也许你们中的某个人有一些暗示。

我可以通过限制深度来解决这个问题。

git pull --depth 20
remote: Enumerating objects: 518, done.
remote: Counting objects: 100% (398/398), done.
remote: Compressing objects: 100% (184/184), done.
Rremote: Total 323 (delta 171), reused 237 (delta 110), pack-reused 0
Receiving objects: 100% (323/323), 4.84 MiB | 17.26 MiB/s, done.
Resolving deltas: 100% (171/171), completed with 36 local objects.
From https://gitlab.com/wyssmann/website

虽然这不是一个合适的解决方案,但同时它可能会对一些人有所帮助。

最新更新