Your ROOT_URL in app.ini is https://git.cloudchain.link/ but you are visiting https://dash.bss.nz/open-source-mirrors/Readarr/commit/b37fd60b859b771f5dd5415157e133457b045d75
You should set ROOT_URL correctly, otherwise the web may not work correctly.
4 changed files with
39 additions and
3 deletions
@ -33,7 +33,7 @@ function getUrls(state) {
icalUrl += ` tags= ${ tags . toString ( ) } & ` ;
}
icalUrl += ` pastDays= ${ pastDays } &futureDays= ${ futureDays } &apikey= ${ window. Readarr . apiKey } ` ;
icalUrl += ` pastDays= ${ pastDays } &futureDays= ${ futureDays } &apikey= ${ encodeURIComponent( window. Readarr . apiKey ) } ` ;
const iCalHttpUrl = ` ${ window . location . protocol } // ${ icalUrl } ` ;
const iCalWebCalUrl = ` webcal:// ${ icalUrl } ` ;
@ -62,7 +62,7 @@ function Logger(minimumLogLevel) {
}
Logger . prototype . cleanse = function ( message ) {
const apikey = new RegExp ( ` access_token= ${ window. Readarr . apiKey } ` , 'g' ) ;
const apikey = new RegExp ( ` access_token= ${ encodeURIComponent( window. Readarr . apiKey ) } ` , 'g' ) ;
return message . replace ( apikey , 'access_token=(removed)' ) ;
} ;
@ -106,7 +106,7 @@ class SignalRConnector extends Component {
this . connection = new signalR . HubConnectionBuilder ( )
. configureLogging ( new Logger ( signalR . LogLevel . Information ) )
. withUrl ( ` ${ url } ?access_token= ${ window. Readarr . apiKey } ` )
. withUrl ( ` ${ url } ?access_token= ${ encodeURIComponent( window. Readarr . apiKey ) } ` )
. withAutomaticReconnect ( {
nextRetryDelayInMilliseconds : ( retryContext ) => {
if ( retryContext . elapsedMilliseconds > 180000 ) {
@ -0,0 +1,35 @@
using NLog ;
using NzbDrone.Core.Configuration ;
using NzbDrone.Core.Configuration.Events ;
using NzbDrone.Core.Lifecycle ;
using NzbDrone.Core.Localization ;
namespace NzbDrone.Core.HealthCheck.Checks
{
[CheckOn(typeof(ApplicationStartedEvent))]
[CheckOn(typeof(ConfigSavedEvent))]
public class ApiKeyValidationCheck : HealthCheckBase
{
private readonly IConfigFileProvider _configFileProvider ;
private readonly Logger _logger ;
public ApiKeyValidationCheck ( IConfigFileProvider configFileProvider , ILocalizationService localizationService , Logger logger )
: base ( localizationService )
{
_configFileProvider = configFileProvider ;
_logger = logger ;
}
public override HealthCheck Check ( )
{
if ( _configFileProvider . ApiKey . Length < 20 )
{
_logger . Warn ( "Please update your API key to be at least 20 characters long. You can do this via settings or the config file" ) ;
return new HealthCheck ( GetType ( ) , HealthCheckResult . Warning , _localizationService . GetLocalizedString ( "ApiKeyValidationHealthCheckMessage" ) , "#invalid-api-key" ) ;
}
return new HealthCheck ( GetType ( ) ) ;
}
}
}
@ -33,6 +33,7 @@
"AnalyticsEnabledHelpTextWarning" : "Requires restart to take effect" ,
"AnyEditionOkHelpText" : "Readarr will automatically switch to the edition best matching downloaded files" ,
"ApiKeyHelpTextWarning" : "Requires restart to take effect" ,
"ApiKeyValidationHealthCheckMessage" : "Please update your API key to be at least 20 characters long. You can do this via settings or the config file" ,
"AppDataDirectory" : "AppData directory" ,
"AppDataLocationHealthCheckMessage" : "Updating will not be possible to prevent deleting AppData on Update" ,
"ApplicationURL" : "Application URL" ,