API request to create zip download working but zipped folder is empty or download url is broken
On several of our web pages we display embedded box files. We are adding functionality for users to download all files on a given page via the Create zip download API endpoint: https://developer.box.com/reference/post-zip-downloads/
We know that the authorization token is working and files are accessible because they appear on the page as embeds. And when making the request to https://api.box.com/2.0/zip_downloads/ we are getting a successful 202 response that provides the expected download url. However, one of three things happens when clicking the download url:
1) a zip is downloaded but trying to unzip it yields a "The archive is empty." alert
2) or I get this "dl.boxcloud.com is currently unable to handle this request HTTP ERROR 500"
3) or I get this response
{"status":404,"type":"error","message":"Resource not found","code":"not_found","context_info":null,"help_url":"http://developers.box.com/docs/#errors","request_id":"7u7i4tt0vne90e6aroqnucsjlg"}
Is there any insight as to why our request yields a successful response but the zip folder is either empty or the url results in an error?
-
Hey jk2189 did you find any solution of this issue?
Post is closed for comments.
Comments
1 comment