代理访问 GitHub 时出现“代理连接中止”错误

代理访问 GitHub 时出现“代理连接中止”错误

我们的代理服务器在连接到 GitHub 时出现连接中断错误。GitHub 在允许列表中。对网络团队有什么建议吗?这可能是 cURL 的问题吗?

ubuntu@ip-10-xxx-xxx-xx-xx:~$ git clone https://github.com/Microsoft/vcpkg.git
Cloning into 'vcpkg'...
00:32:13.943853 http.c:695              == Info: Couldn't find host github.com in the .netrc file; using defaults
00:32:13.963521 http.c:695              == Info:   Trying 10.xxx.xxx.xx...
00:32:13.963543 http.c:695              == Info: TCP_NODELAY set
00:32:13.970662 http.c:695              == Info: Connected to myproxy.mydomain (x.x.x.x) port 1080 (#0)
00:32:13.970695 http.c:695              == Info: allocate connect buffer!
00:32:13.970709 http.c:695              == Info: Establish HTTP proxy tunnel to github.com:443
00:32:13.970748 http.c:642              => Send header, 0000000111 bytes (0x0000006f)
00:32:13.970762 http.c:654              => Send header: CONNECT github.com:443 HTTP/1.1
00:32:13.970776 http.c:654              => Send header: Host: github.com:443
00:32:13.970788 http.c:654              => Send header: User-Agent: git/2.17.1
00:32:13.970801 http.c:654              => Send header: Proxy-Connection: Keep-Alive
00:32:13.970821 http.c:654              => Send header:
00:32:13.980658 http.c:695              == Info: Proxy CONNECT aborted
00:32:13.980674 http.c:695              == Info: CONNECT phase completed!
00:32:13.980685 http.c:695              == Info: Connection #0 to host myproxy.mydomain  left intact

答案1

确保代理协议是http,而不是socks5。

相关内容