国产 无码 综合区,色欲AV无码国产永久播放,无码天堂亚洲国产AV,国产日韩欧美女同一区二区

【GitLab】-HTTP 500 curl 22 The requested URL returned error: 500~SSH解決

這篇具有很好參考價(jià)值的文章主要介紹了【GitLab】-HTTP 500 curl 22 The requested URL returned error: 500~SSH解決。希望對(duì)大家有所幫助。如果存在錯(cuò)誤或未考慮完全的地方,請(qǐng)大家不吝賜教,您也可以點(diǎn)擊"舉報(bào)違法"按鈕提交疑問(wèn)。

寫(xiě)在前面

??本文主要介紹通過(guò)SSH的方式拉取GitLab代碼。
rpc failed; http 500 curl 22 the requested url returned error: 500,工作指北,gitlab,ssh,HTTP 500,returnd error,curl 22



一、場(chǎng)景描述

??之前筆者是通過(guò) HTTP + Personal access token 的方式拉取、更新、提交代碼的。直到有一天,休了個(gè)假?;貋?lái)之后,發(fā)現(xiàn)代碼無(wú)法拉取,其他同事也遇到同樣問(wèn)題。
報(bào)如下錯(cuò)誤:

$ git pull
error: RPC failed; HTTP 500 curl 22 The requested URL returned error: 500
fatal: the remote end hung up unexpectedly

查詢(xún)資料,未果。
不知道是不是GitLab服務(wù)器端有人做了什么sao操作,還是其他什么原因。網(wǎng)上查詢(xún)了一些資料,有說(shuō)是緩存問(wèn)題,經(jīng)親測(cè),也沒(méi)什么卵用。

// 配置緩存的方式
git config --global http.postBuffer 157286400
https://stackoverflow.com/questions/44780221/git-push-failing-http-500-curl-22-the-requested-url-returned-error-500-internal

后來(lái),經(jīng)測(cè)試,發(fā)現(xiàn)通過(guò)SSH的方式可以正常拉取代碼。如有人發(fā)現(xiàn)HTTP 500 具體錯(cuò)誤原因的,請(qǐng)?jiān)u論區(qū)指出,感謝~


二、具體步驟

1.環(huán)境說(shuō)明

名稱(chēng) 說(shuō)明
Windows版本 Win10/X64
IntelliJ IDEA 2019.2

2.生成秘鑰

進(jìn)入用戶(hù)當(dāng)前目錄, 注意.ssh是隱藏目錄

admin@LAPTOP-ROP3B248 MINGW64 ~
$ cd ~/.ssh

輸入命令,user@email.com 換成自己郵箱即可,其他的直接默認(rèn)回車(chē)即可。

admin@LAPTOP-ROP3B248 MINGW64 ~/.ssh
$ ssh-keygen -t rsa -b 4096 -C "user@email.com"
Generating public/private rsa key pair.
Enter file in which to save the key (/c/Users/admin/.ssh/id_rsa):
Enter passphrase (empty for no passphrase):
Enter same passphrase again:
Your identification has been saved in /c/Users/admin/.ssh/id_rsa
Your public key has been saved in /c/Users/admin/.ssh/id_rsa.pub
The key fingerprint is:
SHA256:5P4vWucgzRdv9adk2VJmp+Bt/7S2Q9AMU4KEzmHrBN0 user@email.com
The key's randomart image is:
+---[RSA 4096]----+
|        . +..... |
|       . = E o.  |
|        * o   =  |
|       o =   . o |
|        S   o . *|
|       . + . = Xo|
|        o = + % =|
|         +.= = Bo|
|        ...oo oo*|
+----[SHA256]-----+

// 會(huì)生成2個(gè)文件
admin@LAPTOP-ROP3B248 MINGW64 ~/.ssh
$ ll
total 8
-rw-r--r-- 1 admin 197121 3389 Nov 13 11:08 id_rsa
-rw-r--r-- 1 admin 197121  747 Nov 13 11:08 id_rsa.pub

3.GitLab添加秘鑰

登錄GitLab,頭像那個(gè)位置,點(diǎn)擊settings。選擇左側(cè)SSH Keys
rpc failed; http 500 curl 22 the requested url returned error: 500,工作指北,gitlab,ssh,HTTP 500,returnd error,curl 22

復(fù)制生成的文件 id_rsa.pub(公鑰) 文件的內(nèi)容,粘貼到key中,點(diǎn)擊Add key
rpc failed; http 500 curl 22 the requested url returned error: 500,工作指北,gitlab,ssh,HTTP 500,returnd error,curl 22
此時(shí),郵箱會(huì)收到郵件。

4.驗(yàn)證SSH方式

將 {git地址} 替換為自己的git地址即可

admin@LAPTOP-ROP3B248 MINGW64 ~/.ssh
$ ssh -T git@{git地址}
The authenticity of host '{git地址}' can't be established.
ED25519 key fingerprint is SHA256:gyiXoXNV3lz8RqbCXnmVBBPW7WxuBVoOxnNbq8TSsUo.
This key is not known by any other names
Are you sure you want to continue connecting (yes/no/[fingerprint])? yes
Warning: Permanently added '{git地址}' (ED25519) to the list of known hosts.
Welcome to GitLab, User!

4.更改原有HTTP方式為SSH

更改拉取代碼的方式,以IDEA為例,選中項(xiàng)目,右鍵,Git-》Repository-》Remotes
修改URL由HTTP修改為SSH方式。說(shuō)明:IDEA版本不同,步驟會(huì)有所不同

原有:	http://{git地址}/ace-group/ace-conf-parent.git
修改為:	git@{git地址}:ace-group/ace-conf-parent.git

rpc failed; http 500 curl 22 the requested url returned error: 500,工作指北,gitlab,ssh,HTTP 500,returnd error,curl 22

至此,就又可以愉快地玩耍了~


三、參考資料

gitlab 配置ssh key,通用ssh拉取代碼


寫(xiě)在后面

??如果本文內(nèi)容對(duì)您有價(jià)值或者有啟發(fā)的話,歡迎點(diǎn)贊、關(guān)注、評(píng)論和轉(zhuǎn)發(fā)。您的反饋和陪伴將促進(jìn)我們共同進(jìn)步和成長(zhǎng)。


系列文章

【GitLab】-HTTP Basic: Access denied.remote:You must use a personal access token
【GitLab】-批量克隆更新GibLab項(xiàng)目腳本(Python版本)文章來(lái)源地址http://www.zghlxwxcb.cn/news/detail-775937.html

到了這里,關(guān)于【GitLab】-HTTP 500 curl 22 The requested URL returned error: 500~SSH解決的文章就介紹完了。如果您還想了解更多內(nèi)容,請(qǐng)?jiān)谟疑辖撬阉鱐OY模板網(wǎng)以前的文章或繼續(xù)瀏覽下面的相關(guān)文章,希望大家以后多多支持TOY模板網(wǎng)!

本文來(lái)自互聯(lián)網(wǎng)用戶(hù)投稿,該文觀點(diǎn)僅代表作者本人,不代表本站立場(chǎng)。本站僅提供信息存儲(chǔ)空間服務(wù),不擁有所有權(quán),不承擔(dān)相關(guān)法律責(zé)任。如若轉(zhuǎn)載,請(qǐng)注明出處: 如若內(nèi)容造成侵權(quán)/違法違規(guī)/事實(shí)不符,請(qǐng)點(diǎn)擊違法舉報(bào)進(jìn)行投訴反饋,一經(jīng)查實(shí),立即刪除!

領(lǐng)支付寶紅包贊助服務(wù)器費(fèi)用

相關(guān)文章

  • 執(zhí)行g(shù)it操作報(bào)錯(cuò):The requested URL returned error: 500

    執(zhí)行g(shù)it操作報(bào)錯(cuò):The requested URL returned error: 500

    因?yàn)橐咔榫蛹肄k公了,然后家里面有一個(gè)臺(tái)式機(jī),就使用了臺(tái)式機(jī),結(jié)果想從git倉(cāng)庫(kù)重新拉取代碼就報(bào)錯(cuò)了: 然后從網(wǎng)上找各種解決辦法,都不生效,我突然記起自己的git密碼重新修改過(guò),修改密碼之后沒(méi)有在臺(tái)式機(jī)上辦過(guò)公,所以就重新設(shè)置了一下git的密碼,如下: 使用

    2024年02月11日
    瀏覽(23)
  • git clone項(xiàng)目報(bào)錯(cuò),The requested URL returned error: 500

    git clone項(xiàng)目報(bào)錯(cuò),The requested URL returned error: 500

    git clone項(xiàng)目報(bào)錯(cuò),The requested URL returned error: 500,如何解決?試試修改電腦中存儲(chǔ)的賬號(hào)密碼 有項(xiàng)目權(quán)限,至少在網(wǎng)頁(yè)上能通過(guò)鏈接訪問(wèn)當(dāng)前Git內(nèi)容 曾在當(dāng)前電腦登錄過(guò)git賬號(hào) 滿(mǎn)足以上兩種情況,但執(zhí)行g(shù)it clone時(shí)卻報(bào)錯(cuò)The requested URL returned error: 500 在Windows系統(tǒng)中試試以下方法

    2024年02月12日
    瀏覽(26)
  • 解決 git 出現(xiàn) unable to access ‘ ’The requested URL returned error 500 問(wèn)題

    解決 git 出現(xiàn) unable to access ‘ ’The requested URL returned error 500 問(wèn)題

    問(wèn)題 在項(xiàng)目中 fetch、push 的時(shí)候,出現(xiàn)下面這個(gè)問(wèn)題: 網(wǎng)上很多說(shuō)時(shí)文件太大、代理、權(quán)限什么的,可能有人是這樣吧,但是沒(méi)能解決我這問(wèn)題。 解決辦法 最后還是看到一篇博客說(shuō)是賬號(hào)問(wèn)題,想了下是不是密碼錯(cuò)了,去登錄一下直接的賬號(hào),發(fā)現(xiàn)還真有可能錯(cuò)了,而且這

    2024年02月11日
    瀏覽(89)
  • git 報(bào)錯(cuò)The requested URL returned error: 403

    git 報(bào)錯(cuò)The requested URL returned error: 403

    目錄 修改git?配置信息用戶(hù)名和郵箱(無(wú)效) 修改當(dāng)前項(xiàng)目下的git文件夾中的config(無(wú)效) 清除緩存(有效) 優(yōu)化:每次拉取代碼都要輸入用戶(hù)名和密碼 今日更換電腦,從云效平臺(tái)拉取代碼報(bào)錯(cuò)。 原因:自己的賬號(hào)和電腦上之前的Git賬戶(hù)有沖突,需清除緩存 主要參考:解

    2024年02月06日
    瀏覽(23)
  • 問(wèn)題解決——IDEA git 操作報(bào)錯(cuò):The requested URL returned error: 403

    使用的命令有:git pull、git push。 報(bào)錯(cuò)內(nèi)容: remote: [session-424579a9] Access denied fatal: unable to access \\\'https://gitee.com/xxxxxx.git/\\\': The requested URL returned error: 403 查看 git 的用戶(hù)名、郵箱和密碼,命令如下; 如果不對(duì)就修改成你期望的 git 用戶(hù)名、郵箱和密碼; 問(wèn)題依然沒(méi)有解決的話,那

    2024年02月06日
    瀏覽(39)
  • 解決使用sourcetree推送(git push)代碼提示 The requested URL returned error: 403 問(wèn)題

    解決使用sourcetree推送(git push)代碼提示 The requested URL returned error: 403 問(wèn)題

    我使用sourcetree push 代碼,他會(huì)顯示403,也就是我當(dāng)前的 push 是失敗的,但是我直接在終端進(jìn)行 git push origin HEAD:dev 它又是成功的! 終端能成功可能是因?yàn)橹苯游遗渲眠^(guò) token ,它和 sourcetree 的區(qū)別可能就是出現(xiàn)在賬號(hào)問(wèn)題上(猜測(cè) 所以我的解決辦法是將當(dāng)前本地倉(cāng)庫(kù)的賬號(hào)換

    2024年02月12日
    瀏覽(29)
  • 解決Gitee或者Github出現(xiàn)Access denied fatal: unable to access,The requested URL returned error: 403

    解決Gitee或者Github出現(xiàn)Access denied fatal: unable to access,The requested URL returned error: 403

    從github或者gitee碼云拉取其他人的私有項(xiàng)目時(shí),報(bào)以下錯(cuò)誤 要把某個(gè)項(xiàng)目push到Gitee碼云或者Github上,已經(jīng)設(shè)置了倉(cāng)庫(kù)地址,在最后一步推送代碼時(shí)直接報(bào)錯(cuò)。 因?yàn)閳?bào)的錯(cuò)是沒(méi)有訪問(wèn)權(quán)限,只要本地使用過(guò)Github或者Gitee等git服務(wù),電腦上就會(huì)存儲(chǔ)git的賬號(hào)和密碼憑據(jù).這樣下次

    2024年01月25日
    瀏覽(172)
  • git push 報(bào)錯(cuò)unable to access https://gitee.com/****/***.git/ : The requested URL returned error:403

    git push 報(bào)錯(cuò)unable to access https://gitee.com/****/***.git/ : The requested URL returned error:403

    對(duì)于git小白來(lái)說(shuō),第一次使用git總會(huì)報(bào)各種稀奇古怪的錯(cuò)誤。 最近的操作git的時(shí)候,就報(bào)了如上的錯(cuò)誤fatal: unable to access ?https://gitee.com/****/***.git/ : The requested?URL returned error:403 對(duì)于這樣的錯(cuò)誤無(wú)非就是無(wú)權(quán)訪問(wèn)的問(wèn)題, 解決的方法我試過(guò)的只有兩種 : 1 .自己的git賬戶(hù)本身

    2023年04月08日
    瀏覽(33)
  • git push報(bào)錯(cuò):fatal: unable to access ‘https://github.com/***/‘:The requested URL returned error: 403

    又是被自己菜死的一天。 使用git push命令后,報(bào)錯(cuò)信息如下: remote: Permission to *** denied to . fatal: unable to access \\\'https://github.com/ /\\\': The requested URL returned error: 403 當(dāng)然在git push 之前生成teken是必要的,在設(shè)置里面開(kāi)發(fā)者設(shè)置中Personal access tokens生成就可以了,注意生成之后需要復(fù)制

    2024年02月16日
    瀏覽(31)
  • git push提交代碼到服務(wù)器報(bào)remote: [session-xx] Access denie The requested URL returned error: 403

    git push提交代碼到服務(wù)器報(bào)remote: [session-xx] Access denie The requested URL returned error: 403

    操作: 執(zhí)行 git push -u origin master ,我想把commit的代碼直接提交到遠(yuǎn)程的倉(cāng)庫(kù),哪知道直接給我一個(gè)報(bào)錯(cuò): remote: [session-xxx] Access denied fatal: unable to access \\\'https://gitee.com/xxx/xxx.git/\\\': The requested URL returned error: 403 原因: 這是賬號(hào)不一致 可以通過(guò)查詢(xún)一下當(dāng)前用戶(hù): cat ~/.gitconfig

    2024年02月11日
    瀏覽(28)

覺(jué)得文章有用就打賞一下文章作者

支付寶掃一掃打賞

博客贊助

微信掃一掃打賞

請(qǐng)作者喝杯咖啡吧~博客贊助

支付寶掃一掃領(lǐng)取紅包,優(yōu)惠每天領(lǐng)

二維碼1

領(lǐng)取紅包

二維碼2

領(lǐng)紅包