Welcome to the new Box Support website. Check out all the details here on what’s changed.

Download fails immediately after successful upload

New post

Comments

1 comment

  • LoCortes

    Good morning ,

     

    it seems that the fact that a document won't be available just right after uploading it is something indicated on BOX api reference:

     

    If the file is not ready to be downloaded (i.e. in the case where the file was uploaded immediately before the download request), a response with an HTTP status of 202 Accepted will be returned with a Retry-After header indicating the time in seconds after which the file will be available for the client to download.

     The strange thing is that you receive a 404 and you should receive a 202. 

     

    The 3 seconds sleep you indicate probably are not enough as per what explains the time is indicated on a header variable.

     

    I understand that the document is processed, stored in several nodes, and that will take several seconds before it is allowed to be retrieved.

     

    Thanks

    0
    Comment actions Permalink

Please sign in to leave a comment.