我在 git clone 上遇到 500 错误
声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow
原文地址: http://stackoverflow.com/questions/33086132/
Warning: these are provided under cc-by-sa 4.0 license. You are free to use/share it, But you must attribute it to the original authors (not me):
StackOverFlow
I am getting 500 error on git clone
提问by John Liva
I am unable to clone a newly created repository. I am getting below error.
我无法克隆新创建的存储库。我得到低于错误。
$ git clone https://github.xxxxx.com/zzzzzz.git
Cloning into 'zzzzzz'...
Username for 'https://github.xxxxxx.com': yyyyy
Password for 'https://[email protected]':
remote: Internal Server Error.
remote:
fatal: unable to access 'https://github.xxxxxx.com/zzzzz.git/': The requested URL returned error: 500
I have successfully generated ssh keys and updated the key in github settings as per the instructions in the below URL
我已按照以下 URL 中的说明成功生成了 ssh 密钥并更新了 github 设置中的密钥
https://help.github.com/articles/generating-ssh-keys/
https://help.github.com/articles/generate-ssh-keys/
authentication was success when I executed the command: git -T [email protected]
执行命令时认证成功: git -T [email protected]
Also as per my understanding if we setup the ssh the git clone command should not ask for username and password. But it still asking for them.
另外根据我的理解,如果我们设置 ssh,git clone 命令不应该要求输入用户名和密码。但它仍然要求他们。
debug1: Authentication succeeded (publickey).
Authenticated to github.xxxxx.com ([10.28.22.44]:22).
debug1: channel 0: new [client-session]
debug1: Entering interactive session.
Hi xxxx! You've successfully authenticated, but GitHub does not provide shell access.
debug1: channel 0: free: client-session, nchannels 1
Transferred: sent 3880, received 1696 bytes, in 0.2 seconds
Bytes per second: sent 19132.2, received 8363.0
debug1: Exit status 1
回答by Ionic? Biz?u
This is most probably a problem with GitHub service. I recommend contacting themand explain what the problem is.
这很可能是 GitHub 服务的问题。我建议与他们联系并解释问题所在。
This is how Wikipedia explains the 500
response code:
这是维基百科对500
响应代码的解释:
500 Internal Server Error
A generic error message, given when an unexpected condition was encountered and no more specific message is suitable.
500内部服务器错误
通用错误消息,在遇到意外情况并且没有更适合的特定消息时给出。
Basically, something went wrong on the GitHub endpoint.
基本上,GitHub 端点上出了点问题。
But, since you already have set your SSH keys, you can use the ssh url to clone your repository:
但是,由于您已经设置了 SSH 密钥,您可以使用 ssh url 来克隆您的存储库:
git clone [email protected]:owner/repo.git
回答by Sebastian Diaz
I have the same problem, but in GitLab, and the answer to the problem is that GitLabis make a deploy.
我有同样的问题,但在 GitLab 中,问题的答案是 GitLabis 进行部署。
Deploy in progress
Please try again in a few minutes.
Please contact your GitLab administrator if this problem persists.
So I was connected in a some hours and it is works.
所以我在几个小时内就连接上了,它是有效的。