Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

error: RPC failed; HTTP 504 curl 22 The requested URL returned error: 504 GATEWAY_TIMEOUT

Tags:

git

push

heroku

I'm a Taiwanese student and my english grammarly is not good ,but I can understand what you say. I want to use git to push my file(3GB) to heroku but failed.

I tried.

git config --global http.postBuffer 800000000.

git config --add remote.heroku.proxy "".

git config --global http.proxy ''<< 

When I git push heroku master and then it showed fatal:

unable to access 'https://git.heroku.com/pushboss.git/': Could not resolve proxy: ''.

so I have to type git config --global --unset http.proxy.

this is my error message:

error: RPC failed; HTTP 504 curl 22 The requested URL returned error: 504 GATEWAY_TIMEOUT.

fatal: The remote end hung up unexpectedly.

like image 292
陳冠霖 Avatar asked Oct 28 '25 18:10

陳冠霖


1 Answers

Heroku's file system has a 500MB limit for your app and its components. Whilst it is possible to store static files within that, you are encouraged to use third party storage (such as AWS S3 / Azure Blobs etc) for anything other than code, such as images, video, and other media.

I would guess that your git errors are due to the 3GB file far exceeding the 500MB limit Heroku has for the whole app!

like image 137
Dan Grenfell Avatar answered Oct 30 '25 07:10

Dan Grenfell



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!