I had no problems in the past with the deployment to Heroku via HTTP transport, but recently I am unable to deploy.
This is the error I am getting:
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
I've tried switching to SSH transport and it works, but Heroku is retiring SSH transport, so I need to figure out this error.
Also I tried to change the postBuffer according to atlassian's page, but I got the error again.
git config --global http.postBuffer 157286400
Does anybody have an idea how to solve this? There are very few resources on the web that I found, and none of them are fixing the problem.
I raised a support ticket to Heroku and the answer was to reset the Git repo
heroku plugins:install heroku-repo
heroku repo:reset -a <app-name>
After I did this, I had no problems with the deployment