ArgumentOutOfRangeException in TorrentParser.CreateTorrent()
See original GitHub issueParsing a specific torrent file fails with ArgumentOutOfRangeException:
System.ArgumentOutOfRangeException: Value to add was out of range.
Parameter name: value
at System.DateTime.Add(Double value, Int32 scale)
at BencodeNET.Objects.BNumber.op_Implicit(BNumber number)
at BencodeNET.Parsing.TorrentParser.CreateTorrent(BDictionary data)
at BencodeNET.Parsing.BencodeParser.Parse[T](BencodeStream stream)
at BencodeNET.Parsing.BencodeParser.Parse[T](Byte[] bytes)
qbittorent opens file without any errors or warnings.
Please find the torrent file in question attached.
Issue Analytics
- State:
- Created 6 years ago
- Comments:5 (3 by maintainers)
Top Results From Across the Web
dotnet run gives ArgumentOutOfRangeException error at ...
I installed .NET 6.0.1 SDK, and turned out that I cannot use command dotnet run at all, because it keeps giving me ArgumentOutOfRangeException...
Read more >ArgumentOutOfRangeException Class (System)
The exception that is thrown when the value of an argument is outside the allowable range of values as defined by the invoked...
Read more >Exception thrown: System.ArgumentOutOfRangeException
I am following a Youtube video tutorial, so it should be straightforward with everything working since someone already worked out the errors....
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
The issue was the creation date timestamp being in milliseconds instead of seconds which it should be according to the specification.
I’ve added support for this in v2.2.4, which should be available on NuGet shortly.
Actually it’s not even microseconds, it just seems to be invalid.
2,2.5 should be available soon and will just return epoch (1970-01-01) if the timestamp is not in either seconds or milliseconds.