error: RPC failed; result=22, HTTP code = 413 MiB错误解决
2016-12-03 00:00
85 查看
场景:
在进行git push代码到oschina的时候,由于使用http的方式,导致提交大文件时提示错误。
具体错误:
Counting objects: 381162, done. Delta compression using up to 4 threads. Compressing objects: 100% (110691/110691), done. error: RPC failed; result=22, HTTP code = 413 MiB | 1.92 MiB/s fatal: The remote end hung up unexpectedly Writing objects: 100% (381162/381162), 611.66 MiB | 15.39 MiB/s, done. Total 381162 (delta 262226), reused 381087 (delta 262153) fatal: The remote end hung up unexpectedly
Everything up-to-date
这个错误是由于传输的文件过大导致https报的错误,修改为ssh传输就可以了
还需要生成一个ssh-key,具体参见我的博客:工作中经常使用到的Git命令
把生成的ssh-key添加到oschina的账户里
然后push就可以了
在进行git push代码到oschina的时候,由于使用http的方式,导致提交大文件时提示错误。
具体错误:
Counting objects: 381162, done. Delta compression using up to 4 threads. Compressing objects: 100% (110691/110691), done. error: RPC failed; result=22, HTTP code = 413 MiB | 1.92 MiB/s fatal: The remote end hung up unexpectedly Writing objects: 100% (381162/381162), 611.66 MiB | 15.39 MiB/s, done. Total 381162 (delta 262226), reused 381087 (delta 262153) fatal: The remote end hung up unexpectedly
Everything up-to-date
Counting objects: 381162, done. Delta compression using up to 4 threads. Compressing objects: 100% (110691/110691), done. error: RPC failed; result=22, HTTP code = 413 MiB | 1.92 MiB/s fatal: The remote end hung up unexpectedly Writing objects: 100% (381162/381162), 611.66 MiB | 15.39 MiB/s, done. Total 381162 (delta 262226), reused 381087 (delta 262153) fatal: The remote end hung up unexpectedly
这个错误是由于传输的文件过大导致https报的错误,修改为ssh传输就可以了
git remote set-url origin git@git.oschina.net:xxx/example.git
还需要生成一个ssh-key,具体参见我的博客:工作中经常使用到的Git命令
edustack@Eucalyptus:/edx/app/edxapp/edx-platform$ ssh-keygen -t rsa -C "xxxxxx@example.com" Generating public/private rsa key pair. Enter file in which to save the key (/home/edustack/.ssh/id_rsa): Enter passphrase (empty for no passphrase): Enter same passphrase again: Your identification has been saved in /home/edustack/.ssh/id_rsa. Your public key has been saved in /home/edustack/.ssh/id_rsa.pub. The key fingerprint is: 05:9c:a6:f5:2c:e8:50:7a:a0:3c:eb:b0:bc:95:7f:52 liuyuantao1990@gmail.com The key's randomart image is: +--[ RSA 2048]----+ | ... | | . . =. | | . . + = o. | | + o + ..o | | o + S. | |. . . .E | |.+ o . | |..o .. . | | .. .o | +-----------------+
把生成的ssh-key添加到oschina的账户里
然后push就可以了
相关文章推荐
- gitlab 使用中错误:error: RPC failed; result=22 HTTP code = 413
- 解决错误error: RPC failed; result=56, HTTP code = 200
- git clone error: RPC failed; result=56, HTTP code = 200 错误解决
- HTTP/1.1 500 Server Error 错误的解决方法
- .net问题:尝试打开web项目,web服务器报告以下错误:http/1.1 500 Internal server error,请问该怎么解决这个问题??
- code sign error doesn't match any valid certificate private key pair in the default keych 错误的解决办法
- HTTP 错误 500.19 - Internal Server Error 错误解决方法 集锦iis7(在window7下)
- HTTP 错误 500.19 - Internal Server Error 错误解决方法
- 错误 java.lang.ClassFormatError: Invalid method Code length 的解决办法
- 收集整理的http/1.1 500 server error错误的解决方法
- [转]StarUML 启动时候出现"System Error. Code:1722. RPC服务器不可用."错误的解决办法
- http/1.1 500 server error错误的解决方法
- .net中,WEB服务器错误,"http://1.1 500 server error" 解决办法
- HTTP 错误 500.19 - Internal Server Error 错误解决方法 :
- 解决IE打开页面后发生 HTTP 500 - Internal server error 错误
- (此文章来源黑白花猫工作室)HTTP/1.1 500 Server Error错误解决方法
- 解决IIS中HTTP/1.1 500 Server Error错误的方法
- vs不能正常工作:HTTP/1.1 500 Server Error错误解决方法
- HTTP 错误 500.22 - Internal Server Error—IIS7 Asp.net2.0 网站运行失败解决办法
- vs2003无法打开或创建Web应用程序解决办法(HTTP/1.1 500server error错误处理方法)