Skip to content

Cdn cache video out of size #507

@Andywugh

Description

@Andywugh

dadi-cli version: 3.6.0
node version: 10.15

stdout error:

⠋ Starting @dadi/cdn...
[2019-07-25 22:17:07.221] [ERROR]  RangeError [ERR_INVALID_OPT_VALUE]: The value "2190991286" is invalid for option "size"
    at Function.allocUnsafe (buffer.js:291:3)
    at Function.concat (buffer.js:473:23)
    at IncomingMessage.res.on (/Users/andywu/test/cdn_data/node_modules/@dadi/cdn/dadi/lib/storage/http.js:68:62)
    at IncomingMessage.emit (events.js:187:15)
    at IncomingMessage.EventEmitter.emit (domain.js:441:20)
    at endReadableNT (_stream_readable.js:1094:12)
    at process._tickCallback (internal/process/next_tick.js:63:19) 'Uncaught Exception thrown'
[2019-07-25 22:17:07.223] [ERROR]  Trace
    at process.on.on.err (/Users/andywu/test/cdn_data/node_modules/@dadi/cdn/dadi/lib/index.js:31:13)
    at process.emit (events.js:187:15)
    at process.EventEmitter.emit (domain.js:441:20)
    at processEmit [as emit] (/Users/andywu/test/cdn_data/node_modules/signal-exit/index.js:155:32)
    at process._fatalException (internal/bootstrap/node.js:494:27)
⠼ Starting @dadi/cdn...[2019-07-25 22:17:07.488] [LOG]    Worker 11357 died with code: 1, and signal: null
[2019-07-25 22:17:07.488] [LOG]    Starting a new worker
⠴ Starting @dadi/cdn...[2019-07-25 22:17:07.628] [LOG]    Worker 11582 is online
⠹ Starting @dadi/cdn...[2019-07-25 22:17:13.124] [LOG]    Process 11582 is listening for incoming requests
✔ Started DADI CDN
@ http://0.0.0.0:8080

When I cache a video of 2.2G, it will report the above error.Is there a file size limit in the code?
Or other problems?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions