Documentation at Build an app with Asana File says:
The 100MB size limit on attachments in Asana is enforced on this endpoint.
Experiments showed that:
- anything bigger then 50Mb is producing
413 Request Entity Too Large
on nginx level. - files under 50Mb make backend crash:
Backend exited unexpectedly
. - files around 32Mb sometimes succeed, when failing extra header is seen in error:
SERIOUS: Exception reached the event loop. Don't just fix the immediate cause, fix the reason it wasn't caught too please!
.
Either documentation should be updated, or limit should be withdrawn and error in backend corrected.
Sample 1:
POST /api/1.0/tasks/123456789012345/attachments HTTP/1.1
Host: app.asana.com
Content-Type: multipart/form-data; boundary=----------------------------123456789abc
Content-Length: 52428801
HTTP/1.1 413 Request Entity Too Large
Sample 2:
POST /api/1.0/tasks/123456789012345/attachments HTTP/1.1
Host: app.asana.com
Content-Type: multipart/form-data; boundary=----------------------------123456789abc
Content-Length: 52428800
HTTP/1.1 500 Internal Server Error
Content-Type: text/plain; charset=UTF-8
X-Asana-Preferred-Release-Revision: 20170713_201158_ff4268a5d805343b36edf88b7baa137f2d93a05b
X-Robots-Tag: none
Backend exited unexpectedly
Sample 3a:
POST /api/1.0/tasks/123456789012345/attachments HTTP/1.1
Host: app.asana.com
Content-Type: multipart/form-data; boundary=----------------------------123456789abc
Content-Length: 33554432
HTTP/1.1 500 Internal Server Error
Content-Type: text/plain; charset=UTF-8
SERIOUS: Exception reached the event loop. Don't just fix the immediate cause, fix the reason it wasn't caught too please!
X-Asana-Preferred-Release-Revision: 20170713_201158_ff4268a5d805343b36edf88b7baa137f2d93a05b
X-Robots-Tag: none
Backend exited unexpectedly
Sample 3b:
POST /api/1.0/tasks/123456789012345/attachments HTTP/1.1
Host: app.asana.com
Content-Type: multipart/form-data; boundary=----------------------------123456789abc
Content-Length: 33554432
HTTP/1.1 200 OK
Content-Type: application/json; charset=UTF-8
Cache-Control: no-store
Pragma: no-cache
X-Asana-Content-String-Length: 53
Set-Cookie: TooBusyRedirectCount=0
X-Server-Name: prod-ws151.ec2
X-Asana-Preferred-Release-Revision: 20170713_201158_ff4268a5d805343b36edf88b7baa137f2d93a05b
X-Robots-Tag: none
Strict-Transport-Security: max-age=31536000; includeSubDomains
Datacenter-Time-End: 1499990754.863
X-LoadBalancer: prod-lb001.ec2
{"data":{"id":234567890123456,"name":"file1234.ext"}}