mirror of
https://github.com/Prowlarr/Prowlarr
synced 2025-12-30 12:27:09 +01:00
Test eligibility of the first request in AvistazBase
This commit is contained in:
parent
40a932cd28
commit
8a891d07cf
1 changed files with 4 additions and 6 deletions
|
|
@ -93,12 +93,10 @@ protected override async Task<ValidationFailure> TestConnection()
|
|||
var jsonResponse = new HttpResponse<AvistazErrorResponse>(ex.Response);
|
||||
return new ValidationFailure(string.Empty, jsonResponse.Resource?.Message ?? "Unauthorized request to indexer");
|
||||
}
|
||||
else
|
||||
{
|
||||
_logger.Warn(ex, "Unable to connect to indexer");
|
||||
|
||||
return new ValidationFailure(string.Empty, "Unable to connect to indexer, check the log above the ValidationFailure for more details. " + ex.Message);
|
||||
}
|
||||
_logger.Warn(ex, "Unable to connect to indexer");
|
||||
|
||||
return new ValidationFailure(string.Empty, "Unable to connect to indexer, check the log above the ValidationFailure for more details. " + ex.Message);
|
||||
}
|
||||
catch (Exception ex)
|
||||
{
|
||||
|
|
@ -107,7 +105,7 @@ protected override async Task<ValidationFailure> TestConnection()
|
|||
return new ValidationFailure(string.Empty, "Unable to connect to indexer, check the log above the ValidationFailure for more details");
|
||||
}
|
||||
|
||||
return null;
|
||||
return await base.TestConnection();
|
||||
}
|
||||
|
||||
private async Task<string> GetToken()
|
||||
|
|
|
|||
Loading…
Reference in a new issue