504 Gateway Timeout on large file
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report
I am workign on a web app that manages uploading Revit files to a bucket. I am using the "resumable" oss API method and I have had consistent success uploading files that are within the 1MB - 100MB range. However, I am having problems trying to upload a 195MB Revit model. I am breaking it into 10 20Mb segments. At some point I end up with the following errors:
Failed to load resource: the server responded with a status of 504 (Gateway Timeout)
XMLHttpRequest cannot load https://developer.api.autodesk.com/oss/v1/buckets/jmarr_persistent/objects/Test%2520Model%2520MEP%25202014.rvt/resumable.
No 'Access-Control-Allow-Origin' header is present on the requested resource. Origin 'http://localhost' is therefore not allowed access. The response had HTTP status code 504.
It did upload all the way once, but the status call returned an error stating that it was not a Revit file or was created with an unsupported version (it was created using Revit 2014). All subsequent upload attempts have failed with the above errors.
I did notice that https://developer.autodesk.com/api/view-and-data-api/ page gives the following guideline:
We recommend file sizes of max 150 MB for single file uploads.
I was hoping that using the "/resumable" method and breaking the file into multiple segments would get me around this limitation. Am I going about this the right way?
Thanks,
Jordan