Your ROOT_URL in app.ini is https://git.cloudchain.link/ but you are visiting https://dash.bss.nz/open-source-mirrors/jellyfin/commit/160855ffe9aed4f2c379646081bbe1ac642fab70
You should set ROOT_URL correctly, otherwise the web may not work correctly.
1 changed files with
10 additions and
10 deletions
@ -122,17 +122,17 @@ public class ExceptionMiddleware
private static int GetStatusCode ( Exception ex )
{
switch ( ex )
return ex switch
{
case ArgumentException _ : return StatusCodes . Status400BadRequest ;
case AuthenticationException _ : return StatusCodes . Status401Unauthorized ;
case SecurityException _ : return StatusCodes . Status403Forbidden ;
case DirectoryNotFoundException _ :
case FileNotFoundException _ :
case ResourceNotFoundException _ : return StatusCodes . Status404NotFound ;
case MethodNotAllowedException _ : return StatusCodes . Status405MethodNotAllowed ;
default : return StatusCodes . Status500InternalServerError ;
}
ArgumentException = > StatusCodes . Status400BadRequest ,
AuthenticationException = > StatusCodes . Status401Unauthorized ,
SecurityException = > StatusCodes . Status403Forbidden ,
DirectoryNotFoundException = > StatusCodes . Status404NotFound ,
FileNotFoundException = > StatusCodes . Status404NotFound ,
ResourceNotFoundException = > StatusCodes . Status404NotFound ,
MethodNotAllowedException = > StatusCodes . Status405MethodNotAllowed ,
_ = > StatusCodes . Status500InternalServerError
} ;
}
private string NormalizeExceptionMessage ( string msg )