Your ROOT_URL in app.ini is https://git.cloudchain.link/ but you are visiting https://dash.bss.nz/open-source-mirrors/Prowlarr/commit/c4bb1ba69ab35295cb99bdc02c0b0227e8ce31ad
You should set ROOT_URL correctly, otherwise the web may not work correctly.
1 changed files with
14 additions and
2 deletions
@ -6,6 +6,7 @@ using System.Net;
using AngleSharp.Dom ;
using AngleSharp.Html.Parser ;
using AngleSharp.Xml.Parser ;
using Newtonsoft.Json ;
using Newtonsoft.Json.Linq ;
using NLog ;
using NzbDrone.Common.Extensions ;
@ -64,7 +65,7 @@ namespace NzbDrone.Core.Indexers.Definitions.Cardigann
var searchUrlUri = new Uri ( request . Url . FullUri ) ;
if ( request . SearchPath . Response ! = null & & request . SearchPath . Response . Type . Equals ( "json" ) )
if ( request . SearchPath . Response is { Type : "json" } )
{
if ( request . SearchPath . Response ! = null & &
request . SearchPath . Response . NoResultsMessage ! = null & &
@ -73,7 +74,18 @@ namespace NzbDrone.Core.Indexers.Definitions.Cardigann
return releases ;
}
var parsedJson = JToken . Parse ( results ) ;
JToken parsedJson ;
try
{
parsedJson = JToken . Parse ( results ) ;
}
catch ( JsonReaderException ex )
{
_logger . Error ( ex , "Unable to parse JSON response from indexer" ) ;
throw new IndexerException ( indexerResponse , "Error Parsing Json Response" ) ;
}
if ( parsedJson = = null )
{