Uploading File - 500 Internal Error - File Size / Timeout Related

25 views
Skip to first unread message

Alex Vallo

unread,
Dec 10, 2021, 9:10:52 AM12/10/21
to Assembla API Development
API Support,

For reference, I'm going off of API documentation: 

https://api-docs.assembla.cc/content/ref/documents_create.html

Does the bigfiles.assembla.com API have a max file size limit? I noticed the api.assembla.com has a limit of 500MB, but the bigfiles doesn’t mention a file size limit.

Also, I’m consistently seeing a status of 500 (Internal Server Error) being returned after 2 minutes +/- 6 seconds with a file size of 840MB. 

$curl -i --connect-timeout 900 --max-time 900 -H "X-Api-Key: ************" -H "X-Api-Secret: *****************" -F "document[file]=@spike.txt" -F "folder_name=SpikeFolder" https://bigfiles.assembla.com/v1/spaces/<space_name>/documents.xml

HTTP/1.1 100 Continue

 

HTTP/1.1 500 Internal Server Error

Server: nginx

Date: Fri, 10 Dec 2021 13:51:35 GMT

Content-Type: application/xml; charset=utf-8

Content-Length: 131

Connection: keep-alive

Keep-Alive: timeout=60

X-Request-Id: 05e82537-48e9-4b4a-ace7-8bb253b73f22

X-Runtime: 87.837378

Status: 500 Internal Server Error

 

<?xml version="1.0" encoding="UTF-8"?>

<hash>

  <status type="integer">500</status>

  <error>Internal Server Error</error>

</hash>

If I modify the size of the spike.txt file:

  • <100 MB, uploads every time no issues
  • ~400 MB, sometimes succeeds, sometimes fails
  • >800 MB, always fails to upload.
Thanks,
Alex

Reply all
Reply to author
Forward
0 new messages