You might see that the Dropbox Community team have been busy working on some major updates to the Community itself! So, here is some info on what’s changed, what’s staying the same and what you can expect from the Dropbox Community overall.

Forum Discussion

pp111's avatar
pp111
Explorer | Level 4
3 months ago

Error 500 finishing huge file upload (300GiB+)

Hello,


When a huge file (300GiB+) is uploaded using the upload_session API an "Error 500 Internal Server Error" is received when the last part is uploaded (/upload_session/append with close set).

 

I retry the request but an Error 500 raises again and again. Sometimes, after more than 1 hour retrying the file uploads successfully.


I am using session_type sequential. The same code for smaller files (10GiB) works perfectly.

 

Are you aware of the problem? Is there any workaround?

 

  • Здравко's avatar
    Здравко
    Legendary | Level 20

    Hi pp111,

    Up border of acceptable file size is 350GiB. If your file doesn't cross this border, then maybe this is some glitch of new bug. It may be useful for support people to have multiple x-dropbox-request-id from your failing requests for debugging. Perform some more such requests and post here their id values.

     


    pp111 wrote:

    ... received when the last part is uploaded (/upload_session/append with close set).

    ...


    If you don't upload files in batch, you don't need to close your sessions during last append. The session will be closed automatically during finalization if not yet. You may try use this way as a workaround.

    Good luck.

    • pp111's avatar
      pp111
      Explorer | Level 4

      Thank you.

       

      I confirm that my file is smaller than 350GiB, actually it is exactly 311GiB. And, of course, I have enough free space.

       

      I tried what you suggested and, instead of sending the last part with close set, I directly call upload_session/finish. In this case the last part is uploaded correctly but I get the Error 500 in the upload_session/finish call. I retry the finish call many times, but I get the Error 500 during at least 1 hour after the last part was uploaded.

       

      These are a few x-dropbox-request-id of the failed upload_session/finish calls

       

      14431cf78d2b468f98744e327c85a2b0
      80191115a98b49958eea9826d4980f2b
      ee6951f1f6b2408b857cd877fb725e6b
      30a62bca19c340fa9c5de112a3efd57b
      f6b89a0be6694b76b85d2f23ca7c7eed
      dffd65f0321a489b809cb650607ca382
      a287f969781340adac308b15a53706af
      afe05e3d42d744e784908cffd8f042f8
      703b6a529fec4beda1f11f4335e2dcca
      04a8082ee15d4efa81db292f0cc6dd98
      3548b4f5a10d4a8e90f15fbabfd34372
      eb2d038ab2bf4c1192606d4f87aebf67
      e438955fde704ee79385c500429dee87

       

      Thanks

      • Greg-DB's avatar
        Greg-DB
        Icon for Dropbox Staff rankDropbox Staff

        pp111 Thanks for the samples! We'll look into it and follow up here once we have any updates on this for you.

About Dropbox API Support & Feedback

Node avatar for Dropbox API Support & Feedback

Find help with the Dropbox API from other developers.

5,882 PostsLatest Activity: 3 years ago
325 Following

If you need more help you can view your support options (expected response time for an email or ticket is 24 hours), or contact us on X or Facebook.

For more info on available support options for your Dropbox plan, see this article.

If you found the answer to your question in this Community thread, please 'like' the post to say thanks and to let us know it was useful!