推送至 GitHub 问题 - HTTP/2 流 0 未完全关闭:取消(错误 8)

问题描述 投票:0回答:7

尝试将我的代码提交到 GitHub,之前从未遇到过问题,并且我已经完成了所有快速修复,但到目前为止还没有成功。错误:

Enumerating objects: 10, done.                                                  
Counting objects: 100% (10/10), done.                                           
Delta compression using up to 16 threads
Compressing objects: 100% (6/6), done.                                          
Writing objects: 100% (6/6), 2.19 MiB | 33.00 MiB/s, done.                      
Total 6 (delta 3), reused 0 (delta 0)
error: RPC failed; curl 92 HTTP/2 stream 0 was not closed cleanly: CANCEL (err 8)
fatal: the remote end hung up unexpectedly
fatal: the remote end hung up unexpectedly
Everything up-to-date

我已经研究过这些问题:

  1. Git Push 在推送时返回错误?
  2. Git,致命:远端意外挂断

我已经用

git config http.postBuffer 524288000
更新了我的缓冲区,但我的问题似乎与
CANCEL (err 8)
有关,而其他问题要么是协议错误,要么是 HTTP/2 问题。

关于如何让 GitHub 推送再次运行有什么想法吗?直到今天,我在推送到 Github 时从未遇到过任何问题,并且在此之前大约 30 分钟我进行了 2 次提交。

git github
7个回答
10
投票

该问题似乎是由网速缓慢引起的。也许我报告的是超时错误。

我不清楚具体是什么解决了这个问题,但搬到另一个互联网更快的位置解决了这个问题。

我仍然欢迎任何其他建议!


1
投票

我相信您尝试上传的文件太大。尝试上传部分文件或上传较小的文件。我遇到了这个问题,这个方法帮助了我。


0
投票

设法下载文件,但遇到了一些问题(见下文),需要尝试几次 - 使用 read_csv (readr),因为 read.csv 不起作用

> data_3 <- read_csv("https://storage.covid19datahub.io/level/3.csv")    # download the data
Rows: 6993673 Columns: 47                                                                 
 0s── Column specification ────────────────────────────────────────────────────────────────────
Delimiter: ","
chr  (13): id, administrative_area_level_1, administrative_area_level_2, administrative_...
dbl  (32): confirmed, deaths, recovered, tests, vaccines, people_vaccinated, people_full...
lgl   (1): vent
date  (1): date

ℹ Use `spec()` to retrieve the full column specification for this data.
ℹ Specify the column types or set `show_col_types = FALSE` to quiet this message.
Warning message:
One or more parsing issues, see `problems()` for details 
> problems()
# A tibble: 6,094 × 5
      row   col expected           actual file 
    <int> <int> <chr>              <chr>  <chr>
 1 425027    12 1/0/T/F/TRUE/FALSE 7      ""   
 2 425028    12 1/0/T/F/TRUE/FALSE 5      ""   
 3 425029    12 1/0/T/F/TRUE/FALSE 6      ""   
 4 425030    12 1/0/T/F/TRUE/FALSE 8      ""   
 5 425031    12 1/0/T/F/TRUE/FALSE 13     ""   
 6 425032    12 1/0/T/F/TRUE/FALSE 17     ""   
 7 425033    12 1/0/T/F/TRUE/FALSE 21     ""   
 8 425034    12 1/0/T/F/TRUE/FALSE 25     ""   
 9 425035    12 1/0/T/F/TRUE/FALSE 27     ""   
10 425036    12 1/0/T/F/TRUE/FALSE 35     ""   
# … with 6,084 more rows

0
投票

我遇到了这个问题,但没有一个答案对我有帮助。 Git 本身建议了以下内容并且运行良好


0
投票

我知道我迟到了,但这个解决方案对我有用:

要解决此问题,您需要使用 GitHub 上给出的 SSH 命令:

a)

git push <ssh url given on GitHub repo>

b) 但这需要添加公钥。单击存储库 SSH 部分中给出的链接:添加新的公钥

c) 现在为 Windows 用户打开:

C:/Users/<your system User for example Death is real truth>/.ssh

d) 现在复制

id_rsa.pub
的代码(公共SSH密钥文件数据)

e) 添加到 SSH 部分并保存,它会询问你的 GitHub 帐户密码,添加即可添加成功。

f) 现在第一个命令将完美运行。


-1
投票

$ git config --global http.version HTTP/1


-1
投票
git config http.postBuffer 524288000
© www.soinside.com 2019 - 2024. All rights reserved.