Heroku 部署时出错。错误:RPC 失败;HTTP 504 curl 22 请求的 URL 返回错误:504

SWa*_*ter 6 python git django heroku

过去我通过 HTTP 传输部署到 Heroku 没有任何问题,但最近我无法部署。

这是我收到的错误:

Enumerating objects: 58668, done.
Counting objects: 100% (57434/57434), done.
Delta compression using up to 16 threads
Compressing objects: 100% (16705/16705), done.
Writing objects: 100% (57124/57124), 50.77 MiB | 76.23 MiB/s, done.
Total 57124 (delta 44149), reused 52353 (delta 40249)
error: RPC failed; HTTP 504 curl 22 The requested URL returned error: 504
fatal: the remote end hung up unexpectedly
fatal: the remote end hung up unexpectedly
Run Code Online (Sandbox Code Playgroud)

我尝试切换到 SSH 传输,它可以工作,但 Heroku 正在淘汰 SSH 传输,所以我需要找出这个错误。

我还尝试根据atlassian的页面更改postBuffer ,但我再次收到错误。

git config --global http.postBuffer 157286400
Run Code Online (Sandbox Code Playgroud)

有人知道如何解决这个问题吗?我在网上找到的资源很少,而且都没有解决问题。

SWa*_*ter 10

我向 Heroku 提出了支持请求,答案是重置 Git 存储库

heroku plugins:install heroku-repo
heroku repo:reset -a <app-name>
Run Code Online (Sandbox Code Playgroud)

完成此操作后,我的部署没有任何问题