Skip to content

Error: Offset is out of bounds #4

Closed
@green13

Description

@green13

Hello.
I use webtorrent in node, os windows 8.1 and got error:

fs.js:620 Uncaught Error: Offset is out of bounds
    fs.read @ fs.js:620
    onread  @ C:\Projects\launcher\src\main_app\node_modules\random-access-file\index.js:84
    wrapper @ fs.js:614

I can wrap fs.read in try/catch and it solves the problem:

try {
  fs.read(self.fd, buf, buf.length - offset, length, offset, onread)
}
catch (e) {
  onread(e)
}

How better to solve this problem?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions