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

10,777

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!

Share:
10,777
陳冠霖
Author by

陳冠霖

Updated on June 04, 2022

Comments

  • 陳冠霖
    陳冠霖 almost 2 years

    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.

  • 陳冠霖
    陳冠霖 over 5 years
    thank you for your answering,I thought no one will answer me,so I hadn't open the stackoverflow whatever thank you
  • Dan Grenfell
    Dan Grenfell over 5 years
    You're welcome. If you feel my response answered your question, please mark it as the answer, it'd help me too. :)
  • Martin Taleski
    Martin Taleski over 2 years
    I have the same thing, but my slug size is 220 MB