【问题标题】:Git pull failing HTTP 500 curl 22 The requested URL returned error: 500 Internal Server ErrorGit pull failed HTTP 500 curl 22 The requested URL returned error: 500 Internal Server Error
【发布时间】:2021-09-07 22:36:02
【问题描述】:

我们坐在代理后面,因此 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 push failing HTTP 500 curl 22 The requested URL returned error: 500 Internal Server Error不同的问题

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

【问题讨论】:

    标签: windows git proxy


    【解决方案1】:

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

    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
    

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

    【讨论】:

      猜你喜欢
      • 2021-08-16
      • 2021-02-10
      • 2019-02-08
      • 2020-10-26
      • 1970-01-01
      • 2020-12-11
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      相关资源
      最近更新 更多