Your ROOT_URL in app.ini is https://git.cloudchain.link/ but you are visiting https://dash.bss.nz/open-source-mirrors/Radarr/commit/affedd7f9dbb9953fb74cb54cc225e7637706c40?style=unified&whitespace=ignore-all
You should set ROOT_URL correctly, otherwise the web may not work correctly.
1 changed files with
8 additions and
2 deletions
@ -1,6 +1,9 @@
using System ;
using System.Collections.Generic ;
using Microsoft.AspNetCore.Authorization ;
using Microsoft.AspNetCore.Http ;
using Microsoft.AspNetCore.Mvc ;
using NzbDrone.Common.Cache ;
using NzbDrone.Core.Configuration ;
namespace Radarr.Http.Ping
@ -8,19 +11,22 @@ namespace Radarr.Http.Ping
public class PingController : Controller
{
private readonly IConfigRepository _configRepository ;
private readonly ICached < IEnumerable < Config > > _cache ;
public PingController ( IConfigRepository configRepository )
public PingController ( IConfigRepository configRepository , ICacheManager cacheManager )
{
_configRepository = configRepository ;
_cache = cacheManager . GetCache < IEnumerable < Config > > ( GetType ( ) ) ;
}
[AllowAnonymous]
[HttpGet("/ping")]
[Produces("application/json")]
public ActionResult < PingResource > GetStatus ( )
{
try
{
_c onfigRepository. All () ;
_c ache. Get ( "ping" , _c onfigRepository. All , TimeSpan . FromSeconds (5 ) ) ;
}
catch ( Exception )
{