atomashpolskiy / bt

BitTorrent library and client with DHT, magnet links, encryption and more
https://atomashpolskiy.github.io/bt/
Apache License 2.0
2.42k stars 381 forks source link

[BUG] Cannot decode torrent due to validation error #229

Open pvishnyakov opened 9 months ago

pvishnyakov commented 9 months ago

Trying to decode the torrent file, getting this error:

bt.BtException: Validation failed for torrent metainfo:
                 1. Standard torrent model: [Wrong type -- expected java.lang.Number, actual: [B]
                 2. Standalone info dictionary model: [properties are mutually exclusive: [[length], [files]];  properties are required: [length, files]; properties are required: [piece length, pieces]]

Other library is able to read this torrent somehow without any issue.

The file is attached. file.zip