video to facebook use this module: https://www.npmjs.com/package/facebook-api-video-upload
It works with files less than 2GB, with files large 2GB, example 2.5GB it show error:
Unhandled rejection RangeError [ERR_INVALID_OPT_VALUE]: The value "2385986836" is invalid for option "size"
at Function.allocUnsafe (buffer.js:275:3)
at Function.concat (buffer.js:460:23)
at concat (/var/upfb/node/node_modules/stream-to-promise/index.js:26:21)
at <anonymous>
at process._tickCallback (internal/process/next_tick.js:118:7)
I try to search with google, but get no information
How can I fix it?
I'm not sure how to increase your buffer size, but you should probably also be increasing your heap size http://prestonparry.com/articles/IncreaseNodeJSMemorySize/
Обсуждают сегодня