Serve: RangeError when serving Large (3.6GB) File

Created on 8 Sep 2016  路  5Comments  路  Source: vercel/serve

node v6.5.0
Serving a 3.6GB File, shows up correctly in browser file list, when I try to download it I get a 500 and micro-list reports:

RangeError: File size is greater than possible Buffer: 0x7fffffff bytes
    at FSReqWrap.readFileAfterStat [as oncomplete] (fs.js:392:11)
good for beginners minor will be implemented

Most helpful comment

This sounds like a good idea: https://github.com/pillarjs/send

All 5 comments

This is most likely caused by reading the file to a buffer:
https://github.com/zeit/micro-list/blob/master/bin/list#L66
https://github.com/zeit/micro-list/blob/master/bin/list#L216
https://github.com/zeit/micro-list/blob/master/bin/list#L229

Might have to build in some stream support if possible. Micro-list is most likely not intended for this usage atm 馃槄

This sounds like a good idea: https://github.com/pillarjs/send

^

@leo working for me, thanks!

Was this page helpful?
0 / 5 - 0 ratings

Related issues

Olexiy665 picture Olexiy665  路  3Comments

ajchambeaud picture ajchambeaud  路  4Comments

fabricionaweb picture fabricionaweb  路  3Comments

donmccurdy picture donmccurdy  路  6Comments

Simran-B picture Simran-B  路  4Comments