【发布时间】:2021-12-02 21:39:55
【问题描述】:
过去我通过 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
我已经尝试切换到 SSH 传输并且它可以工作,但是 Heroku 正在停用 SSH 传输,所以我需要找出这个错误。
我也尝试根据atlassian's page更改postBuffer,但又报错了。
git config --global http.postBuffer 157286400
有人知道如何解决这个问题吗?我在网上找到的资源很少,而且都没有解决问题。
【问题讨论】:
-
504 是“网关超时”:某处的某个中间人认为您花费的时间过长并切断了您的联系。你只有几个选择:更快——可能实际上不可能——或者对中间人做点什么。找出这个中间人是谁。如果可能的话,将他完全移除。如果不可能,让他延长超时时间。