Invalid torrent specified

Sonarr version (exact version): 2.0.0.3953
Mono version (if Sonarr is not running on Windows): 4.2.3
OS: Ubuntu 14.04 Server
Debug logs (posted to hastebin or similar):
Description of issue:

I was wondering if anyone could shine some light on this error, I assume its a problem coming from the tracker, however I’m not sure how to narrow it down enough to give them a bug report.

MonoTorrent.TorrentException: Invalid torrent file specified ---> MonoTorrent.BEncoding.BEncodingException: Could not parse  into a number ---> System.FormatException: Input string was not in a correct format.
  at System.Number.StringToNumber (System.String str, NumberStyles options, System.NumberBuffer& number, System.Globalization.NumberFormatInfo info, Boolean parseDecimal) <0x41d21020 + 0x000fb> in <filename unknown>:0 
  at System.Number.ParseInt64 (System.String value, NumberStyles options, System.Globalization.NumberFormatInfo numfmt) <0x41df5f10 + 0x00097> in <filename unknown>:0 
  at System.Int64.Parse (System.String s) <0x41df5ed0 + 0x00023> in <filename unknown>:0 
  at MonoTorrent.Torrent.LoadInternal (MonoTorrent.BEncoding.BEncodedDictionary torrentInformation) <0x4215b300 + 0x0084b> in <filename unknown>:0 
  --- End of inner exception stack trace ---
  at MonoTorrent.Torrent.LoadInternal (MonoTorrent.BEncoding.BEncodedDictionary torrentInformation) <0x4215b300 + 0x00b3b> in <filename unknown>:0 
  --- End of inner exception stack trace ---
  at MonoTorrent.Torrent.Load (System.IO.Stream stream, System.String path) <0x42158c30 + 0x0012f> in <filename unknown>:0 
  at MonoTorrent.Torrent.Load (System.Byte[] data) <0x421589e0 + 0x0006b> in <filename unknown>:0 
  at NzbDrone.Core.MediaFiles.TorrentInfo.TorrentFileInfoReader.GetHashFromTorrentFile (System.Byte[] fileContents)     <0x42158990 + 0x00013> in <filename unknown>:0 
  at NzbDrone.Core.Download.TorrentClientBase`1[TSettings].DownloadFromWebUrl (NzbDrone.Core.Parser.Model.RemoteEpisode remoteEpisode, System.String torrentUrl) <0x42158140 + 0x005e0> in <filename unknown>:0 
  at NzbDrone.Core.Download.TorrentClientBase`1[TSettings].Download (NzbDrone.Core.Parser.Model.RemoteEpisode remoteEpisode) <0x42157d90 + 0x002ff> in <filename unknown>:0 
  at NzbDrone.Core.Download.DownloadService.DownloadReport (NzbDrone.Core.Parser.Model.RemoteEpisode remoteEpisode) <0x421572a0 + 0x00514> in <filename unknown>:0 
  at NzbDrone.Api.Indexers.ReleaseModule.DownloadRelease (NzbDrone.Api.Indexers.ReleaseResource release) <0x421570d0 + 0x000bd> in <filename unknown>:0 
  at NzbDrone.Api.Indexers.ReleaseModule.<.ctor>b__0 (System.Object x) <0x4214f2f0 + 0x0002b> in <filename unknown>:0 
  at (wrapper dynamic-method) System.Object:CallSite.Target (System.Runtime.CompilerServices.Closure,System.Runtime.CompilerServices.CallSite,System.Func`2<object, object>,object)
  at Nancy.Routing.Route+<>c__DisplayClass4.<Wrap>b__3 (System.Object parameters, CancellationToken context) <0x41ff2fd0 + 0x0013b> in <filename unknown>:0

Edit: a note to make is that it is trying to parse the whitespace character, space (’ ') into a number, with no spaces in the URL (nor white-space replacers)

Running mono with the --debug switch will give more info on where its happening in Sonarr and trace logs may indicate where which URL Sonarr is pulling the torrent from. Its possible the tracker is returning something other than a torrent (some use CloudFlare DDoS protection that returns and HTML page instead of a torrent).

Awesome, I’ll check it out

This topic was automatically closed 60 days after the last reply. New replies are no longer allowed.