Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
tmp $ torrent 'magnet:?xt=ec4595e48385e42cf9eb3acad02bf3a5928614ab&dn=whatever&tr=udp%3A%2F%2F127.0.0.1%3A9000'
buffer.js:85
throw new TypeError('must start with number, buffer, array or string');
^
TypeError: must start with number, buffer, array or string
at fromObject (buffer.js:85:11)
at new Buffer (buffer.js:53:3)
at toBuffer (/home/substack/projects/torrent/node_modules/peer-wire-swarm/index.js:16:42)
at new Swarm (/home/substack/projects/torrent/node_modules/peer-wire-swarm/index.js:143:18)
at Swarm (/home/substack/projects/torrent/node_modules/peer-wire-swarm/index.js:131:39)
at torrentStream (/home/substack/projects/torrent/node_modules/torrent-stream/index.js:75:14)
at module.exports (/home/substack/projects/torrent/index.js:4:16)
at /home/substack/projects/torrent/cli.js:135:14
at getSource (/home/substack/projects/torrent/cli.js:204:39)
at Object.<anonymous> (/home/substack/projects/torrent/cli.js:134:3)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.