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

Unable to seed a file via client #828

Closed
xeoneux opened this issue Jun 7, 2016 · 4 comments
Closed

Unable to seed a file via client #828

xeoneux opened this issue Jun 7, 2016 · 4 comments

Comments

@xeoneux
Copy link

@xeoneux xeoneux commented Jun 7, 2016

  • WebTorrent version: 0.94.3
  • Node.js version: 6.2.1
  • Browser name/version (if using WebTorrent in the browser): Electron 1.2.1

Trying the usage example,

// When user drops files on the browser, create a new torrent and start seeding it!
dragDrop('body', function (files) {
  client.seed(files, function (torrent) {
    console.log('Client is seeding:', torrent.infoHash)
  })
})

.../node_modules/webtorrent/lib/torrent.js:851 Uncaught Error: invalid selection gets thrown

@xeoneux

This comment has been minimized.

Copy link
Author

@xeoneux xeoneux commented Jun 8, 2016

I rechecked and It happens with all my tiny text files but succeeds for larger files. @feross Any solution?

@feross

This comment has been minimized.

Copy link
Member

@feross feross commented Jun 11, 2016

Can you share an example of one such text file?

@xeoneux

This comment has been minimized.

Copy link
Author

@xeoneux xeoneux commented Jun 11, 2016

I tried it again with different files of similar sizes and it worked. Didn't encounter it again! 😄

@xeoneux xeoneux closed this Jun 11, 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.