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

Error duplicated torrents #273

Closed
IngenieroFiestero opened this issue Feb 19, 2015 · 10 comments
Closed

Error duplicated torrents #273

IngenieroFiestero opened this issue Feb 19, 2015 · 10 comments

Comments

@IngenieroFiestero
Copy link

@IngenieroFiestero IngenieroFiestero commented Feb 19, 2015

events.js:72
throw er; // Unhandled 'error' event
^
Error: Swarm listen error: There is already a swarm with infoHash 19a6ce37f136e6fda1f0e18efee768c42ec38f6a listening on port 33294

@feross

This comment has been minimized.

Copy link
Member

@feross feross commented Feb 20, 2015

Please share the code you wrote that caused this error.

@IngenieroFiestero

This comment has been minimized.

Copy link
Author

@IngenieroFiestero IngenieroFiestero commented Feb 20, 2015

i'm working in a simple torrent client for raspberry pi, but i have a problem when i try to put the same torrent twice

@astro

This comment has been minimized.

Copy link
Contributor

@astro astro commented Feb 20, 2015

Very off-topic but I'm interested in targeting the Raspberry Pi for the following reasons:

  • Due to the ongoing hype, there are now millions of unused Pis on this planet.
  • Specialized appliances let you dictate the platform, allowing to care just about Linux.
  • Low-power devices save the energy bill when seeding longer.

Is this going to be a client with a native front-end like Popcorn-Time? I recently created a webtorrent branch there. Or is it going to be a web app to be used by a remote computer? Perhaps you can help me developing Bitorama

@IngenieroFiestero

This comment has been minimized.

Copy link
Author

@IngenieroFiestero IngenieroFiestero commented Feb 20, 2015

In my apartament needed a server to download torrent files to not have all
computers turned on while consuming bandwidth and electricity. The best way
was to use a raspberry pi does not consume a lot of energy and allows
access from the browser to download files from any device connected to the
network.
It would be interesting accessed from anywhere. Eg download a file from the
bar, whe u get home is fully downloaded.
Sorry but im trying to improove my english.
El 20/02/2015 21:05, "Astro" notifications@github.com escribió:

Very off-topic but I'm interested in targeting the Raspberry Pi for the
following reasons:

  • Due to the ongoing hype, there are now millions of unused Pis on
    this planet.
  • Specialized appliances let you dictate the platform, allowing to
    care just about Linux.
  • Low-power devices save the energy bill when seeding longer.

Is this going to be a client with a native front-end like Popcorn-Time? I
recently created a webtorrent branch there. Or is it going to be a web app
to be used by a remote computer? Perhaps you can help me developing
Bitorama https://github.com/astro/bitorama


Reply to this email directly or view it on GitHub
#273 (comment).

@astro

This comment has been minimized.

Copy link
Contributor

@astro astro commented Feb 20, 2015

gustaria que tu pruebas Bitorama :-)

@feross The code is probably at https://github.com/IngenieroFiestero/piTorrent

@feross

This comment has been minimized.

Copy link
Member

@feross feross commented Feb 21, 2015

@IngenieroFiestero You can't add the same torrent to the client twice – it's forbidden since it makes no sense. What are you trying to do?

@IngenieroFiestero

This comment has been minimized.

Copy link
Author

@IngenieroFiestero IngenieroFiestero commented Feb 21, 2015

If a client or two clients adds the same torrent, the server crashes. Im
searching bugs.
El 21/02/2015 02:59, "Feross Aboukhadijeh" notifications@github.com
escribió:

@IngenieroFiestero https://github.com/IngenieroFiestero You can't add
the same torrent to the client twice – it's forbidden since it makes no
sense. What are you trying to do?


Reply to this email directly or view it on GitHub
#273 (comment).

@Krizz

This comment has been minimized.

Copy link

@Krizz Krizz commented Mar 6, 2015

There should be a way to handle those kind of errors more elegantly when they happen. Something like...

client.add(magnetUri, function (err, torrent) {
  if (err) {
    //handle error
  }
});
@feross

This comment has been minimized.

Copy link
Member

@feross feross commented Mar 9, 2015

You can detect errors on the webtorrent client by adding an 'error' handler:

client.on('error', function (err) {
  console.error(err.stack)
})
@feross feross closed this Apr 11, 2015
@feross

This comment has been minimized.

Copy link
Member

@feross feross commented Apr 11, 2015

@IngenieroFiestero This issue is fixed in bittorrent-swarm v2.0.1.

@lock lock bot locked as resolved and limited conversation to collaborators May 6, 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
4 participants
You can’t perform that action at this time.