Repository navigation
/api/config http 500 error #530
Luyaochen1
started this conversation in
General
Replies: 1 comment 7 replies
|
Hi @Luyaochen1 , thanks for your question. My first thought is that this is almost certainly a problem with the API communicating with the Leaf app database. Can you confirm that the database is up and running? |
7 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
I am trying the test on local machine with docker followed the instruction at https://leafdocs.rit.uw.edu/development_and_testing/testing/.
The API server is up with default setup ( Debug output) . But i got the below error looks like it was still looking for authentication.
The default set is "UNSECURED" for Authentication and Authorization.
curl http://localhost:5001/api/config
System.NullReferenceException: Object reference not set to an instance of an object.
at API.Controllers.ConfigController.Get() in /app/API/Controllers/ConfigController.cs:line 55
at lambda_method(Closure , Object , Object[] )
at Microsoft.Extensions.Internal.ObjectMethodExecutor.Execute(Object target, Object[] parameters)
at Microsoft.AspNetCore.Mvc.Infrastructure.ActionMethodExecutor.SyncObjectResultExecutor.Execute(IActionResultTypeMapper mapper, ObjectMethodExecutor executor, Object controller, Object[] arguments)
at Microsoft.AspNetCore.Mvc.Infrastructure.ControllerActionInvoker.InvokeActionMethodAsync()
at Microsoft.AspNetCore.Mvc.Infrastructure.ControllerActionInvoker.Next(State& next, Scope& scope, Object& state, Boolean& isCompleted)
at Microsoft.AspNetCore.Mvc.Infrastructure.ControllerActionInvoker.InvokeNextActionFilterAsync()
--- End of stack trace from previous location where exception was thrown ---
at Microsoft.AspNetCore.Mvc.Infrastructure.ControllerActionInvoker.Rethrow(ActionExecutedContextSealed context)
at Microsoft.AspNetCore.Mvc.Infrastructure.ControllerActionInvoker.Next(State& next, Scope& scope, Object& state, Boolean& isCompleted)
at Microsoft.AspNetCore.Mvc.Infrastructure.ControllerActionInvoker.InvokeInnerFilterAsync()
--- End of stack trace from previous location where exception was thrown ---
at Microsoft.AspNetCore.Mvc.Infrastructure.ResourceInvoker.g__Awaited|24_0(ResourceInvoker invoker, Task lastTask, State next, Scope scope, Object state, Boolean isCompleted)
at Microsoft.AspNetCore.Mvc.Infrastructure.ResourceInvoker.Rethrow(ResourceExecutedContextSealed context)
at Microsoft.AspNetCore.Mvc.Infrastructure.ResourceInvoker.Next(State& next, Scope& scope, Object& state, Boolean& isCompleted)
at Microsoft.AspNetCore.Mvc.Infrastructure.ResourceInvoker.InvokeFilterPipelineAsync()
--- End of stack trace from previous location where exception was thrown ---
at Microsoft.AspNetCore.Mvc.Infrastructure.ResourceInvoker.g__Logged|17_1(ResourceInvoker invoker)
at Microsoft.AspNetCore.Builder.RouterMiddleware.Invoke(HttpContext httpContext)
at API.Options.StartupExtensions.InvalidatedTokenMiddleware.Invoke(HttpContext context) in /app/API/Options/StartupExtensions.TokenInvalidated.cs:line 57
at API.Middleware.Federation.RejectInvalidFederatedUserMiddleware.InvokeAsync(HttpContext context, RequestDelegate next) in /app/API/Middleware/Federation/RejectInvalidFederatedUserMiddleware.cs:line 46
at Microsoft.AspNetCore.Builder.UseMiddlewareExtensions.<>c__DisplayClass5_1.<b__1>d.MoveNext()
--- End of stack trace from previous location where exception was thrown ---
at API.Middleware.Logging.UserContextLoggingMiddleware.InvokeAsync(HttpContext context, RequestDelegate next) in /app/API/Middleware/Logging/UserContextLoggingMiddleware.cs:line 28
at Microsoft.AspNetCore.Builder.UseMiddlewareExtensions.<>c__DisplayClass5_1.<b__1>d.MoveNext()
--- End of stack trace from previous location where exception was thrown ---
at Microsoft.AspNetCore.Authentication.AuthenticationMiddleware.Invoke(HttpContext context)
at Microsoft.AspNetCore.Diagnostics.DeveloperExceptionPageMiddleware.Invoke(HttpContext context)
All reactions