Git Error: The requested URL returned error: 504 Gateway Timeout while accessing http://

前端 未结 2 540
后悔当初
后悔当初 2021-01-04 01:05

I am using a VM provisioned by my company\'s internal cloud (KVM) - RHEL 6.4.

I am able to clone external repositories from the internet. Yet, I cannot figure out ho

相关标签:
2条回答
  • 2021-01-04 01:37

    The 504 status is most likely because you're trying to access an internal server through the proxy so I don't think you should set the proxy but instead focus on the 401 status since that most likely comes from the server hosting the repositories.

    • Do you have anonymous access to the internal repositories?

    • Are you cloning them in the same way, i.e. using HTTP on both your laptop and on the server, or are you using SSH on the laptop and HTTP on the server?

    • Do you have any credentials stored on your laptop?

    0 讨论(0)
  • 2021-01-04 01:45

    use this in .gitconfig file then this problem will resolved.

    - [http]
         proxy = http://127.0.0.1:8087
         sslVerify = false
    

    OR git config --global http.proxy ''

    0 讨论(0)
提交回复
热议问题