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 parse some torrent meta files #189

Open
mepanko91 opened this issue Jul 11, 2024 · 0 comments
Open

Unable to parse some torrent meta files #189

mepanko91 opened this issue Jul 11, 2024 · 0 comments

Comments

@mepanko91
Copy link

mepanko91 commented Jul 11, 2024

What version of this package are you using?
"parse-torrent": "^11.0.17"

What operating system, Node.js, and npm version?
Win 10
Node v20.11.0
npm v10.5.2

What happened?
Unable to parse some torrent files

What did you expect to happen?
I want to know what is wrong with torrent meta file

Are you willing to submit a pull request to fix this bug?
Not currently

Following error is thrown:

Error
  time: '11/7/2024, 10:55:10 am',
  info: TypeError [ERR_INVALID_ARG_TYPE]: The first argument must be of type string or an instance of Buffer, ArrayBuffer, or Array or an Array-like Object. Received type number (117)
      at Function.from (node:buffer:324:9)
      at arr2text (file:///.../tests/node_modules/uint8-util/_node.js:10:17)
      at file:///.../tests/node_modules/parse-torrent/index.js:158:30
      at Uint8Array.forEach (<anonymous>)
      at file:///.../tests/node_modules/parse-torrent/index.js:157:12
      at Array.forEach (<anonymous>)
      at decodeTorrentFile (file:///.../tests/node_modules/parse-torrent/index.js:156:30)
      at async parseTorrent (file:///.../tests/node_modules/parse-torrent/index.js:35:12)
    code: 'ERR_INVALID_ARG_TYPE'

Here are multiple links to same torrent meta file:
https://uploadnow.io/f/9KMwb4J
https://fastupload.io/74d3976eaf5289bf
https://filebin.net/ha0z336qtj01vge8/37165be8db3ad9c6dd76647b3c6be3c4cf76feb7.torrent

This torrent meta file is opening without issue in utorrent and Qbittorrent

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant