Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

file.createReadStream([opts]) yields "Uncaught Error: invalid selection" #794

Closed
triangle42 opened this issue May 9, 2016 · 3 comments
Closed

Comments

@triangle42
Copy link

@triangle42 triangle42 commented May 9, 2016

  • WebTorrent version: 0.91.4
  • Browser name/version (if using WebTorrent in the browser): 50.0.2661.94 m

file.createReadStream([opts]) yields "Uncaught Error: invalid selection".
opts === {start: 0, end: 129241752} works
opts === {start: 1008813135, end: 129241752} yields "Uncaught Error: invalid selection".

Is there a lower limit on the difference between start and end?
If yes, please remove it.

@DiegoRBaquero

This comment has been minimized.

Copy link
Member

@DiegoRBaquero DiegoRBaquero commented May 9, 2016

See torrent.js#L758

In your opts start > end, that's why.

@triangle42

This comment has been minimized.

Copy link
Author

@triangle42 triangle42 commented May 10, 2016

That's right. Thank you.

I did not expect that from my program.

@triangle42 triangle42 closed this May 10, 2016
@lock

This comment has been minimized.

Copy link

@lock lock bot commented May 4, 2018

This thread has been automatically locked because it has not had recent activity. To discuss futher, please open a new issue.

@lock lock bot locked as resolved and limited conversation to collaborators May 4, 2018
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Linked pull requests

Successfully merging a pull request may close this issue.

None yet
2 participants
You can’t perform that action at this time.