votingworks / arlo

GNU Affero General Public License v3.0
143 stars 26 forks source link

Downloading large files times out #1616

Open jonahkagan opened 2 years ago

jonahkagan commented 2 years ago

This is most likely to happen when a jurisdiction uploads a large CVR file and then tries to download it again (or when the AA tries to download it).

Currently the server proxies the download to S3, but if the request takes too long (>30s) it gets timed out by Heroku. We may need to rethink this (e.g. maybe use direct S3 download links)

mattroe commented 2 years ago

@jonahkagan do we have data on how often AAs download the CVR once uploaded?

jonahkagan commented 2 years ago

No, we don't really have data on this. I don't think it's super common unless something goes wrong in the audit. @ginvdr might have a better intuition.

ginvdr commented 2 years ago

I don't think it's use often now. Nevada and Washington would be the users who would. CVRs aren't likely to have errors so I think the more likely reason an audit admin would download the file is to share it publicly. Washington cannot share CVRs publicly and Nevada hasn't progressed far enough in the process to do so.