if(ex.Response.Content.Contains("Query successful, but no results in the configured categories were returned from your indexer.",StringComparison.InvariantCultureIgnoreCase))
{
_logger.Error(ex,"No Results in configured categories. See FAQ Entry: Prowlarr will not sync X Indexer to App");
break;
}
_logger.Error(ex,"Invalid Request");
break;
caseHttpStatusCode.SeeOther:
_logger.Error(ex,"App returned redirect and is invalid. Check App URL");
break;
caseHttpStatusCode.NotFound:
_logger.Error(ex,"Remote indexer not found");
break;
default:
_logger.Error(ex,"Unexpected response status code: {0}",ex.Response.StatusCode);
throw;
}
}
catch(JsonReaderExceptionex)
{
_logger.Error(ex,"Unable to parse JSON response from application");
throw;
}
catch(Exceptionex)
{
_logger.Error(ex,"Unable to add or update indexer");
if(ex.Response.Content.Contains("Query successful, but no results in the configured categories were returned from your indexer.",StringComparison.InvariantCultureIgnoreCase))
{
_logger.Error(ex,"No Results in configured categories. See FAQ Entry: Prowlarr will not sync X Indexer to App");
break;
}
_logger.Error(ex,"Invalid Request");
break;
caseHttpStatusCode.SeeOther:
_logger.Error(ex,"App returned redirect and is invalid. Check App URL");
break;
caseHttpStatusCode.NotFound:
_logger.Error(ex,"Remote indexer not found");
break;
default:
_logger.Error(ex,"Unexpected response status code: {0}",ex.Response.StatusCode);
throw;
}
}
catch(JsonReaderExceptionex)
{
_logger.Error(ex,"Unable to parse JSON response from application");
throw;
}
catch(Exceptionex)
{
_logger.Error(ex,"Unable to add or update indexer");
if(ex.Response.Content.Contains("Query successful, but no results in the configured categories were returned from your indexer.",StringComparison.InvariantCultureIgnoreCase))
{
_logger.Error(ex,"No Results in configured categories. See FAQ Entry: Prowlarr will not sync X Indexer to App");
break;
}
_logger.Error(ex,"Invalid Request");
break;
caseHttpStatusCode.SeeOther:
_logger.Error(ex,"App returned redirect and is invalid. Check App URL");
break;
caseHttpStatusCode.NotFound:
_logger.Error(ex,"Remote indexer not found");
break;
default:
_logger.Error(ex,"Unexpected response status code: {0}",ex.Response.StatusCode);
throw;
}
}
catch(JsonReaderExceptionex)
{
_logger.Error(ex,"Unable to parse JSON response from application");
throw;
}
catch(Exceptionex)
{
_logger.Error(ex,"Unable to add or update indexer");
if(ex.Response.Content.Contains("Query successful, but no results in the configured categories were returned from your indexer.",StringComparison.InvariantCultureIgnoreCase))
{
_logger.Error(ex,"No Results in configured categories. See FAQ Entry: Prowlarr will not sync X Indexer to App");
break;
}
_logger.Error(ex,"Invalid Request");
break;
caseHttpStatusCode.SeeOther:
_logger.Error(ex,"App returned redirect and is invalid. Check App URL");
break;
caseHttpStatusCode.NotFound:
_logger.Error(ex,"Remote indexer not found");
break;
default:
_logger.Error(ex,"Unexpected response status code: {0}",ex.Response.StatusCode);
throw;
}
}
catch(JsonReaderExceptionex)
{
_logger.Error(ex,"Unable to parse JSON response from application");
throw;
}
catch(Exceptionex)
{
_logger.Error(ex,"Unable to add or update indexer");
if(ex.Response.Content.Contains("Query successful, but no results in the configured categories were returned from your indexer.",StringComparison.InvariantCultureIgnoreCase))
{
_logger.Error(ex,"No Results in configured categories. See FAQ Entry: Prowlarr will not sync X Indexer to App");
break;
}
_logger.Error(ex,"Invalid Request");
break;
caseHttpStatusCode.SeeOther:
_logger.Error(ex,"App returned redirect and is invalid. Check App URL");
break;
caseHttpStatusCode.NotFound:
_logger.Error(ex,"Remote indexer not found");
break;
default:
_logger.Error(ex,"Unexpected response status code: {0}",ex.Response.StatusCode);
throw;
}
}
catch(JsonReaderExceptionex)
{
_logger.Error(ex,"Unable to parse JSON response from application");
throw;
}
catch(Exceptionex)
{
_logger.Error(ex,"Unable to add or update indexer");