~cloutier/bird.makeup#19: 
Latest builds broken (exceptions in UsersController.cs)

Hi ~cloutier, hi fellows, since I installed the latest two docker builds, I get exceptions when searching for users in the web interface or following or unfollowing users via ActivityPub:

Error when calling remote_follow (e.g. /users/gretathunberg/remote_follow):

birdsitelive | fail: Microsoft. AspNetCore. Diagnostics.ExceptionHandlerMiddleware [1] birdsitelive An unhandled exception has occurred while executing the request. birdsitelive System. NullReferenceException: Object reference not set to an instance of an object. birdsitelive at BirdsiteLive. Controllers. UsersController. Index(String id) in /home/build/bird.makeup/src/BirdsiteLive/Controllers/UsersController.cs:line 147 birdsitelive at Microsoft. AspNetCore. Mvc. Infrastructure. ActionMethodExecutor. TaskOfIActionResultExecutor. Execute (ActionContext actionContext, IActionResultTypeMapper mapper, ObjectMethodExecutor executor, Obje ct controller, Object[] arguments) birdsitelive birdsitelive at Microsoft.AspNetCore. Mvc. Infrastructure. ControllerActionInvoker. g__Awaited | 12_0 (ControllerActionInvoker invoker, ValueTask'1 actionResultValueTask) at Microsoft. AspNetCore. Mvc. Infrastructure. ControllerActionInvoker. g__Awaited |10_0(ControllerActionInvoker invoker, Task lastTask, State next, Scope scope, Object stat e, Boolean isCompleted) birdsitelive I birdsitelive birdsitelive birdsitelive birdsitelive at Microsoft. AspNetCore.Mvc.Infrastructure.ControllerActionInvoker.Rethrow(ActionExecutedContextSealedcontext) at Microsoft.AspNetCore.Mvc. Infrastructure. ControllerActionInvoker. Next (State& next, Scope& scope, Object& state, Boolean& isCompleted) at Microsoft. AspNetCore. Mvc. Infrastructure. ControllerActionInvoker. InvokeInnerFilterAsync () at Microsoft. AspNetCore. Mvc. Infrastructure. ResourceInvoker. g__Awaited |25_0(ResourceInvoker invoker, Task lastTask, State next, Scope scope, Object state, Boolean isComple ted) birdsitelive I birdsitelive birdsitelive birdsitelive birdsitelive birdsitelive birdsitelive birdsitelive birdsitelive 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 () at Microsoft. AspNetCore. Mvc. Infrastructure. ResourceInvoker. g__Awaited |17_0 (ResourceInvoker invoker, Task task, IDisposable scope) at Microsoft.AspNetCore.Mvc. Infrastructure. ResourceInvoker. g_ _Awaited |17_0(ResourceInvoker invoker, Task task, IDisposable scope) at Microsoft.AspNetCore.Routing. EndpointMiddleware. g__AwaitRequestTask|6_0(Endpoint endpoint, Task requestTask, ILogger logger) at Microsoft.AspNetCore.Authorization.AuthorizationMiddleware. Invoke (HttpContext context) at Microsoft. AspNetCore. Diagnostics. ExceptionHandlerMiddlewareImpl. g__Awaited 8_0 (ExceptionHandlerMiddlewareImpl middleware, HttpContext context, Task task)

Error when following a user:

birdsitelive fail: Microsoft.AspNetCore. Diagnostics. ExceptionHandlerMiddleware [1] birdsitelive An unhandled exception has occurred while executing the request. birdsitelive Microsoft.CSharp.RuntimeBinder.RuntimeBinderException:'BirdsiteLive.ActivityPub.ActivityFollow'doesnotcontainadefinitionfor'object" birdsitelive at CallSite. Target (Closure, CallSite, Object) birdsitelive at BirdsiteLive. Domain. UserService. UndoFollowRequestedAsync (String signature, String method, String path, String queryString, Dictionary 2 requestHeaders, ActivityUndoFollow activity, String body) in /home/build/bird.makeup/src/BirdsiteLive. Domain/UserService.cs:line 239 birdsitelive at BirdsiteLive.Controllers.UsersController.Inbox)in/home/build/bird.makeup/src/BirdsiteLive/Controllers/UsersController.cs:line273 birdsitelive I at Microsoft. AspNetCore. Mvc. Infrastructure. ActionMethodExecutor. TaskOfIActionResultExecutor. Execute (ActionContext actionContext, IActionResultTypeMapper mapper, ObjectMethodExecutor executor, Obje ct controller, Object [] arguments) birdsitelive at Microsoft. AspNetCore.Mvc. Infrastructure. ControllerActionInvoker. g_ Awaited|12_0 (ControllerAction Invoker invoker, ValueTask 1 actionResultValueTask) birdsitelive at Microsoft. AspNetCore. Mvc. Infrastructure. ControllerActionInvoker.&__Awaited |10_0(ControllerActionInvoker invoker, Task lastTask, State next, Scope scope, Object stat e, Boolean isCompleted) birdsitelive birdsitelive birdsitelive I at Microsoft.AspNetCore.Mvc.Infrastructure.ControllerActionInvoker.Rethrow(ActionExecutedContextSealedcontext) at Microsoft.AspNetCore.Mvc. Infrastructure. ControllerActionInvoker. Next (State& next, Scope& scope, Object& state, Boolean& isCompleted) at Microsoft.AspNetCore. Mvc. Infrastructure. ControllerActionInvoker. g _Awaited|13_0 (ControllerAction Invoker invoker, Task lastTask, State next, Scope scope, Object state, Bo olean isCompleted) birdsitelive I at Microsoft. AspNetCore. Mvc. Infrastructure. Resource Invoker. g Awaited | 25_0 (ResourceInvoker invoker, Task lastTask, State next, Scope scope, Object state, Boolean isComple ted) birdsitelive I birdsitelive birdsitelive at Microsoft.AspNetCore.Mvc.Infrastructure.ResourceInvoker.Rethrow(ResourceExecutedContextSealedcontext) at Microsoft.AspNetCore.Mvc. Infrastructure. ResourceInvoker. Next (State& next, Scope& scope, Object& state, Boolean& isCompleted) at Microsoft. AspNetCore. Mvc. Infrastructure. ResourceInvoker. g__Awaited |20_0(ResourceInvoker invoker, Task lastTask, State next, Scope scope, Object state, Boolean isCompl eted) birdsitelive birdsitelive birdsitelive birdsitelive I birdsitelive I at Microsoft.AspNetCore. Mvc. Infrastructure. ResourceInvoker. g Awaited | 17 0(ResourceInvoker invoker, Task task, IDisposable scope) at Microsoft.AspNetCore.Mvc. Infrastructure. ResourceInvoker. ‹InvokeAsync>g Awaited 17 O(Resourceinvoker invoker, Task task, IDisposable scope) at Microsoft. AspNetCore. Routing. EndpointMiddleware. g__AwaitRequestTask|6_0(Endpoint endpoint, Task requestTask, ILogger logger) at Microsoft.AspNetCore…Authorization.AuthorizationMiddleware.Invoke(HttpContextcontext) at Microsoft.AspNetCore. Diagnostics. ExceptionHandlerMiddlewareImpl. g_Awaited|8_0(ExceptionHandlerMiddlewareImpl middleware, HttpContext context, Task task)

Error when unfollowing a user:

birdsitelive fail: Microsoft. AspNetCore. Diagnostics. ExceptionHandlerMiddleware [1] birdsitelive birdsitelive An unhandled exception has occurred while executing the request. Microsoft. CSharp.RuntimeBinder.RuntimeBinderException:'BirdsiteLive.ActivityPub.ActivityFollow'doesnotcontainadefinitionfor'object' birdsitelive at CallSite. Target (Closure, CallSite, Object) birdsitelive at BirdsiteLive. Domain. UserService. UndoFollowRequestedAsync (String signature, String method, String path, String queryString, Dictionary 2 requestHeaders, ActivityUndoFollow activity, String body) in /home/build/bird.makeup/src/BirdsiteLive. Domain/UserService.cs:line 239 birdsitelive at BirdsiteLive.Controllers. UsersController. Inbox() in /home/build/bird.makeup/src/BirdsiteLive/Controllers/UsersController.cs: line 273 birdsitelive at Microsoft.AspNetCore. Mvc. Infrastructure.ActionMethod Executor. TaskOfIActionResultExecutor. Execute(ActionContext actionContext, IActionResultTypeMapper mapper, ObjectMethodExecutor executor, Obje ct controller, Object[] arguments) birdsitelive birdsitelive at Microsoft. AspNetCore. Mvc. Infrastructure. ControllerActionInvoker. g_ Awaited|12_0 (ControllerActionInvoker invoker, ValueTask'1 actionResultValueTask) at Microsoft. AspNetCore. Mvc. Infrastructure. ControllerActionInvoker. g__Awaited 10_0ControllerActionInvoker invoker, Task lastTask, State next, Scope scope, Object stat e, Boolean isCompleted) birdsitelive birdsitelive birdsitelive 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. g_ Awaited |13_0 (ControllerActionInvoker invoker, Task lastTask, State next, Scope scope, Object state, Bo olean isCompleted) birdsitelive I ted) birdsitelive birdsitelive birdsitelive at Microsoft.AspNetCore. Mvc. Infrastructure. ResourceInvoker. g Awaited |25_0 (ResourceInvoker invoker, Task lastTask, State next, Scope scope, Object state, Boolean isComple at Microsoft. AspNetCore. Mvc. Infrastructure. Resource Invoker. Rethrow (ResourceExecutedContextSealed context) at Microsoft. AspNetCore.Mvc. Infrastructure. ResourceInvoker. Next (State& next, Scope& scope, Object& state, Boolean& isCompleted) at Microsoft. AspNetCore. Mvc. Infrastructure. ResourceInvoker. g__Awaited |20_0(ResourceInvoker invoker, Task lastTask, State next, Scope scope, Object state, Boolean isCompl eted) birdsitelive birdsitelive birdsitelive birdsitelive birdsitelive at Microsoft. AspNetCore. Mvc. Infrastructure. Resource Invoker. g Awaited|17_0 (ResourceInvoker invoker, Task task, IDisposable scope) at Microsoft.AspNetCore. Mvc. Infrastructure. ResourceInvoker. g_ Awaited| 17_0 (ResourceInvoker invoker, Task task, IDisposable scope) at Microsoft. AspNetCore. Routing. EndpointMiddleware. g_AwaitRequestTask|6_0(Endpoint endpoint, Task requestTask, ILogger logger) at Microsoft.AspNetCore.Authorization.AuthorizationMiddleware.Invoke(HttpContext context) at Microsoft.AspNetCore. Diagnostics. ExceptionHandlerMiddlewareImpl. g_ _Awaited |8_0(ExceptionHandlerMiddlewareImplmiddleware, HttpContext context, Task task)

I don't see any big changes in the latest commit. Does anyone see the same behavior?

Thanks for any help!

Status
REPORTED
Submitter
~felixmueller
Assigned to
No-one
Submitted
1 year, 8 months ago
Updated
1 year, 7 months ago
Labels
No labels applied.

~peanutlasko 1 year, 7 months ago

Yes I'm also getting this same behavior - any idea why?

~eric-pierce 1 year, 7 months ago

~felixmueller would you paste your docker-compose.yml file here, and has anything populated in your database?

Register here or Log in to comment, or comment via email.