OpenALPR Webhook Processor for IP Cameras

IReallyLikePizza2

Known around here
Joined
May 14, 2019
Messages
1,852
Reaction score
4,443
Location
Houston
I'll give it a shot now and see if I have any issues

Just tried the latest updates, did you guys get any speed bump? I'm still having an issue where the page is taking a good 15 to 20 seconds to load, once loaded even with the full date range its pretty snappy though

CPU isn't maxed out, looks about 15% during that time
 

mlapaglia

Getting comfortable
Joined
Apr 6, 2016
Messages
849
Reaction score
506
you're getting exceptions when you are doing searches, not the same from the webhook exceptions biggen is getting.
 

biggen

Known around here
Joined
May 6, 2018
Messages
2,572
Reaction score
2,855
So all of a sudden my camera is listed under "Cameras" and it wasn't yesterday when I was fooling around with it. I was adding the camera right after starting the service so I don't know if there is a delay with service "startup" trying to do something in the background before the camera is allowed to be listed. I'll delete the camera, stop the service, restart it, and see if I can add the camera back.

BTW, If I don't have any cameras listed I get lots of these errors in the log file. These may be the same errors I posted before:
Code:
2022-03-07 16:02:54.136 +00:00 [INF] Executing endpoint 'OpenAlprWebhookProcessor.SystemLogs.LogsController.GetLogs (OpenAlprWebhookProcessor)'
2022-03-07 16:02:54.136 +00:00 [INF] Successfully validated the token.
2022-03-07 16:02:54.134 +00:00 [INF] Entity Framework Core 6.0.2 initialized 'UsersContext' using provider 'Microsoft.EntityFrameworkCore.Sqlite:6.0.2' with options: None
   at Microsoft.AspNetCore.Diagnostics.ExceptionHandlerMiddleware.HandleException(HttpContext context, ExceptionDispatchInfo edi)
   at Serilog.AspNetCore.RequestLoggingMiddleware.Invoke(HttpContext httpContext)
   at Swashbuckle.AspNetCore.Swagger.SwaggerMiddleware.Invoke(HttpContext httpContext, ISwaggerProvider swaggerProvider)
   at Swashbuckle.AspNetCore.SwaggerUI.SwaggerUIMiddleware.Invoke(HttpContext httpContext)
   at OpenAlprWebhookProcessor.Users.JwtMiddleware.Invoke(HttpContext context, IUserService userService) in /src/OpenAlprWebhookProcessor/Users/JwtMiddleware.cs:line 43
   at Microsoft.AspNetCore.Authentication.AuthenticationMiddleware.Invoke(HttpContext context)
   at Microsoft.AspNetCore.Authorization.AuthorizationMiddleware.Invoke(HttpContext context)
   at Microsoft.AspNetCore.Routing.EndpointMiddleware.Invoke(HttpContext httpContext)
   at Microsoft.AspNetCore.StaticFiles.StaticFileMiddleware.Invoke(HttpContext context)
   at Microsoft.AspNetCore.SpaServices.SpaDefaultPageMiddleware.<>c__DisplayClass0_0.<Attach>b__1(HttpContext context, Func`1 next)

Your application is running in Production mode, so make sure it has been published, or that you have built your SPA manually. Alternatively you may wish to switch to the Development environment.
System.InvalidOperationException: The SPA default page middleware could not return the default page '/index.html' because it was not found, and no other middleware handled the request.
2022-03-07 16:02:24.478 +00:00 [ERR] An exception was thrown attempting to execute the error handler.
   at Serilog.AspNetCore.RequestLoggingMiddleware.Invoke(HttpContext httpContext)
   at Swashbuckle.AspNetCore.Swagger.SwaggerMiddleware.Invoke(HttpContext httpContext, ISwaggerProvider swaggerProvider)
   at Swashbuckle.AspNetCore.SwaggerUI.SwaggerUIMiddleware.Invoke(HttpContext httpContext)
   at OpenAlprWebhookProcessor.Users.JwtMiddleware.Invoke(HttpContext context, IUserService userService) in /src/OpenAlprWebhookProcessor/Users/JwtMiddleware.cs:line 43
   at Microsoft.AspNetCore.Authentication.AuthenticationMiddleware.Invoke(HttpContext context)
   at Microsoft.AspNetCore.Authorization.AuthorizationMiddleware.Invoke(HttpContext context)
   at Microsoft.AspNetCore.Routing.EndpointMiddleware.Invoke(HttpContext httpContext)
   at Microsoft.AspNetCore.StaticFiles.StaticFileMiddleware.Invoke(HttpContext context)
   at Microsoft.AspNetCore.SpaServices.SpaDefaultPageMiddleware.<>c__DisplayClass0_0.<Attach>b__1(HttpContext context, Func`1 next)

Your application is running in Production mode, so make sure it has been published, or that you have built your SPA manually. Alternatively you may wish to switch to the Development environment.
System.InvalidOperationException: The SPA default page middleware could not return the default page '/index.html' because it was not found, and no other middleware handled the request.
2022-03-07 16:02:24.477 +00:00 [ERR] HTTP POST /cameras/e007f994-8d48-4b3e-8eaf-2a6259f6c063/delete responded 500 in 1.2637 ms
2022-03-07 16:02:24.476 +00:00 [INF] CORS policy execution successful.
   at Microsoft.AspNetCore.Diagnostics.ExceptionHandlerMiddleware.<Invoke>g__Awaited|6_0(ExceptionHandlerMiddleware middleware, HttpContext context, Task task)
   at Serilog.AspNetCore.RequestLoggingMiddleware.Invoke(HttpContext httpContext)
   at Swashbuckle.AspNetCore.Swagger.SwaggerMiddleware.Invoke(HttpContext httpContext, ISwaggerProvider swaggerProvider)
   at Swashbuckle.AspNetCore.SwaggerUI.SwaggerUIMiddleware.Invoke(HttpContext httpContext)
   at OpenAlprWebhookProcessor.Users.JwtMiddleware.Invoke(HttpContext context, IUserService userService) in /src/OpenAlprWebhookProcessor/Users/JwtMiddleware.cs:line 43
   at Microsoft.AspNetCore.Authentication.AuthenticationMiddleware.Invoke(HttpContext context)
   at Microsoft.AspNetCore.Authorization.AuthorizationMiddleware.Invoke(HttpContext context)
   at Microsoft.AspNetCore.Authorization.Policy.AuthorizationMiddlewareResultHandler.HandleAsync(RequestDelegate next, HttpContext context, AuthorizationPolicy policy, PolicyAuthorizationResult authorizeResult)
   at Microsoft.AspNetCore.Routing.EndpointMiddleware.<Invoke>g__AwaitRequestTask|6_0(Endpoint endpoint, Task requestTask, ILogger logger)
   at Microsoft.AspNetCore.Mvc.Infrastructure.ResourceInvoker.<InvokeAsync>g__Logged|17_1(ResourceInvoker invoker)
   at Microsoft.AspNetCore.Mvc.Infrastructure.ResourceInvoker.<InvokeAsync>g__Logged|17_1(ResourceInvoker invoker)
--- End of stack trace from previous location ---
   at Microsoft.AspNetCore.Mvc.Infrastructure.ResourceInvoker.InvokeFilterPipelineAsync()
   at Microsoft.AspNetCore.Mvc.Infrastructure.ResourceInvoker.Next(State& next, Scope& scope, Object& state, Boolean& isCompleted)
   at Microsoft.AspNetCore.Mvc.Infrastructure.ResourceInvoker.Rethrow(ResourceExecutedContextSealed context)
   at Microsoft.AspNetCore.Mvc.Infrastructure.ResourceInvoker.<InvokeNextResourceFilter>g__Awaited|25_0(ResourceInvoker invoker, Task lastTask, State next, Scope scope, Object state, Boolean isCompleted)
--- End of stack trace from previous location ---
   at Microsoft.AspNetCore.Mvc.Infrastructure.ControllerActionInvoker.InvokeInnerFilterAsync()
   at Microsoft.AspNetCore.Mvc.Infrastructure.ControllerActionInvoker.Next(State& next, Scope& scope, Object& state, Boolean& isCompleted)
   at Microsoft.AspNetCore.Mvc.Infrastructure.ControllerActionInvoker.Rethrow(ActionExecutedContextSealed context)
   at Microsoft.AspNetCore.Mvc.Infrastructure.ControllerActionInvoker.<InvokeNextActionFilterAsync>g__Awaited|10_0(ControllerActionInvoker invoker, Task lastTask, State next, Scope scope, Object state, Boolean isCompleted)
   at Microsoft.AspNetCore.Mvc.Infrastructure.ControllerActionInvoker.<InvokeActionMethodAsync>g__Awaited|12_0(ControllerActionInvoker invoker, ValueTask`1 actionResultValueTask)
   at Microsoft.AspNetCore.Mvc.Infrastructure.ActionMethodExecutor.AwaitableResultExecutor.Execute(IActionResultTypeMapper mapper, ObjectMethodExecutor executor, Object controller, Object[] arguments)
   at lambda_method785(Closure , Object )
   at OpenAlprWebhookProcessor.Cameras.CameraController.DeleteCamera(Guid cameraId) in /src/OpenAlprWebhookProcessor/Cameras/CameraController.cs:line 59
   at OpenAlprWebhookProcessor.Cameras.DeleteCameraHandler.HandleAsync(Guid cameraId) in /src/OpenAlprWebhookProcessor/Cameras/DeleteCamera/DeleteCameraHandler.cs:line 29
   at OpenAlprWebhookProcessor.CameraUpdateService.CameraUpdateService.DeleteSunriseSunsetAsync(Guid cameraId) in /src/OpenAlprWebhookProcessor/CameraUpdateService/CameraUpdateService.cs:line 73
System.ArgumentException: Camera not found
2022-03-07 16:02:24.474 +00:00 [ERR] An unhandled exception has occurred while executing the request.
   at Serilog.AspNetCore.RequestLoggingMiddleware.Invoke(HttpContext httpContext)
   at Swashbuckle.AspNetCore.Swagger.SwaggerMiddleware.Invoke(HttpContext httpContext, ISwaggerProvider swaggerProvider)
   at Swashbuckle.AspNetCore.SwaggerUI.SwaggerUIMiddleware.Invoke(HttpContext httpContext)
   at OpenAlprWebhookProcessor.Users.JwtMiddleware.Invoke(HttpContext context, IUserService userService) in /src/OpenAlprWebhookProcessor/Users/JwtMiddleware.cs:line 43
   at Microsoft.AspNetCore.Authentication.AuthenticationMiddleware.Invoke(HttpContext context)
   at Microsoft.AspNetCore.Authorization.AuthorizationMiddleware.Invoke(HttpContext context)
   at Microsoft.AspNetCore.Authorization.Policy.AuthorizationMiddlewareResultHandler.HandleAsync(RequestDelegate next, HttpContext context, AuthorizationPolicy policy, PolicyAuthorizationResult authorizeResult)
   at Microsoft.AspNetCore.Routing.EndpointMiddleware.<Invoke>g__AwaitRequestTask|6_0(Endpoint endpoint, Task requestTask, ILogger logger)
   at Microsoft.AspNetCore.Mvc.Infrastructure.ResourceInvoker.<InvokeAsync>g__Logged|17_1(ResourceInvoker invoker)
   at Microsoft.AspNetCore.Mvc.Infrastructure.ResourceInvoker.<InvokeAsync>g__Logged|17_1(ResourceInvoker invoker)
--- End of stack trace from previous location ---
   at Microsoft.AspNetCore.Mvc.Infrastructure.ResourceInvoker.InvokeFilterPipelineAsync()
   at Microsoft.AspNetCore.Mvc.Infrastructure.ResourceInvoker.Next(State& next, Scope& scope, Object& state, Boolean& isCompleted)
   at Microsoft.AspNetCore.Mvc.Infrastructure.ResourceInvoker.Rethrow(ResourceExecutedContextSealed context)
   at Microsoft.AspNetCore.Mvc.Infrastructure.ResourceInvoker.<InvokeNextResourceFilter>g__Awaited|25_0(ResourceInvoker invoker, Task lastTask, State next, Scope scope, Object state, Boolean isCompleted)
--- End of stack trace from previous location ---
   at Microsoft.AspNetCore.Mvc.Infrastructure.ControllerActionInvoker.InvokeInnerFilterAsync()
   at Microsoft.AspNetCore.Mvc.Infrastructure.ControllerActionInvoker.Next(State& next, Scope& scope, Object& state, Boolean& isCompleted)
   at Microsoft.AspNetCore.Mvc.Infrastructure.ControllerActionInvoker.Rethrow(ActionExecutedContextSealed context)
   at Microsoft.AspNetCore.Mvc.Infrastructure.ControllerActionInvoker.<InvokeNextActionFilterAsync>g__Awaited|10_0(ControllerActionInvoker invoker, Task lastTask, State next, Scope scope, Object state, Boolean isCompleted)
   at Microsoft.AspNetCore.Mvc.Infrastructure.ControllerActionInvoker.<InvokeActionMethodAsync>g__Awaited|12_0(ControllerActionInvoker invoker, ValueTask`1 actionResultValueTask)
   at Microsoft.AspNetCore.Mvc.Infrastructure.ActionMethodExecutor.AwaitableResultExecutor.Execute(IActionResultTypeMapper mapper, ObjectMethodExecutor executor, Object controller, Object[] arguments)
   at lambda_method785(Closure , Object )
   at OpenAlprWebhookProcessor.Cameras.CameraController.DeleteCamera(Guid cameraId) in /src/OpenAlprWebhookProcessor/Cameras/CameraController.cs:line 59
   at OpenAlprWebhookProcessor.Cameras.DeleteCameraHandler.HandleAsync(Guid cameraId) in /src/OpenAlprWebhookProcessor/Cameras/DeleteCamera/DeleteCameraHandler.cs:line 29
   at OpenAlprWebhookProcessor.CameraUpdateService.CameraUpdateService.DeleteSunriseSunsetAsync(Guid cameraId) in /src/OpenAlprWebhookProcessor/CameraUpdateService/CameraUpdateService.cs:line 73
System.ArgumentException: Camera not found
 
Last edited:

biggen

Known around here
Joined
May 6, 2018
Messages
2,572
Reaction score
2,855
Ok in an attempt to start from scratch, I stopped the service, hand deleted all the files in the config directory (.db, .shm, etc...), then restarted the service and now I can't add my camera back in. When I try to add it, nothing appears. BTW, this is the right way to "start fresh", right? Those .db and other files in the config directory are the only places where you keep persistent storage for the service, right?

UPDATE: As soon as I turn on debug mode in your OpenALPR Watchmen Agent menu of the service, the camera appears! WTF?

Code:
2022-03-07 16:14:57.833 +00:00 [INF] Executing endpoint 'OpenAlprWebhookProcessor.SystemLogs.LogsController.GetLogs (OpenAlprWebhookProcessor)'
2022-03-07 16:14:57.833 +00:00 [INF] Successfully validated the token.
2022-03-07 16:14:57.832 +00:00 [INF] Entity Framework Core 6.0.2 initialized 'UsersContext' using provider 'Microsoft.EntityFrameworkCore.Sqlite:6.0.2' with options: None
2022-03-07 16:13:41.824 +00:00 [INF] HTTP GET /settings/agent responded 200 in 6.7013 ms
2022-03-07 16:13:41.824 +00:00 [INF] Executed endpoint 'OpenAlprWebhookProcessor.Settings.SettingsController.GetAgent (OpenAlprWebhookProcessor)'
2022-03-07 16:13:41.824 +00:00 [INF] Executing ObjectResult, writing value of type 'OpenAlprWebhookProcessor.Settings.Agent'.
2022-03-07 16:13:41.822 +00:00 [INF] Entity Framework Core 6.0.2 initialized 'ProcessorContext' using provider 'Microsoft.EntityFrameworkCore.Sqlite:6.0.2' with options: None
2022-03-07 16:13:41.821 +00:00 [INF] Executing endpoint 'OpenAlprWebhookProcessor.Settings.SettingsController.GetAgent (OpenAlprWebhookProcessor)'
2022-03-07 16:13:41.821 +00:00 [INF] Successfully validated the token.
2022-03-07 16:13:41.819 +00:00 [INF] Entity Framework Core 6.0.2 initialized 'UsersContext' using provider 'Microsoft.EntityFrameworkCore.Sqlite:6.0.2' with options: None
2022-03-07 16:12:24.195 +00:00 [INF] HTTP GET /licenseplates/counts responded 200 in 5.3637 ms
2022-03-07 16:12:24.195 +00:00 [INF] Executed endpoint 'OpenAlprWebhookProcessor.LicensePlates.LicensePlatesController.GetLicensePlateCounts (OpenAlprWebhookProcessor)'
2022-03-07 16:12:24.195 +00:00 [INF] Executing ObjectResult, writing value of type 'OpenAlprWebhookProcessor.LicensePlates.GetLicensePlateCounts.GetLicensePlateCountsResponse'.
2022-03-07 16:12:24.194 +00:00 [INF] Entity Framework Core 6.0.2 initialized 'ProcessorContext' using provider 'Microsoft.EntityFrameworkCore.Sqlite:6.0.2' with options: None
2022-03-07 16:12:24.193 +00:00 [INF] Executing endpoint 'OpenAlprWebhookProcessor.LicensePlates.LicensePlatesController.GetLicensePlateCounts (OpenAlprWebhookProcessor)'
2022-03-07 16:12:24.192 +00:00 [INF] Successfully validated the token.
2022-03-07 16:12:24.191 +00:00 [INF] Entity Framework Core 6.0.2 initialized 'UsersContext' using provider 'Microsoft.EntityFrameworkCore.Sqlite:6.0.2' with options: None
2022-03-07 16:12:20.854 +00:00 [INF] HTTP GET /logs responded 200 in 34.5726 ms
2022-03-07 16:12:20.854 +00:00 [INF] Executed endpoint 'OpenAlprWebhookProcessor.SystemLogs.LogsController.GetLogs (OpenAlprWebhookProcessor)'
2022-03-07 16:12:20.853 +00:00 [INF] Executing ObjectResult, writing value of type 'System.Collections.Generic.List`1[[System.String, System.Private.CoreLib, Version=6.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e]]'.
2022-03-07 16:12:20.824 +00:00 [INF] Executing endpoint 'OpenAlprWebhookProcessor.SystemLogs.LogsController.GetLogs (OpenAlprWebhookProcessor)'
2022-03-07 16:12:20.823 +00:00 [INF] Successfully validated the token.
2022-03-07 16:12:20.820 +00:00 [INF] Entity Framework Core 6.0.2 initialized 'UsersContext' using provider 'Microsoft.EntityFrameworkCore.Sqlite:6.0.2' with options: None
2022-03-07 16:12:19.135 +00:00 [INF] HTTP GET /cameras responded 200 in 4.0568 ms
2022-03-07 16:12:19.135 +00:00 [INF] Executed endpoint 'OpenAlprWebhookProcessor.Cameras.CameraController.GetCameras (OpenAlprWebhookProcessor)'
2022-03-07 16:12:19.135 +00:00 [INF] Executing ObjectResult, writing value of type 'System.Collections.Generic.List`1[[OpenAlprWebhookProcessor.Cameras.Camera, OpenAlprWebhookProcessor, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null]]'.
2022-03-07 16:12:19.134 +00:00 [INF] Entity Framework Core 6.0.2 initialized 'ProcessorContext' using provider 'Microsoft.EntityFrameworkCore.Sqlite:6.0.2' with options: None
2022-03-07 16:12:19.134 +00:00 [INF] Executing endpoint 'OpenAlprWebhookProcessor.Cameras.CameraController.GetCameras (OpenAlprWebhookProcessor)'
2022-03-07 16:12:19.133 +00:00 [INF] Successfully validated the token.
2022-03-07 16:12:19.132 +00:00 [INF] Entity Framework Core 6.0.2 initialized 'UsersContext' using provider 'Microsoft.EntityFrameworkCore.Sqlite:6.0.2' with options: None
2022-03-07 16:12:16.957 +00:00 [INF] HTTP GET /settings/agent responded 200 in 3.6279 ms
2022-03-07 16:12:16.957 +00:00 [INF] Executed endpoint 'OpenAlprWebhookProcessor.Settings.SettingsController.GetAgent (OpenAlprWebhookProcessor)'
2022-03-07 16:12:16.957 +00:00 [INF] Executing ObjectResult, writing value of type 'OpenAlprWebhookProcessor.Settings.Agent'.
2022-03-07 16:12:16.956 +00:00 [INF] Entity Framework Core 6.0.2 initialized 'ProcessorContext' using provider 'Microsoft.EntityFrameworkCore.Sqlite:6.0.2' with options: None
2022-03-07 16:12:16.955 +00:00 [INF] Executing endpoint 'OpenAlprWebhookProcessor.Settings.SettingsController.GetAgent (OpenAlprWebhookProcessor)'
2022-03-07 16:12:16.955 +00:00 [INF] Successfully validated the token.
2022-03-07 16:12:16.954 +00:00 [INF] Entity Framework Core 6.0.2 initialized 'UsersContext' using provider 'Microsoft.EntityFrameworkCore.Sqlite:6.0.2' with options: None
2022-03-07 16:12:16.924 +00:00 [INF] HTTP POST /settings/agent responded 200 in 8.4411 ms
2022-03-07 16:12:16.924 +00:00 [INF] Executed endpoint 'OpenAlprWebhookProcessor.Settings.SettingsController.UpsertAgent (OpenAlprWebhookProcessor)'
2022-03-07 16:12:16.920 +00:00 [INF] Entity Framework Core 6.0.2 initialized 'ProcessorContext' using provider 'Microsoft.EntityFrameworkCore.Sqlite:6.0.2' with options: None
2022-03-07 16:12:16.919 +00:00 [INF] Executing endpoint 'OpenAlprWebhookProcessor.Settings.SettingsController.UpsertAgent (OpenAlprWebhookProcessor)'
2022-03-07 16:12:16.919 +00:00 [INF] Successfully validated the token.
2022-03-07 16:12:16.916 +00:00 [INF] Entity Framework Core 6.0.2 initialized 'UsersContext' using provider 'Microsoft.EntityFrameworkCore.Sqlite:6.0.2' with options: None
2022-03-07 16:12:16.916 +00:00 [INF] CORS policy execution successful.
2022-03-07 16:11:39.179 +00:00 [INF] HTTP POST /webhook responded 200 in 7.6606 ms
2022-03-07 16:11:39.179 +00:00 [INF] Executed endpoint 'OpenAlprWebhookProcessor.WebhookProcessor.WebhookController.Post (OpenAlprWebhookProcessor)'
2022-03-07 16:11:39.179 +00:00 [INF] Executing StatusCodeResult, setting HTTP status code 200
2022-03-07 16:11:39.179 +00:00 [ERR] unknown camera: 254963574, skipping.
2022-03-07 16:11:39.174 +00:00 [INF] Entity Framework Core 6.0.2 initialized 'ProcessorContext' using provider 'Microsoft.EntityFrameworkCore.Sqlite:6.0.2' with options: None
2022-03-07 16:11:39.173 +00:00 [INF] parsing plate group webhook
2022-03-07 16:11:39.173 +00:00 [INF] request received from: ::ffff:10.200.200.19
2022-03-07 16:11:39.172 +00:00 [INF] Executing endpoint 'OpenAlprWebhookProcessor.WebhookProcessor.WebhookController.Post (OpenAlprWebhookProcessor)'
2022-03-07 16:11:13.962 +00:00 [INF] HTTP GET /settings/agent responded 200 in 3.3375 ms
2022-03-07 16:11:13.962 +00:00 [INF] Executed endpoint 'OpenAlprWebhookProcessor.Settings.SettingsController.GetAgent (OpenAlprWebhookProcessor)'
2022-03-07 16:11:13.962 +00:00 [INF] Executing ObjectResult, writing value of type 'OpenAlprWebhookProcessor.Settings.Agent'.
2022-03-07 16:11:13.962 +00:00 [INF] Entity Framework Core 6.0.2 initialized 'ProcessorContext' using provider 'Microsoft.EntityFrameworkCore.Sqlite:6.0.2' with options: None
2022-03-07 16:11:13.961 +00:00 [INF] Executing endpoint 'OpenAlprWebhookProcessor.Settings.SettingsController.GetAgent (OpenAlprWebhookProcessor)'
2022-03-07 16:11:13.961 +00:00 [INF] Successfully validated the token.
2022-03-07 16:11:13.959 +00:00 [INF] Entity Framework Core 6.0.2 initialized 'UsersContext' using provider 'Microsoft.EntityFrameworkCore.Sqlite:6.0.2' with options: None
2022-03-07 16:11:13.059 +00:00 [INF] HTTP GET /cameras responded 200 in 5.2047 ms
2022-03-07 16:11:13.059 +00:00 [INF] Executed endpoint 'OpenAlprWebhookProcessor.Cameras.CameraController.GetCameras (OpenAlprWebhookProcessor)'
2022-03-07 16:11:13.058 +00:00 [INF] Executing ObjectResult, writing value of type 'System.Collections.Generic.List`1[[OpenAlprWebhookProcessor.Cameras.Camera, OpenAlprWebhookProcessor, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null]]'.
2022-03-07 16:11:13.057 +00:00 [INF] Entity Framework Core 6.0.2 initialized 'ProcessorContext' using provider 'Microsoft.EntityFrameworkCore.Sqlite:6.0.2' with options: None
2022-03-07 16:11:13.056 +00:00 [INF] Executing endpoint 'OpenAlprWebhookProcessor.Cameras.CameraController.GetCameras (OpenAlprWebhookProcessor)'
2022-03-07 16:11:13.056 +00:00 [INF] Successfully validated the token.
2022-03-07 16:11:13.054 +00:00 [INF] Entity Framework Core 6.0.2 initialized 'UsersContext' using provider 'Microsoft.EntityFrameworkCore.Sqlite:6.0.2' with options: None
2022-03-07 16:11:12.115 +00:00 [INF] HTTP GET /logs responded 200 in 20.8333 ms
2022-03-07 16:11:12.114 +00:00 [INF] Executed endpoint 'OpenAlprWebhookProcessor.SystemLogs.LogsController.GetLogs (OpenAlprWebhookProcessor)'
2022-03-07 16:11:12.114 +00:00 [INF] Executing ObjectResult, writing value of type 'System.Collections.Generic.List`1[[System.String, System.Private.CoreLib, Version=6.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e]]'.
2022-03-07 16:11:12.097 +00:00 [INF] Executing endpoint 'OpenAlprWebhookProcessor.SystemLogs.LogsController.GetLogs (OpenAlprWebhookProcessor)'
2022-03-07 16:11:12.096 +00:00 [INF] Successfully validated the token.
2022-03-07 16:11:12.095 +00:00 [INF] Entity Framework Core 6.0.2 initialized 'UsersContext' using provider 'Microsoft.EntityFrameworkCore.Sqlite:6.0.2' with options: None
2022-03-07 16:09:57.311 +00:00 [INF] HTTP POST /webhook responded 200 in 39.4816 ms
2022-03-07 16:09:57.311 +00:00 [INF] Executed endpoint 'OpenAlprWebhookProcessor.WebhookProcessor.WebhookController.Post (OpenAlprWebhookProcessor)'
2022-03-07 16:09:57.310 +00:00 [INF] Executing StatusCodeResult, setting HTTP status code 200
2022-03-07 16:09:57.310 +00:00 [ERR] unknown camera: 254963574, skipping.
2022-03-07 16:09:57.273 +00:00 [INF] Entity Framework Core 6.0.2 initialized 'ProcessorContext' using provider 'Microsoft.EntityFrameworkCore.Sqlite:6.0.2' with options: None
2022-03-07 16:09:57.272 +00:00 [INF] parsing plate group webhook
2022-03-07 16:09:57.272 +00:00 [INF] request received from: ::ffff:10.200.200.19
2022-03-07 16:09:57.272 +00:00 [INF] Executing endpoint 'OpenAlprWebhookProcessor.WebhookProcessor.WebhookController.Post (OpenAlprWebhookProcessor)'
2022-03-07 16:09:18.862 +00:00 [INF] HTTP GET /cameras responded 200 in 5.2579 ms
2022-03-07 16:09:18.862 +00:00 [INF] Executed endpoint 'OpenAlprWebhookProcessor.Cameras.CameraController.GetCameras (OpenAlprWebhookProcessor)'
2022-03-07 16:09:18.861 +00:00 [INF] Executing ObjectResult, writing value of type 'System.Collections.Generic.List`1[[OpenAlprWebhookProcessor.Cameras.Camera, OpenAlprWebhookProcessor, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null]]'.
2022-03-07 16:09:18.860 +00:00 [INF] Entity Framework Core 6.0.2 initialized 'ProcessorContext' using provider 'Microsoft.EntityFrameworkCore.Sqlite:6.0.2' with options: None
2022-03-07 16:09:18.860 +00:00 [INF] Executing endpoint 'OpenAlprWebhookProcessor.Cameras.CameraController.GetCameras (OpenAlprWebhookProcessor)'
2022-03-07 16:09:18.859 +00:00 [INF] Successfully validated the token.
2022-03-07 16:09:18.857 +00:00 [INF] Entity Framework Core 6.0.2 initialized 'UsersContext' using provider 'Microsoft.EntityFrameworkCore.Sqlite:6.0.2' with options: None
2022-03-07 16:09:18.263 +00:00 [INF] HTTP GET /images/d7a34742-3ae9-445a-864b-994ab2325dae/snapshot responded 200 in 596.4536 ms
2022-03-07 16:09:18.263 +00:00 [INF] Executed endpoint 'OpenAlprWebhookProcessor.ImageRelay.ImageRelayController.GetSnapshot (OpenAlprWebhookProcessor)'
2022-03-07 16:09:18.254 +00:00 [INF] Executing ObjectResult, writing value of type 'System.IO.MemoryStream'.
2022-03-07 16:09:18.101 +00:00 [INF] HTTP GET /settings/agent responded 200 in 3.8395 ms
2022-03-07 16:09:18.101 +00:00 [INF] Executed endpoint 'OpenAlprWebhookProcessor.Settings.SettingsController.GetAgent (OpenAlprWebhookProcessor)'
2022-03-07 16:09:18.101 +00:00 [INF] Executing ObjectResult, writing value of type 'OpenAlprWebhookProcessor.Settings.Agent'.
2022-03-07 16:09:18.100 +00:00 [INF] Entity Framework Core 6.0.2 initialized 'ProcessorContext' using provider 'Microsoft.EntityFrameworkCore.Sqlite:6.0.2' with options: None
2022-03-07 16:09:18.099 +00:00 [INF] Executing endpoint 'OpenAlprWebhookProcessor.Settings.SettingsController.GetAgent (OpenAlprWebhookProcessor)'
2022-03-07 16:09:18.099 +00:00 [INF] Successfully validated the token.
2022-03-07 16:09:18.098 +00:00 [INF] Entity Framework Core 6.0.2 initialized 'UsersContext' using provider 'Microsoft.EntityFrameworkCore.Sqlite:6.0.2' with options: None
2022-03-07 16:09:17.676 +00:00 [INF] Entity Framework Core 6.0.2 initialized 'ProcessorContext' using provider 'Microsoft.EntityFrameworkCore.Sqlite:6.0.2' with options: None
2022-03-07 16:09:17.669 +00:00 [INF] Executing endpoint 'OpenAlprWebhookProcessor.ImageRelay.ImageRelayController.GetSnapshot (OpenAlprWebhookProcessor)'
2022-03-07 16:09:17.669 +00:00 [INF] Successfully validated the token.
2022-03-07 16:09:17.620 +00:00 [INF] HTTP GET /cameras responded 200 in 18.0582 ms
2022-03-07 16:09:17.620 +00:00 [INF] Executed endpoint 'OpenAlprWebhookProcessor.Cameras.CameraController.GetCameras (OpenAlprWebhookProcessor)'
2022-03-07 16:09:17.610 +00:00 [INF] Executing ObjectResult, writing value of type 'System.Collections.Generic.List`1[[OpenAlprWebhookProcessor.Cameras.Camera, OpenAlprWebhookProcessor, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null]]'.
2022-03-07 16:09:17.605 +00:00 [INF] Entity Framework Core 6.0.2 initialized 'ProcessorContext' using provider 'Microsoft.EntityFrameworkCore.Sqlite:6.0.2' with options: None
2022-03-07 16:09:17.604 +00:00 [INF] Executing endpoint 'OpenAlprWebhookProcessor.Cameras.CameraController.GetCameras (OpenAlprWebhookProcessor)'
2022-03-07 16:09:17.604 +00:00 [INF] Successfully validated the token.
2022-03-07 16:09:17.603 +00:00 [INF] Entity Framework Core 6.0.2 initialized 'UsersContext' using provider 'Microsoft.EntityFrameworkCore.Sqlite:6.0.2' with options: None
2022-03-07 16:09:15.581 +00:00 [INF] HTTP GET /logs responded 200 in 21.3952 ms
2022-03-07 16:09:15.581 +00:00 [INF] Executed endpoint 'OpenAlprWebhookProcessor.SystemLogs.LogsController.GetLogs (OpenAlprWebhookProcessor)'
2022-03-07 16:09:15.580 +00:00 [INF] Executing ObjectResult, writing value of type 'System.Collections.Generic.List`1[[System.String, System.Private.CoreLib, Version=6.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e]]'.
2022-03-07 16:09:15.561 +00:00 [INF] Executing endpoint 'OpenAlprWebhookProcessor.SystemLogs.LogsController.GetLogs (OpenAlprWebhookProcessor)'
2022-03-07 16:09:15.561 +00:00 [INF] Successfully validated the token.
2022-03-07 16:09:15.560 +00:00 [INF] Entity Framework Core 6.0.2 initialized 'UsersContext' using provider 'Microsoft.EntityFrameworkCore.Sqlite:6.0.2' with options: None
2022-03-07 16:09:13.228 +00:00 [INF] HTTP GET /settings/agent responded 200 in 6.4356 ms
2022-03-07 16:09:13.228 +00:00 [INF] Executed endpoint 'OpenAlprWebhookProcessor.Settings.SettingsController.GetAgent (OpenAlprWebhookProcessor)'
2022-03-07 16:09:13.227 +00:00 [INF] Executing ObjectResult, writing value of type 'OpenAlprWebhookProcessor.Settings.Agent'.
2022-03-07 16:09:13.224 +00:00 [INF] Entity Framework Core 6.0.2 initialized 'ProcessorContext' using provider 'Microsoft.EntityFrameworkCore.Sqlite:6.0.2' with options: None
2022-03-07 16:09:13.224 +00:00 [INF] Executing endpoint 'OpenAlprWebhookProcessor.Settings.SettingsController.GetAgent (OpenAlprWebhookProcessor)'
2022-03-07 16:09:13.223 +00:00 [INF] Successfully validated the token.
2022-03-07 16:09:13.222 +00:00 [INF] Entity Framework Core 6.0.2 initialized 'UsersContext' using provider 'Microsoft.EntityFrameworkCore.Sqlite:6.0.2' with options: None
2022-03-07 16:09:13.192 +00:00 [INF] HTTP POST /settings/agent responded 200 in 40.8497 ms
2022-03-07 16:09:13.191 +00:00 [INF] Executed endpoint 'OpenAlprWebhookProcessor.Settings.SettingsController.UpsertAgent (OpenAlprWebhookProcessor)'
2022-03-07 16:09:13.161 +00:00 [INF] Entity Framework Core 6.0.2 initialized 'ProcessorContext' using provider 'Microsoft.EntityFrameworkCore.Sqlite:6.0.2' with options: None
2022-03-07 16:09:13.152 +00:00 [INF] Executing endpoint 'OpenAlprWebhookProcessor.Settings.SettingsController.UpsertAgent (OpenAlprWebhookProcessor)'
2022-03-07 16:09:13.152 +00:00 [INF] Successfully validated the token.
2022-03-07 16:09:13.151 +00:00 [INF] Entity Framework Core 6.0.2 initialized 'UsersContext' using provider 'Microsoft.EntityFrameworkCore.Sqlite:6.0.2' with options: None
2022-03-07 16:09:13.151 +00:00 [INF] CORS policy execution successful.
2022-03-07 16:09:10.780 +00:00 [INF] HTTP GET /settings/agent responded 200 in 3.1772 ms
2022-03-07 16:09:10.780 +00:00 [INF] Executed endpoint 'OpenAlprWebhookProcessor.Settings.SettingsController.GetAgent (OpenAlprWebhookProcessor)'
2022-03-07 16:09:10.779 +00:00 [INF] Executing ObjectResult, writing value of type 'OpenAlprWebhookProcessor.Settings.Agent'.
2022-03-07 16:09:10.779 +00:00 [INF] Entity Framework Core 6.0.2 initialized 'ProcessorContext' using provider 'Microsoft.EntityFrameworkCore.Sqlite:6.0.2' with options: None
2022-03-07 16:09:10.778 +00:00 [INF] Executing endpoint 'OpenAlprWebhookProcessor.Settings.SettingsController.GetAgent (OpenAlprWebhookProcessor)'
2022-03-07 16:09:10.778 +00:00 [INF] Successfully validated the token.
2022-03-07 16:09:10.777 +00:00 [INF] Entity Framework Core 6.0.2 initialized 'UsersContext' using provider 'Microsoft.EntityFrameworkCore.Sqlite:6.0.2' with options: None
2022-03-07 16:09:10.246 +00:00 [INF] HTTP GET /cameras responded 200 in 1.2515 ms
2022-03-07 16:09:10.245 +00:00 [INF] Sending file. Request path: '/index.html'. Physical path: '/app/ClientApp/dist/index.html'
   at Microsoft.AspNetCore.Diagnostics.ExceptionHandlerMiddleware.<Invoke>g__Awaited|6_0(ExceptionHandlerMiddleware middleware, HttpContext context, Task task)
   at Serilog.AspNetCore.RequestLoggingMiddleware.Invoke(HttpContext httpContext)
   at Swashbuckle.AspNetCore.Swagger.SwaggerMiddleware.Invoke(HttpContext httpContext, ISwaggerProvider swaggerProvider)
   at Swashbuckle.AspNetCore.SwaggerUI.SwaggerUIMiddleware.Invoke(HttpContext httpContext)
   at OpenAlprWebhookProcessor.Users.JwtMiddleware.Invoke(HttpContext context, IUserService userService) in /src/OpenAlprWebhookProcessor/Users/JwtMiddleware.cs:line 43
   at Microsoft.AspNetCore.Authentication.AuthenticationMiddleware.Invoke(HttpContext context)
   at Microsoft.AspNetCore.Authorization.AuthorizationMiddleware.Invoke(HttpContext context)
   at Microsoft.AspNetCore.Authorization.Policy.AuthorizationMiddlewareResultHandler.HandleAsync(RequestDelegate next, HttpContext context, AuthorizationPolicy policy, PolicyAuthorizationResult authorizeResult)
   at Microsoft.AspNetCore.Routing.EndpointMiddleware.<Invoke>g__AwaitRequestTask|6_0(Endpoint endpoint, Task requestTask, ILogger logger)
   at Microsoft.AspNetCore.Mvc.Infrastructure.ResourceInvoker.<InvokeAsync>g__Logged|17_1(ResourceInvoker invoker)
   at Microsoft.AspNetCore.Mvc.Infrastructure.ResourceInvoker.<InvokeAsync>g__Logged|17_1(ResourceInvoker invoker)
--- End of stack trace from previous location ---
   at Microsoft.AspNetCore.Mvc.Infrastructure.ResourceInvoker.InvokeFilterPipelineAsync()
   at Microsoft.AspNetCore.Mvc.Infrastructure.ResourceInvoker.Next(State& next, Scope& scope, Object& state, Boolean& isCompleted)
   at Microsoft.AspNetCore.Mvc.Infrastructure.ResourceInvoker.Rethrow(ResourceExecutedContextSealed context)
   at Microsoft.AspNetCore.Mvc.Infrastructure.ResourceInvoker.<InvokeNextResourceFilter>g__Awaited|25_0(ResourceInvoker invoker, Task lastTask, State next, Scope scope, Object state, Boolean isCompleted)
--- End of stack trace from previous location ---
   at Microsoft.AspNetCore.Mvc.Infrastructure.ControllerActionInvoker.InvokeInnerFilterAsync()
   at Microsoft.AspNetCore.Mvc.Infrastructure.ControllerActionInvoker.Next(State& next, Scope& scope, Object& state, Boolean& isCompleted)
   at Microsoft.AspNetCore.Mvc.Infrastructure.ControllerActionInvoker.Rethrow(ActionExecutedContextSealed context)
   at Microsoft.AspNetCore.Mvc.Infrastructure.ControllerActionInvoker.<InvokeNextActionFilterAsync>g__Awaited|10_0(ControllerActionInvoker invoker, Task lastTask, State next, Scope scope, Object state, Boolean isCompleted)
   at Microsoft.AspNetCore.Mvc.Infrastructure.ControllerActionInvoker.<InvokeActionMethodAsync>g__Awaited|12_0(ControllerActionInvoker invoker, ValueTask`1 actionResultValueTask)
   at Microsoft.AspNetCore.Mvc.Infrastructure.ActionMethodExecutor.AwaitableObjectResultExecutor.Execute(IActionResultTypeMapper mapper, ObjectMethodExecutor executor, Object controller, Object[] arguments)
   at lambda_method320(Closure , Object )
   at OpenAlprWebhookProcessor.Cameras.CameraController.GetCameras() in /src/OpenAlprWebhookProcessor/Cameras/CameraController.cs:line 47
   at OpenAlprWebhookProcessor.Cameras.GetCameraRequestHandler.HandleAsync() in /src/OpenAlprWebhookProcessor/Cameras/GetCameras/GetCameraRequestHandler.cs:line 42
System.NullReferenceException: Object reference not set to an instance of an object.
2022-03-07 16:09:10.243 +00:00 [ERR] An unhandled exception has occurred while executing the request.
   at Serilog.AspNetCore.RequestLoggingMiddleware.Invoke(HttpContext httpContext)
   at Swashbuckle.AspNetCore.Swagger.SwaggerMiddleware.Invoke(HttpContext httpContext, ISwaggerProvider swaggerProvider)
   at Swashbuckle.AspNetCore.SwaggerUI.SwaggerUIMiddleware.Invoke(HttpContext httpContext)
   at OpenAlprWebhookProcessor.Users.JwtMiddleware.Invoke(HttpContext context, IUserService userService) in /src/OpenAlprWebhookProcessor/Users/JwtMiddleware.cs:line 43
   at Microsoft.AspNetCore.Authentication.AuthenticationMiddleware.Invoke(HttpContext context)
   at Microsoft.AspNetCore.Authorization.AuthorizationMiddleware.Invoke(HttpContext context)
   at Microsoft.AspNetCore.Authorization.Policy.AuthorizationMiddlewareResultHandler.HandleAsync(RequestDelegate next, HttpContext context, AuthorizationPolicy policy, PolicyAuthorizationResult authorizeResult)
   at Microsoft.AspNetCore.Routing.EndpointMiddleware.<Invoke>g__AwaitRequestTask|6_0(Endpoint endpoint, Task requestTask, ILogger logger)
   at Microsoft.AspNetCore.Mvc.Infrastructure.ResourceInvoker.<InvokeAsync>g__Logged|17_1(ResourceInvoker invoker)
   at Microsoft.AspNetCore.Mvc.Infrastructure.ResourceInvoker.<InvokeAsync>g__Logged|17_1(ResourceInvoker invoker)
--- End of stack trace from previous location ---
   at Microsoft.AspNetCore.Mvc.Infrastructure.ResourceInvoker.InvokeFilterPipelineAsync()
   at Microsoft.AspNetCore.Mvc.Infrastructure.ResourceInvoker.Next(State& next, Scope& scope, Object& state, Boolean& isCompleted)
   at Microsoft.AspNetCore.Mvc.Infrastructure.ResourceInvoker.Rethrow(ResourceExecutedContextSealed context)
   at Microsoft.AspNetCore.Mvc.Infrastructure.ResourceInvoker.<InvokeNextResourceFilter>g__Awaited|25_0(ResourceInvoker invoker, Task lastTask, State next, Scope scope, Object state, Boolean isCompleted)
--- End of stack trace from previous location ---
   at Microsoft.AspNetCore.Mvc.Infrastructure.ControllerActionInvoker.InvokeInnerFilterAsync()
   at Microsoft.AspNetCore.Mvc.Infrastructure.ControllerActionInvoker.Next(State& next, Scope& scope, Object& state, Boolean& isCompleted)
   at Microsoft.AspNetCore.Mvc.Infrastructure.ControllerActionInvoker.Rethrow(ActionExecutedContextSealed context)
   at Microsoft.AspNetCore.Mvc.Infrastructure.ControllerActionInvoker.<InvokeNextActionFilterAsync>g__Awaited|10_0(ControllerActionInvoker invoker, Task lastTask, State next, Scope scope, Object state, Boolean isCompleted)
   at Microsoft.AspNetCore.Mvc.Infrastructure.ControllerActionInvoker.<InvokeActionMethodAsync>g__Awaited|12_0(ControllerActionInvoker invoker, ValueTask`1 actionResultValueTask)
   at Microsoft.AspNetCore.Mvc.Infrastructure.ActionMethodExecutor.AwaitableObjectResultExecutor.Execute(IActionResultTypeMapper mapper, ObjectMethodExecutor executor, Object controller, Object[] arguments)
   at lambda_method320(Closure , Object )
   at OpenAlprWebhookProcessor.Cameras.CameraController.GetCameras() in /src/OpenAlprWebhookProcessor/Cameras/CameraController.cs:line 47
   at OpenAlprWebhookProcessor.Cameras.GetCameraRequestHandler.HandleAsync() in /src/OpenAlprWebhookProcessor/Cameras/GetCameras/GetCameraRequestHandler.cs:line 42
System.NullReferenceException: Object reference not set to an instance of an object.
2022-03-07 16:09:10.241 +00:00 [ERR] HTTP GET /cameras responded 500 in 4.2942 ms
2022-03-07 16:09:10.241 +00:00 [INF] Executed endpoint 'OpenAlprWebhookProcessor.Cameras.CameraController.GetCameras (OpenAlprWebhookProcessor)'
2022-03-07 16:09:10.240 +00:00 [INF] Entity Framework Core 6.0.2 initialized 'ProcessorContext' using provider 'Microsoft.EntityFrameworkCore.Sqlite:6.0.2' with options: None
2022-03-07 16:09:10.239 +00:00 [INF] Executing endpoint 'OpenAlprWebhookProcessor.Cameras.CameraController.GetCameras (OpenAlprWebhookProcessor)'
2022-03-07 16:09:10.239 +00:00 [INF] Successfully validated the token.
2022-03-07 16:09:10.238 +00:00 [INF] Entity Framework Core 6.0.2 initialized 'UsersContext' using provider 'Microsoft.EntityFrameworkCore.Sqlite:6.0.2' with options: None
2022-03-07 16:09:09.218 +00:00 [INF] HTTP GET /settings/enrichers responded 200 in 27.1687 ms
2022-03-07 16:09:09.218 +00:00 [INF] Executed endpoint 'OpenAlprWebhookProcessor.Settings.SettingsController.GetEnrichers (OpenAlprWebhookProcessor)'
2022-03-07 16:09:09.203 +00:00 [INF] Executing ObjectResult, writing value of type 'OpenAlprWebhookProcessor.Settings.Enrichers.Enricher'.
2022-03-07 16:09:09.199 +00:00 [WRN] The query uses the 'First'/'FirstOrDefault' operator without 'OrderBy' and filter operators. This may lead to unpredictable results.
2022-03-07 16:09:09.198 +00:00 [INF] Entity Framework Core 6.0.2 initialized 'ProcessorContext' using provider 'Microsoft.EntityFrameworkCore.Sqlite:6.0.2' with options: None
2022-03-07 16:09:09.193 +00:00 [INF] Executing endpoint 'OpenAlprWebhookProcessor.Settings.SettingsController.GetEnrichers (OpenAlprWebhookProcessor)'
2022-03-07 16:09:09.193 +00:00 [INF] Successfully validated the token.
2022-03-07 16:09:09.191 +00:00 [INF] Entity Framework Core 6.0.2 initialized 'UsersContext' using provider 'Microsoft.EntityFrameworkCore.Sqlite:6.0.2' with options: None
2022-03-07 16:09:05.080 +00:00 [INF] HTTP GET /logs responded 200 in 21.1894 ms
2022-03-07 16:09:05.080 +00:00 [INF] Executed endpoint 'OpenAlprWebhookProcessor.SystemLogs.LogsController.GetLogs (OpenAlprWebhookProcessor)'
2022-03-07 16:09:05.079 +00:00 [INF] Executing ObjectResult, writing value of type 'System.Collections.Generic.List`1[[System.String, System.Private.CoreLib, Version=6.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e]]'.
2022-03-07 16:09:05.061 +00:00 [INF] Executing endpoint 'OpenAlprWebhookProcessor.SystemLogs.LogsController.GetLogs (OpenAlprWebhookProcessor)'
2022-03-07 16:09:05.060 +00:00 [INF] Successfully validated the token.
2022-03-07 16:09:05.059 +00:00 [INF] Entity Framework Core 6.0.2 initialized 'UsersContext' using provider 'Microsoft.EntityFrameworkCore.Sqlite:6.0.2' with options: None
2022-03-07 16:09:04.246 +00:00 [INF] HTTP GET /settings/forwards responded 200 in 4.2034 ms
2022-03-07 16:09:04.246 +00:00 [INF] Executed endpoint 'OpenAlprWebhookProcessor.Settings.SettingsController.GetForwards (OpenAlprWebhookProcessor)'
2022-03-07 16:09:04.246 +00:00 [INF] Executing ObjectResult, writing value of type 'System.Collections.Generic.List`1[[OpenAlprWebhookProcessor.Settings.WebhookForward, OpenAlprWebhookProcessor, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null]]'.
2022-03-07 16:09:04.246 +00:00 [INF] Entity Framework Core 6.0.2 initialized 'ProcessorContext' using provider 'Microsoft.EntityFrameworkCore.Sqlite:6.0.2' with options: None
2022-03-07 16:09:04.245 +00:00 [INF] Executing endpoint 'OpenAlprWebhookProcessor.Settings.SettingsController.GetForwards (OpenAlprWebhookProcessor)'
2022-03-07 16:09:04.244 +00:00 [INF] Successfully validated the token.
2022-03-07 16:09:04.243 +00:00 [INF] Entity Framework Core 6.0.2 initialized 'UsersContext' using provider 'Microsoft.EntityFrameworkCore.Sqlite:6.0.2' with options: None
2022-03-07 16:09:03.509 +00:00 [INF] HTTP GET /settings/ignores responded 200 in 19.6356 ms
2022-03-07 16:09:03.509 +00:00 [INF] Executed endpoint 'OpenAlprWebhookProcessor.Settings.SettingsController.GetIgnores (OpenAlprWebhookProcessor)'
2022-03-07 16:09:03.508 +00:00 [INF] Executing ObjectResult, writing value of type 'System.Collections.Generic.List`1[[OpenAlprWebhookProcessor.Settings.Ignore, OpenAlprWebhookProcessor, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null]]'.
2022-03-07 16:09:03.505 +00:00 [INF] Entity Framework Core 6.0.2 initialized 'ProcessorContext' using provider 'Microsoft.EntityFrameworkCore.Sqlite:6.0.2' with options: None
2022-03-07 16:09:03.492 +00:00 [INF] Executing endpoint 'OpenAlprWebhookProcessor.Settings.SettingsController.GetIgnores (OpenAlprWebhookProcessor)'
2022-03-07 16:09:03.492 +00:00 [INF] Successfully validated the token.
2022-03-07 16:09:03.490 +00:00 [INF] Entity Framework Core 6.0.2 initialized 'UsersContext' using provider 'Microsoft.EntityFrameworkCore.Sqlite:6.0.2' with options: None
2022-03-07 16:09:02.042 +00:00 [INF] HTTP GET /alerts/pushover responded 200 in 25.4961 ms
2022-03-07 16:09:02.042 +00:00 [INF] Executed endpoint 'OpenAlprWebhookProcessor.Alerts.AlertsController.GetPushover (OpenAlprWebhookProcessor)'
2022-03-07 16:09:02.041 +00:00 [INF] Executing ObjectResult, writing value of type 'OpenAlprWebhookProcessor.Alerts.Pushover.PushoverRequest'.
2022-03-07 16:09:02.037 +00:00 [WRN] The query uses the 'First'/'FirstOrDefault' operator without 'OrderBy' and filter operators. This may lead to unpredictable results.
2022-03-07 16:09:02.036 +00:00 [INF] Entity Framework Core 6.0.2 initialized 'ProcessorContext' using provider 'Microsoft.EntityFrameworkCore.Sqlite:6.0.2' with options: None
2022-03-07 16:09:02.029 +00:00 [INF] Executing endpoint 'OpenAlprWebhookProcessor.Alerts.AlertsController.GetPushover (OpenAlprWebhookProcessor)'
2022-03-07 16:09:02.029 +00:00 [INF] Successfully validated the token.
2022-03-07 16:09:02.027 +00:00 [INF] Entity Framework Core 6.0.2 initialized 'UsersContext' using provider 'Microsoft.EntityFrameworkCore.Sqlite:6.0.2' with options: None
2022-03-07 16:09:02.026 +00:00 [INF] HTTP GET /alerts responded 200 in 15.3455 ms
2022-03-07 16:09:02.026 +00:00 [INF] Executed endpoint 'OpenAlprWebhookProcessor.Alerts.AlertsController.GetAlerts (OpenAlprWebhookProcessor)'
2022-03-07 16:09:02.026 +00:00 [INF] Executing ObjectResult, writing value of type 'System.Collections.Generic.List`1[[OpenAlprWebhookProcessor.Alerts.Alert, OpenAlprWebhookProcessor, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null]]'.
2022-03-07 16:09:02.022 +00:00 [INF] Entity Framework Core 6.0.2 initialized 'ProcessorContext' using provider 'Microsoft.EntityFrameworkCore.Sqlite:6.0.2' with options: None
2022-03-07 16:09:02.013 +00:00 [INF] Executing endpoint 'OpenAlprWebhookProcessor.Alerts.AlertsController.GetAlerts (OpenAlprWebhookProcessor)'
2022-03-07 16:09:02.013 +00:00 [INF] Successfully validated the token.
2022-03-07 16:09:02.012 +00:00 [INF] Entity Framework Core 6.0.2 initialized 'UsersContext' using provider 'Microsoft.EntityFrameworkCore.Sqlite:6.0.2' with options: None
2022-03-07 16:09:01.527 +00:00 [INF] HTTP GET /settings/agent responded 200 in 16.0533 ms
2022-03-07 16:09:01.527 +00:00 [INF] Executed endpoint 'OpenAlprWebhookProcessor.Settings.SettingsController.GetAgent (OpenAlprWebhookProcessor)'
2022-03-07 16:09:01.521 +00:00 [INF] Executing ObjectResult, writing value of type 'OpenAlprWebhookProcessor.Settings.Agent'.
2022-03-07 16:09:01.521 +00:00 [INF] Entity Framework Core 6.0.2 initialized 'ProcessorContext' using provider 'Microsoft.EntityFrameworkCore.Sqlite:6.0.2' with options: None
2022-03-07 16:09:01.515 +00:00 [INF] Executing endpoint 'OpenAlprWebhookProcessor.Settings.SettingsController.GetAgent (OpenAlprWebhookProcessor)'
2022-03-07 16:09:01.515 +00:00 [INF] Successfully validated the token.
2022-03-07 16:09:01.513 +00:00 [INF] Entity Framework Core 6.0.2 initialized 'UsersContext' using provider 'Microsoft.EntityFrameworkCore.Sqlite:6.0.2' with options: None
2022-03-07 16:09:00.372 +00:00 [INF] HTTP GET /cameras responded 200 in 7.5414 ms
2022-03-07 16:09:00.372 +00:00 [INF] Sending file. Request path: '/index.html'. Physical path: '/app/ClientApp/dist/index.html'
   at Microsoft.AspNetCore.Diagnostics.ExceptionHandlerMiddleware.<Invoke>g__Awaited|6_0(ExceptionHandlerMiddleware middleware, HttpContext context, Task task)
   at Serilog.AspNetCore.RequestLoggingMiddleware.Invoke(HttpContext httpContext)
   at Swashbuckle.AspNetCore.Swagger.SwaggerMiddleware.Invoke(HttpContext httpContext, ISwaggerProvider swaggerProvider)
   at Swashbuckle.AspNetCore.SwaggerUI.SwaggerUIMiddleware.Invoke(HttpContext httpContext)
   at OpenAlprWebhookProcessor.Users.JwtMiddleware.Invoke(HttpContext context, IUserService userService) in /src/OpenAlprWebhookProcessor/Users/JwtMiddleware.cs:line 42
   at Microsoft.AspNetCore.Authentication.AuthenticationMiddleware.Invoke(HttpContext context)
   at Microsoft.AspNetCore.Authorization.AuthorizationMiddleware.Invoke(HttpContext context)
   at Microsoft.AspNetCore.Authorization.Policy.AuthorizationMiddlewareResultHandler.HandleAsync(RequestDelegate next, HttpContext context, AuthorizationPolicy policy, PolicyAuthorizationResult authorizeResult)
   at Microsoft.AspNetCore.Routing.EndpointMiddleware.<Invoke>g__AwaitRequestTask|6_0(Endpoint endpoint, Task requestTask, ILogger logger)
   at Microsoft.AspNetCore.Mvc.Infrastructure.ResourceInvoker.<InvokeAsync>g__Logged|17_1(ResourceInvoker invoker)
   at Microsoft.AspNetCore.Mvc.Infrastructure.ResourceInvoker.<InvokeAsync>g__Logged|17_1(ResourceInvoker invoker)
--- End of stack trace from previous location ---
   at Microsoft.AspNetCore.Mvc.Infrastructure.ResourceInvoker.InvokeFilterPipelineAsync()
   at Microsoft.AspNetCore.Mvc.Infrastructure.ResourceInvoker.Next(State& next, Scope& scope, Object& state, Boolean& isCompleted)
   at Microsoft.AspNetCore.Mvc.Infrastructure.ResourceInvoker.Rethrow(ResourceExecutedContextSealed context)
   at Microsoft.AspNetCore.Mvc.Infrastructure.ResourceInvoker.<InvokeNextResourceFilter>g__Awaited|25_0(ResourceInvoker invoker, Task lastTask, State next, Scope scope, Object state, Boolean isCompleted)
--- End of stack trace from previous location ---
   at Microsoft.AspNetCore.Mvc.Infrastructure.ControllerActionInvoker.InvokeInnerFilterAsync()
   at Microsoft.AspNetCore.Mvc.Infrastructure.ControllerActionInvoker.Next(State& next, Scope& scope, Object& state, Boolean& isCompleted)
   at Microsoft.AspNetCore.Mvc.Infrastructure.ControllerActionInvoker.Rethrow(ActionExecutedContextSealed context)
   at Microsoft.AspNetCore.Mvc.Infrastructure.ControllerActionInvoker.<InvokeNextActionFilterAsync>g__Awaited|10_0(ControllerActionInvoker invoker, Task lastTask, State next, Scope scope, Object state, Boolean isCompleted)
   at Microsoft.AspNetCore.Mvc.Infrastructure.ControllerActionInvoker.<InvokeActionMethodAsync>g__Awaited|12_0(ControllerActionInvoker invoker, ValueTask`1 actionResultValueTask)
   at Microsoft.AspNetCore.Mvc.Infrastructure.ActionMethodExecutor.AwaitableObjectResultExecutor.Execute(IActionResultTypeMapper mapper, ObjectMethodExecutor executor, Object controller, Object[] arguments)
   at lambda_method320(Closure , Object )
   at OpenAlprWebhookProcessor.Cameras.CameraController.GetCameras() in /src/OpenAlprWebhookProcessor/Cameras/CameraController.cs:line 47
   at OpenAlprWebhookProcessor.Cameras.GetCameraRequestHandler.HandleAsync() in /src/OpenAlprWebhookProcessor/Cameras/GetCameras/GetCameraRequestHandler.cs:line 42
System.NullReferenceException: Object reference not set to an instance of an object.
2022-03-07 16:09:00.364 +00:00 [ERR] An unhandled exception has occurred while executing the request.
   at Serilog.AspNetCore.RequestLoggingMiddleware.Invoke(HttpContext httpContext)
   at Swashbuckle.AspNetCore.Swagger.SwaggerMiddleware.Invoke(HttpContext httpContext, ISwaggerProvider swaggerProvider)
   at Swashbuckle.AspNetCore.SwaggerUI.SwaggerUIMiddleware.Invoke(HttpContext httpContext)
   at OpenAlprWebhookProcessor.Users.JwtMiddleware.Invoke(HttpContext context, IUserService userService) in /src/OpenAlprWebhookProcessor/Users/JwtMiddleware.cs:line 42
   at Microsoft.AspNetCore.Authentication.AuthenticationMiddleware.Invoke(HttpContext context)
   at Microsoft.AspNetCore.Authorization.AuthorizationMiddleware.Invoke(HttpContext context)
   at Microsoft.AspNetCore.Authorization.Policy.AuthorizationMiddlewareResultHandler.HandleAsync(RequestDelegate next, HttpContext context, AuthorizationPolicy policy, PolicyAuthorizationResult authorizeResult)
   at Microsoft.AspNetCore.Routing.EndpointMiddleware.<Invoke>g__AwaitRequestTask|6_0(Endpoint endpoint, Task requestTask, ILogger logger)
   at Microsoft.AspNetCore.Mvc.Infrastructure.ResourceInvoker.<InvokeAsync>g__Logged|17_1(ResourceInvoker invoker)
   at Microsoft.AspNetCore.Mvc.Infrastructure.ResourceInvoker.<InvokeAsync>g__Logged|17_1(ResourceInvoker invoker)
--- End of stack trace from previous location ---
   at Microsoft.AspNetCore.Mvc.Infrastructure.ResourceInvoker.InvokeFilterPipelineAsync()
   at Microsoft.AspNetCore.Mvc.Infrastructure.ResourceInvoker.Next(State& next, Scope& scope, Object& state, Boolean& isCompleted)
   at Microsoft.AspNetCore.Mvc.Infrastructure.ResourceInvoker.Rethrow(ResourceExecutedContextSealed context)
   at Microsoft.AspNetCore.Mvc.Infrastructure.ResourceInvoker.<InvokeNextResourceFilter>g__Awaited|25_0(ResourceInvoker invoker, Task lastTask, State next, Scope scope, Object state, Boolean isCompleted)
--- End of stack trace from previous location ---
   at Microsoft.AspNetCore.Mvc.Infrastructure.ControllerActionInvoker.InvokeInnerFilterAsync()
   at Microsoft.AspNetCore.Mvc.Infrastructure.ControllerActionInvoker.Next(State& next, Scope& scope, Object& state, Boolean& isCompleted)
   at Microsoft.AspNetCore.Mvc.Infrastructure.ControllerActionInvoker.Rethrow(ActionExecutedContextSealed context)
   at Microsoft.AspNetCore.Mvc.Infrastructure.ControllerActionInvoker.<InvokeNextActionFilterAsync>g__Awaited|10_0(ControllerActionInvoker invoker, Task lastTask, State next, Scope scope, Object state, Boolean isCompleted)
   at Microsoft.AspNetCore.Mvc.Infrastructure.ControllerActionInvoker.<InvokeActionMethodAsync>g__Awaited|12_0(ControllerActionInvoker invoker, ValueTask`1 actionResultValueTask)
   at Microsoft.AspNetCore.Mvc.Infrastructure.ActionMethodExecutor.AwaitableObjectResultExecutor.Execute(IActionResultTypeMapper mapper, ObjectMethodExecutor executor, Object controller, Object[] arguments)
   at lambda_method320(Closure , Object )
   at OpenAlprWebhookProcessor.Cameras.CameraController.GetCameras() in /src/OpenAlprWebhookProcessor/Cameras/CameraController.cs:line 47
   at OpenAlprWebhookProcessor.Cameras.GetCameraRequestHandler.HandleAsync() in /src/OpenAlprWebhookProcessor/Cameras/GetCameras/GetCameraRequestHandler.cs:line 42
System.NullReferenceException: Object reference not set to an instance of an object.
2022-03-07 16:09:00.362 +00:00 [ERR] HTTP GET /cameras responded 500 in 4.9567 ms
2022-03-07 16:09:00.362 +00:00 [INF] Executed endpoint 'OpenAlprWebhookProcessor.Cameras.CameraController.GetCameras (OpenAlprWebhookProcessor)'
2022-03-07 16:09:00.360 +00:00 [INF] Entity Framework Core 6.0.2 initialized 'ProcessorContext' using provider 'Microsoft.EntityFrameworkCore.Sqlite:6.0.2' with options: None
2022-03-07 16:09:00.359 +00:00 [INF] Executing endpoint 'OpenAlprWebhookProcessor.Cameras.CameraController.GetCameras (OpenAlprWebhookProcessor)'
2022-03-07 16:09:00.359 +00:00 [INF] Successfully validated the token.
2022-03-07 16:09:00.358 +00:00 [INF] Entity Framework Core 6.0.2 initialized 'UsersContext' using provider 'Microsoft.EntityFrameworkCore.Sqlite:6.0.2' with options: None
2022-03-07 16:08:59.074 +00:00 [INF] HTTP GET /settings/forwards responded 200 in 16.6685 ms
2022-03-07 16:08:59.074 +00:00 [INF] Executed endpoint 'OpenAlprWebhookProcessor.Settings.SettingsController.GetForwards (OpenAlprWebhookProcessor)'
2022-03-07 16:08:59.073 +00:00 [INF] Executing ObjectResult, writing value of type 'System.Collections.Generic.List`1[[OpenAlprWebhookProcessor.Settings.WebhookForward, OpenAlprWebhookProcessor, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null]]'.
2022-03-07 16:08:59.069 +00:00 [INF] Entity Framework Core 6.0.2 initialized 'ProcessorContext' using provider 'Microsoft.EntityFrameworkCore.Sqlite:6.0.2' with options: None
2022-03-07 16:08:59.060 +00:00 [INF] Executing endpoint 'OpenAlprWebhookProcessor.Settings.SettingsController.GetForwards (OpenAlprWebhookProcessor)'
2022-03-07 16:08:59.060 +00:00 [INF] Successfully validated the token.
2022-03-07 16:08:59.058 +00:00 [INF] Entity Framework Core 6.0.2 initialized 'UsersContext' using provider 'Microsoft.EntityFrameworkCore.Sqlite:6.0.2' with options: None
2022-03-07 16:08:57.939 +00:00 [INF] HTTP GET /logs responded 200 in 24.4636 ms
2022-03-07 16:08:57.939 +00:00 [INF] Executed endpoint 'OpenAlprWebhookProcessor.SystemLogs.LogsController.GetLogs (OpenAlprWebhookProcessor)'
2022-03-07 16:08:57.939 +00:00 [INF] Executing ObjectResult, writing value of type 'System.Collections.Generic.List`1[[System.String, System.Private.CoreLib, Version=6.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e]]'.
2022-03-07 16:08:57.918 +00:00 [INF] Executing endpoint 'OpenAlprWebhookProcessor.SystemLogs.LogsController.GetLogs (OpenAlprWebhookProcessor)'
2022-03-07 16:08:57.918 +00:00 [INF] Successfully validated the token.
2022-03-07 16:08:57.916 +00:00 [INF] Entity Framework Core 6.0.2 initialized 'UsersContext' using provider 'Microsoft.EntityFrameworkCore.Sqlite:6.0.2' with options: None
2022-03-07 16:08:49.635 +00:00 [INF] HTTP GET /cameras responded 200 in 2.7177 ms
2022-03-07 16:08:49.635 +00:00 [INF] Sending file. Request path: '/index.html'. Physical path: '/app/ClientApp/dist/index.html'
   at Microsoft.AspNetCore.Diagnostics.ExceptionHandlerMiddleware.<Invoke>g__Awaited|6_0(ExceptionHandlerMiddleware middleware, HttpContext context, Task task)
   at Serilog.AspNetCore.RequestLoggingMiddleware.Invoke(HttpContext httpContext)
   at Swashbuckle.AspNetCore.Swagger.SwaggerMiddleware.Invoke(HttpContext httpContext, ISwaggerProvider swaggerProvider)
   at Swashbuckle.AspNetCore.SwaggerUI.SwaggerUIMiddleware.Invoke(HttpContext httpContext)
   at OpenAlprWebhookProcessor.Users.JwtMiddleware.Invoke(HttpContext context, IUserService userService) in /src/OpenAlprWebhookProcessor/Users/JwtMiddleware.cs:line 42
   at Microsoft.AspNetCore.Authentication.AuthenticationMiddleware.Invoke(HttpContext context)
   at Microsoft.AspNetCore.Authorization.AuthorizationMiddleware.Invoke(HttpContext context)
   at Microsoft.AspNetCore.Authorization.Policy.AuthorizationMiddlewareResultHandler.HandleAsync(RequestDelegate next, HttpContext context, AuthorizationPolicy policy, PolicyAuthorizationResult authorizeResult)
   at Microsoft.AspNetCore.Routing.EndpointMiddleware.<Invoke>g__AwaitRequestTask|6_0(Endpoint endpoint, Task requestTask, ILogger logger)
   at Microsoft.AspNetCore.Mvc.Infrastructure.ResourceInvoker.<InvokeAsync>g__Logged|17_1(ResourceInvoker invoker)
   at Microsoft.AspNetCore.Mvc.Infrastructure.ResourceInvoker.<InvokeAsync>g__Logged|17_1(ResourceInvoker invoker)
--- End of stack trace from previous location ---
   at Microsoft.AspNetCore.Mvc.Infrastructure.ResourceInvoker.InvokeFilterPipelineAsync()
   at Microsoft.AspNetCore.Mvc.Infrastructure.ResourceInvoker.Next(State& next, Scope& scope, Object& state, Boolean& isCompleted)
   at Microsoft.AspNetCore.Mvc.Infrastructure.ResourceInvoker.Rethrow(ResourceExecutedContextSealed context)
   at Microsoft.AspNetCore.Mvc.Infrastructure.ResourceInvoker.<InvokeNextResourceFilter>g__Awaited|25_0(ResourceInvoker invoker, Task lastTask, State next, Scope scope, Object state, Boolean isCompleted)
--- End of stack trace from previous location ---
   at Microsoft.AspNetCore.Mvc.Infrastructure.ControllerActionInvoker.InvokeInnerFilterAsync()
   at Microsoft.AspNetCore.Mvc.Infrastructure.ControllerActionInvoker.Next(State& next, Scope& scope, Object& state, Boolean& isCompleted)
   at Microsoft.AspNetCore.Mvc.Infrastructure.ControllerActionInvoker.Rethrow(ActionExecutedContextSealed context)
   at Microsoft.AspNetCore.Mvc.Infrastructure.ControllerActionInvoker.<InvokeNextActionFilterAsync>g__Awaited|10_0(ControllerActionInvoker invoker, Task lastTask, State next, Scope scope, Object state, Boolean isCompleted)
   at Microsoft.AspNetCore.Mvc.Infrastructure.ControllerActionInvoker.<InvokeActionMethodAsync>g__Awaited|12_0(ControllerActionInvoker invoker, ValueTask`1 actionResultValueTask)
   at Microsoft.AspNetCore.Mvc.Infrastructure.ActionMethodExecutor.AwaitableObjectResultExecutor.Execute(IActionResultTypeMapper mapper, ObjectMethodExecutor executor, Object controller, Object[] arguments)
   at lambda_method320(Closure , Object )
   at OpenAlprWebhookProcessor.Cameras.CameraController.GetCameras() in /src/OpenAlprWebhookProcessor/Cameras/CameraController.cs:line 47
   at OpenAlprWebhookProcessor.Cameras.GetCameraRequestHandler.HandleAsync() in /src/OpenAlprWebhookProcessor/Cameras/GetCameras/GetCameraRequestHandler.cs:line 42
System.NullReferenceException: Object reference not set to an instance of an object.
2022-03-07 16:08:49.631 +00:00 [ERR] An unhandled exception has occurred while executing the request.
   at Serilog.AspNetCore.RequestLoggingMiddleware.Invoke(HttpContext httpContext)
   at Swashbuckle.AspNetCore.Swagger.SwaggerMiddleware.Invoke(HttpContext httpContext, ISwaggerProvider swaggerProvider)
   at Swashbuckle.AspNetCore.SwaggerUI.SwaggerUIMiddleware.Invoke(HttpContext httpContext)
   at OpenAlprWebhookProcessor.Users.JwtMiddleware.Invoke(HttpContext context, IUserService userService) in /src/OpenAlprWebhookProcessor/Users/JwtMiddleware.cs:line 42
   at Microsoft.AspNetCore.Authentication.AuthenticationMiddleware.Invoke(HttpContext context)
   at Microsoft.AspNetCore.Authorization.AuthorizationMiddleware.Invoke(HttpContext context)
   at Microsoft.AspNetCore.Authorization.Policy.AuthorizationMiddlewareResultHandler.HandleAsync(RequestDelegate next, HttpContext context, AuthorizationPolicy policy, PolicyAuthorizationResult authorizeResult)
   at Microsoft.AspNetCore.Routing.EndpointMiddleware.<Invoke>g__AwaitRequestTask|6_0(Endpoint endpoint, Task requestTask, ILogger logger)
   at Microsoft.AspNetCore.Mvc.Infrastructure.ResourceInvoker.<InvokeAsync>g__Logged|17_1(ResourceInvoker invoker)
   at Microsoft.AspNetCore.Mvc.Infrastructure.ResourceInvoker.<InvokeAsync>g__Logged|17_1(ResourceInvoker invoker)
--- End of stack trace from previous location ---
   at Microsoft.AspNetCore.Mvc.Infrastructure.ResourceInvoker.InvokeFilterPipelineAsync()
   at Microsoft.AspNetCore.Mvc.Infrastructure.ResourceInvoker.Next(State& next, Scope& scope, Object& state, Boolean& isCompleted)
   at Microsoft.AspNetCore.Mvc.Infrastructure.ResourceInvoker.Rethrow(ResourceExecutedContextSealed context)
   at Microsoft.AspNetCore.Mvc.Infrastructure.ResourceInvoker.<InvokeNextResourceFilter>g__Awaited|25_0(ResourceInvoker invoker, Task lastTask, State next, Scope scope, Object state, Boolean isCompleted)
--- End of stack trace from previous location ---
   at Microsoft.AspNetCore.Mvc.Infrastructure.ControllerActionInvoker.InvokeInnerFilterAsync()
   at Microsoft.AspNetCore.Mvc.Infrastructure.ControllerActionInvoker.Next(State& next, Scope& scope, Object& state, Boolean& isCompleted)
   at Microsoft.AspNetCore.Mvc.Infrastructure.ControllerActionInvoker.Rethrow(ActionExecutedContextSealed context)
   at Microsoft.AspNetCore.Mvc.Infrastructure.ControllerActionInvoker.<InvokeNextActionFilterAsync>g__Awaited|10_0(ControllerActionInvoker invoker, Task lastTask, State next, Scope scope, Object state, Boolean isCompleted)
   at Microsoft.AspNetCore.Mvc.Infrastructure.ControllerActionInvoker.<InvokeActionMethodAsync>g__Awaited|12_0(ControllerActionInvoker invoker, ValueTask`1 actionResultValueTask)
   at Microsoft.AspNetCore.Mvc.Infrastructure.ActionMethodExecutor.AwaitableObjectResultExecutor.Execute(IActionResultTypeMapper mapper, ObjectMethodExecutor executor, Object controller, Object[] arguments)
   at lambda_method320(Closure , Object )
   at OpenAlprWebhookProcessor.Cameras.CameraController.GetCameras() in /src/OpenAlprWebhookProcessor/Cameras/CameraController.cs:line 47
   at OpenAlprWebhookProcessor.Cameras.GetCameraRequestHandler.HandleAsync() in /src/OpenAlprWebhookProcessor/Cameras/GetCameras/GetCameraRequestHandler.cs:line 42
System.NullReferenceException: Object reference not set to an instance of an object.
2022-03-07 16:08:49.629 +00:00 [ERR] HTTP GET /cameras responded 500 in 5.8849 ms
2022-03-07 16:08:49.628 +00:00 [INF] Executed endpoint 'OpenAlprWebhookProcessor.Cameras.CameraController.GetCameras (OpenAlprWebhookProcessor)'
2022-03-07 16:08:49.626 +00:00 [INF] Entity Framework Core 6.0.2 initialized 'ProcessorContext' using provider 'Microsoft.EntityFrameworkCore.Sqlite:6.0.2' with options: None
2022-03-07 16:08:49.625 +00:00 [INF] Executing endpoint 'OpenAlprWebhookProcessor.Cameras.CameraController.GetCameras (OpenAlprWebhookProcessor)'
2022-03-07 16:08:49.625 +00:00 [INF] Successfully validated the token.
2022-03-07 16:08:49.623 +00:00 [INF] Entity Framework Core 6.0.2 initialized 'UsersContext' using provider 'Microsoft.EntityFrameworkCore.Sqlite:6.0.2' with options: None
2022-03-07 16:08:49.598 +00:00 [INF] HTTP POST /cameras responded 200 in 112.2773 ms
2022-03-07 16:08:49.598 +00:00 [INF] Executed endpoint 'OpenAlprWebhookProcessor.Cameras.CameraController.UpsertCamera (OpenAlprWebhookProcessor)'
2022-03-07 16:08:49.590 +00:00 [INF] Entity Framework Core 6.0.2 initialized 'ProcessorContext' using provider 'Microsoft.EntityFrameworkCore.Sqlite:6.0.2' with options: None
2022-03-07 16:08:49.508 +00:00 [INF] Entity Framework Core 6.0.2 initialized 'ProcessorContext' using provider 'Microsoft.EntityFrameworkCore.Sqlite:6.0.2' with options: None
2022-03-07 16:08:49.489 +00:00 [INF] Executing endpoint 'OpenAlprWebhookProcessor.Cameras.CameraController.UpsertCamera (OpenAlprWebhookProcessor)'
2022-03-07 16:08:49.489 +00:00 [INF] Successfully validated the token.
2022-03-07 16:08:49.487 +00:00 [INF] Entity Framework Core 6.0.2 initialized 'UsersContext' using provider 'Microsoft.EntityFrameworkCore.Sqlite:6.0.2' with options: None
2022-03-07 16:08:49.486 +00:00 [INF] CORS policy execution successful.
2022-03-07 16:08:37.510 +00:00 [INF] HTTP GET /cameras/undefined/zoomAndFocus responded 400 in 11.3883 ms
2022-03-07 16:08:37.510 +00:00 [INF] Executed endpoint 'OpenAlprWebhookProcessor.Cameras.CameraController.GetZoomAndFocus (OpenAlprWebhookProcessor)'
2022-03-07 16:08:37.508 +00:00 [INF] Executing BadRequestObjectResult, writing value of type 'Microsoft.AspNetCore.Mvc.ValidationProblemDetails'.
2022-03-07 16:08:37.501 +00:00 [INF] Executing endpoint 'OpenAlprWebhookProcessor.Cameras.CameraController.GetZoomAndFocus (OpenAlprWebhookProcessor)'
2022-03-07 16:08:37.501 +00:00 [INF] Successfully validated the token.
2022-03-07 16:08:37.499 +00:00 [INF] Entity Framework Core 6.0.2 initialized 'UsersContext' using provider 'Microsoft.EntityFrameworkCore.Sqlite:6.0.2' with options: None
2022-03-07 16:08:36.465 +00:00 [INF] HTTP GET /cameras responded 200 in 34.2811 ms
2022-03-07 16:08:36.465 +00:00 [INF] Executed endpoint 'OpenAlprWebhookProcessor.Cameras.CameraController.GetCameras (OpenAlprWebhookProcessor)'
2022-03-07 16:08:36.448 +00:00 [INF] Executing ObjectResult, writing value of type 'System.Collections.Generic.List`1[[OpenAlprWebhookProcessor.Cameras.Camera, OpenAlprWebhookProcessor, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null]]'.
2022-03-07 16:08:36.446 +00:00 [INF] Entity Framework Core 6.0.2 initialized 'ProcessorContext' using provider 'Microsoft.EntityFrameworkCore.Sqlite:6.0.2' with options: None
2022-03-07 16:08:36.435 +00:00 [INF] Executing endpoint 'OpenAlprWebhookProcessor.Cameras.CameraController.GetCameras (OpenAlprWebhookProcessor)'
2022-03-07 16:08:36.434 +00:00 [INF] Successfully validated the token.
2022-03-07 16:08:36.432 +00:00 [INF] Entity Framework Core 6.0.2 initialized 'UsersContext' using provider 'Microsoft.EntityFrameworkCore.Sqlite:6.0.2' with options: None
   at Microsoft.AspNetCore.Diagnostics.ExceptionHandlerMiddleware.HandleException(HttpContext context, ExceptionDispatchInfo edi)
   at Serilog.AspNetCore.RequestLoggingMiddleware.Invoke(HttpContext httpContext)
   at Swashbuckle.AspNetCore.Swagger.SwaggerMiddleware.Invoke(HttpContext httpContext, ISwaggerProvider swaggerProvider)
   at Swashbuckle.AspNetCore.SwaggerUI.SwaggerUIMiddleware.Invoke(HttpContext httpContext)
   at OpenAlprWebhookProcessor.Users.JwtMiddleware.Invoke(HttpContext context, IUserService userService) in /src/OpenAlprWebhookProcessor/Users/JwtMiddleware.cs:line 42
   at Microsoft.AspNetCore.Authentication.AuthenticationMiddleware.Invoke(HttpContext context)
   at Microsoft.AspNetCore.Authorization.AuthorizationMiddleware.Invoke(HttpContext context)
   at Microsoft.AspNetCore.Routing.EndpointMiddleware.Invoke(HttpContext httpContext)
   at Microsoft.AspNetCore.Builder.UseExtensions.<>c__DisplayClass0_1.<Use>b__1(HttpContext context)
   at Microsoft.AspNetCore.SpaServices.SpaDefaultPageMiddleware.<>c__DisplayClass0_0.<Attach>b__0(HttpContext context, Func`1 next)
   at Microsoft.AspNetCore.Builder.UseExtensions.<>c__DisplayClass0_2.<Use>b__2()
   at Microsoft.AspNetCore.StaticFiles.StaticFileMiddleware.Invoke(HttpContext context)
   at Microsoft.AspNetCore.Builder.UseExtensions.<>c__DisplayClass0_1.<Use>b__1(HttpContext context)
   at Microsoft.AspNetCore.SpaServices.SpaDefaultPageMiddleware.<>c__DisplayClass0_0.<Attach>b__1(HttpContext context, Func`1 next)

Your application is running in Production mode, so make sure it has been published, or that you have built your SPA manually. Alternatively you may wish to switch to the Development environment.
System.InvalidOperationException: The SPA default page middleware could not return the default page '/index.html' because it was not found, and no other middleware handled the request.
2022-03-07 16:08:01.848 +00:00 [ERR] An exception was thrown attempting to execute the error handler.
   at Serilog.AspNetCore.RequestLoggingMiddleware.Invoke(HttpContext httpContext)
   at Swashbuckle.AspNetCore.Swagger.SwaggerMiddleware.Invoke(HttpContext httpContext, ISwaggerProvider swaggerProvider)
   at Swashbuckle.AspNetCore.SwaggerUI.SwaggerUIMiddleware.Invoke(HttpContext httpContext)
   at OpenAlprWebhookProcessor.Users.JwtMiddleware.Invoke(HttpContext context, IUserService userService) in /src/OpenAlprWebhookProcessor/Users/JwtMiddleware.cs:line 42
   at Microsoft.AspNetCore.Authentication.AuthenticationMiddleware.Invoke(HttpContext context)
   at Microsoft.AspNetCore.Authorization.AuthorizationMiddleware.Invoke(HttpContext context)
   at Microsoft.AspNetCore.Routing.EndpointMiddleware.Invoke(HttpContext httpContext)
   at Microsoft.AspNetCore.Builder.UseExtensions.<>c__DisplayClass0_1.<Use>b__1(HttpContext context)
   at Microsoft.AspNetCore.SpaServices.SpaDefaultPageMiddleware.<>c__DisplayClass0_0.<Attach>b__0(HttpContext context, Func`1 next)
   at Microsoft.AspNetCore.Builder.UseExtensions.<>c__DisplayClass0_2.<Use>b__2()
   at Microsoft.AspNetCore.StaticFiles.StaticFileMiddleware.Invoke(HttpContext context)
   at Microsoft.AspNetCore.Builder.UseExtensions.<>c__DisplayClass0_1.<Use>b__1(HttpContext context)
   at Microsoft.AspNetCore.SpaServices.SpaDefaultPageMiddleware.<>c__DisplayClass0_0.<Attach>b__1(HttpContext context, Func`1 next)

Your application is running in Production mode, so make sure it has been published, or that you have built your SPA manually. Alternatively you may wish to switch to the Development environment.
System.InvalidOperationException: The SPA default page middleware could not return the default page '/index.html' because it was not found, and no other middleware handled the request.
2022-03-07 16:08:01.847 +00:00 [ERR] HTTP POST /webhook responded 500 in 0.3287 ms
   at Microsoft.AspNetCore.Diagnostics.ExceptionHandlerMiddleware.<Invoke>g__Awaited|6_0(ExceptionHandlerMiddleware middleware, HttpContext context, Task task)
   at Serilog.AspNetCore.RequestLoggingMiddleware.Invoke(HttpContext httpContext)
   at Swashbuckle.AspNetCore.Swagger.SwaggerMiddleware.Invoke(HttpContext httpContext, ISwaggerProvider swaggerProvider)
   at Swashbuckle.AspNetCore.SwaggerUI.SwaggerUIMiddleware.Invoke(HttpContext httpContext)
   at OpenAlprWebhookProcessor.Users.JwtMiddleware.Invoke(HttpContext context, IUserService userService) in /src/OpenAlprWebhookProcessor/Users/JwtMiddleware.cs:line 42
   at Microsoft.AspNetCore.Authentication.AuthenticationMiddleware.Invoke(HttpContext context)
   at Microsoft.AspNetCore.Authorization.AuthorizationMiddleware.Invoke(HttpContext context)
   at Microsoft.AspNetCore.Routing.EndpointMiddleware.<Invoke>g__AwaitRequestTask|6_0(Endpoint endpoint, Task requestTask, ILogger logger)
   at Microsoft.AspNetCore.Mvc.Infrastructure.ResourceInvoker.<InvokeAsync>g__Logged|17_1(ResourceInvoker invoker)
   at Microsoft.AspNetCore.Mvc.Infrastructure.ResourceInvoker.<InvokeAsync>g__Logged|17_1(ResourceInvoker invoker)
--- End of stack trace from previous location ---
   at Microsoft.AspNetCore.Mvc.Infrastructure.ResourceInvoker.InvokeFilterPipelineAsync()
   at Microsoft.AspNetCore.Mvc.Infrastructure.ResourceInvoker.Next(State& next, Scope& scope, Object& state, Boolean& isCompleted)
   at Microsoft.AspNetCore.Mvc.Infrastructure.ResourceInvoker.Rethrow(ResourceExecutedContextSealed context)
   at Microsoft.AspNetCore.Mvc.Infrastructure.ResourceInvoker.<InvokeNextResourceFilter>g__Awaited|25_0(ResourceInvoker invoker, Task lastTask, State next, Scope scope, Object state, Boolean isCompleted)
--- End of stack trace from previous location ---
   at Microsoft.AspNetCore.Mvc.Infrastructure.ControllerActionInvoker.InvokeInnerFilterAsync()
   at Microsoft.AspNetCore.Mvc.Infrastructure.ControllerActionInvoker.Next(State& next, Scope& scope, Object& state, Boolean& isCompleted)
   at Microsoft.AspNetCore.Mvc.Infrastructure.ControllerActionInvoker.Rethrow(ActionExecutedContextSealed context)
   at Microsoft.AspNetCore.Mvc.Infrastructure.ControllerActionInvoker.<InvokeNextActionFilterAsync>g__Awaited|10_0(ControllerActionInvoker invoker, Task lastTask, State next, Scope scope, Object state, Boolean isCompleted)
   at Microsoft.AspNetCore.Mvc.Infrastructure.ControllerActionInvoker.<InvokeActionMethodAsync>g__Awaited|12_0(ControllerActionInvoker invoker, ValueTask`1 actionResultValueTask)
   at Microsoft.AspNetCore.Mvc.Infrastructure.ActionMethodExecutor.TaskOfActionResultExecutor.Execute(IActionResultTypeMapper mapper, ObjectMethodExecutor executor, Object controller, Object[] arguments)
   at lambda_method312(Closure , Object )
   at OpenAlprWebhookProcessor.WebhookProcessor.WebhookController.Post(CancellationToken cancellationToken) in /src/OpenAlprWebhookProcessor/WebhookProcessor/WebhookController.cs:line 65
   at OpenAlprWebhookProcessor.WebhookProcessor.GroupWebhookHandler.HandleWebhookAsync(Webhook webhook, Boolean isBulkImport, CancellationToken cancellationToken) in /src/OpenAlprWebhookProcessor/WebhookProcessor/GroupWebhookHandler.cs:line 54
System.NullReferenceException: Object reference not set to an instance of an object.
2022-03-07 16:08:01.846 +00:00 [ERR] An unhandled exception has occurred while executing the request.
   at Serilog.AspNetCore.RequestLoggingMiddleware.Invoke(HttpContext httpContext)
   at Swashbuckle.AspNetCore.Swagger.SwaggerMiddleware.Invoke(HttpContext httpContext, ISwaggerProvider swaggerProvider)
   at Swashbuckle.AspNetCore.SwaggerUI.SwaggerUIMiddleware.Invoke(HttpContext httpContext)
   at OpenAlprWebhookProcessor.Users.JwtMiddleware.Invoke(HttpContext context, IUserService userService) in /src/OpenAlprWebhookProcessor/Users/JwtMiddleware.cs:line 42
   at Microsoft.AspNetCore.Authentication.AuthenticationMiddleware.Invoke(HttpContext context)
   at Microsoft.AspNetCore.Authorization.AuthorizationMiddleware.Invoke(HttpContext context)
   at Microsoft.AspNetCore.Routing.EndpointMiddleware.<Invoke>g__AwaitRequestTask|6_0(Endpoint endpoint, Task requestTask, ILogger logger)
   at Microsoft.AspNetCore.Mvc.Infrastructure.ResourceInvoker.<InvokeAsync>g__Logged|17_1(ResourceInvoker invoker)
   at Microsoft.AspNetCore.Mvc.Infrastructure.ResourceInvoker.<InvokeAsync>g__Logged|17_1(ResourceInvoker invoker)
--- End of stack trace from previous location ---
   at Microsoft.AspNetCore.Mvc.Infrastructure.ResourceInvoker.InvokeFilterPipelineAsync()
   at Microsoft.AspNetCore.Mvc.Infrastructure.ResourceInvoker.Next(State& next, Scope& scope, Object& state, Boolean& isCompleted)
   at Microsoft.AspNetCore.Mvc.Infrastructure.ResourceInvoker.Rethrow(ResourceExecutedContextSealed context)
   at Microsoft.AspNetCore.Mvc.Infrastructure.ResourceInvoker.<InvokeNextResourceFilter>g__Awaited|25_0(ResourceInvoker invoker, Task lastTask, State next, Scope scope, Object state, Boolean isCompleted)
--- End of stack trace from previous location ---
   at Microsoft.AspNetCore.Mvc.Infrastructure.ControllerActionInvoker.InvokeInnerFilterAsync()
   at Microsoft.AspNetCore.Mvc.Infrastructure.ControllerActionInvoker.Next(State& next, Scope& scope, Object& state, Boolean& isCompleted)
   at Microsoft.AspNetCore.Mvc.Infrastructure.ControllerActionInvoker.Rethrow(ActionExecutedContextSealed context)
   at Microsoft.AspNetCore.Mvc.Infrastructure.ControllerActionInvoker.<InvokeNextActionFilterAsync>g__Awaited|10_0(ControllerActionInvoker invoker, Task lastTask, State next, Scope scope, Object state, Boolean isCompleted)
   at Microsoft.AspNetCore.Mvc.Infrastructure.ControllerActionInvoker.<InvokeActionMethodAsync>g__Awaited|12_0(ControllerActionInvoker invoker, ValueTask`1 actionResultValueTask)
   at Microsoft.AspNetCore.Mvc.Infrastructure.ActionMethodExecutor.TaskOfActionResultExecutor.Execute(IActionResultTypeMapper mapper, ObjectMethodExecutor executor, Object controller, Object[] arguments)
   at lambda_method312(Closure , Object )
   at OpenAlprWebhookProcessor.WebhookProcessor.WebhookController.Post(CancellationToken cancellationToken) in /src/OpenAlprWebhookProcessor/WebhookProcessor/WebhookController.cs:line 65
   at OpenAlprWebhookProcessor.WebhookProcessor.GroupWebhookHandler.HandleWebhookAsync(Webhook webhook, Boolean isBulkImport, CancellationToken cancellationToken) in /src/OpenAlprWebhookProcessor/WebhookProcessor/GroupWebhookHandler.cs:line 54
System.NullReferenceException: Object reference not set to an instance of an object.
2022-03-07 16:08:01.845 +00:00 [ERR] HTTP POST /webhook responded 500 in 6.4085 ms
2022-03-07 16:08:01.844 +00:00 [INF] Executed endpoint 'OpenAlprWebhookProcessor.WebhookProcessor.WebhookController.Post (OpenAlprWebhookProcessor)'
2022-03-07 16:08:01.843 +00:00 [INF] Entity Framework Core 6.0.2 initialized 'ProcessorContext' using provider 'Microsoft.EntityFrameworkCore.Sqlite:6.0.2' with options: None
2022-03-07 16:08:01.842 +00:00 [INF] parsing plate group webhook
2022-03-07 16:08:01.841 +00:00 [INF] request received from: ::ffff:10.200.200.19
2022-03-07 16:08:01.838 +00:00 [INF] Executing endpoint 'OpenAlprWebhookProcessor.WebhookProcessor.WebhookController.Post (OpenAlprWebhookProcessor)'
   at Microsoft.AspNetCore.Diagnostics.ExceptionHandlerMiddleware.HandleException(HttpContext context, ExceptionDispatchInfo edi)
   at Serilog.AspNetCore.RequestLoggingMiddleware.Invoke(HttpContext httpContext)
   at Swashbuckle.AspNetCore.Swagger.SwaggerMiddleware.Invoke(HttpContext httpContext, ISwaggerProvider swaggerProvider)
 
Last edited:

mlapaglia

Getting comfortable
Joined
Apr 6, 2016
Messages
849
Reaction score
506
You're getting 500 errors when the processor is getting commands to delete cameras that don't exist anymore. System.ArgumentException: Camera not found

try v4.2.3-alpha1 and see if you get better results.
 
Last edited:

biggen

Known around here
Joined
May 6, 2018
Messages
2,572
Reaction score
2,855
Alright! That build allows me to add a camera from scratch with no problem.

Seeing a few errors in the logs however. Wanted to paste them in for you to look over:

Code:
2022-03-08 15:53:39.350 +00:00 [INF] Executing endpoint 'OpenAlprWebhookProcessor.SystemLogs.LogsController.GetLogs (OpenAlprWebhookProcessor)'
2022-03-08 15:53:39.350 +00:00 [INF] Successfully validated the token.
2022-03-08 15:53:39.348 +00:00 [INF] Entity Framework Core 6.0.2 initialized 'UsersContext' using provider 'Microsoft.EntityFrameworkCore.Sqlite:6.0.2' with options: None
2022-03-08 15:53:38.716 +00:00 [INF] HTTP GET /settings/enrichers responded 200 in 35.0039 ms
2022-03-08 15:53:38.716 +00:00 [INF] Executed endpoint 'OpenAlprWebhookProcessor.Settings.SettingsController.GetEnrichers (OpenAlprWebhookProcessor)'
2022-03-08 15:53:38.697 +00:00 [INF] Executing ObjectResult, writing value of type 'OpenAlprWebhookProcessor.Settings.Enrichers.Enricher'.
2022-03-08 15:53:38.693 +00:00 [WRN] The query uses the 'First'/'FirstOrDefault' operator without 'OrderBy' and filter operators. This may lead to unpredictable results.
2022-03-08 15:53:38.692 +00:00 [INF] Entity Framework Core 6.0.2 initialized 'ProcessorContext' using provider 'Microsoft.EntityFrameworkCore.Sqlite:6.0.2' with options: None
2022-03-08 15:53:38.685 +00:00 [INF] Executing endpoint 'OpenAlprWebhookProcessor.Settings.SettingsController.GetEnrichers (OpenAlprWebhookProcessor)'
2022-03-08 15:53:38.684 +00:00 [INF] Successfully validated the token.
2022-03-08 15:53:38.683 +00:00 [INF] Entity Framework Core 6.0.2 initialized 'UsersContext' using provider 'Microsoft.EntityFrameworkCore.Sqlite:6.0.2' with options: None
2022-03-08 15:53:38.024 +00:00 [INF] HTTP GET /logs responded 200 in 2.9926 ms
2022-03-08 15:53:38.024 +00:00 [INF] Executed endpoint 'OpenAlprWebhookProcessor.SystemLogs.LogsController.GetLogs (OpenAlprWebhookProcessor)'
2022-03-08 15:53:38.024 +00:00 [INF] Executing ObjectResult, writing value of type 'System.Collections.Generic.List`1[[System.String, System.Private.CoreLib, Version=6.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e]]'.
2022-03-08 15:53:38.023 +00:00 [INF] Executing endpoint 'OpenAlprWebhookProcessor.SystemLogs.LogsController.GetLogs (OpenAlprWebhookProcessor)'
2022-03-08 15:53:38.023 +00:00 [INF] Successfully validated the token.
2022-03-08 15:53:38.021 +00:00 [INF] Entity Framework Core 6.0.2 initialized 'UsersContext' using provider 'Microsoft.EntityFrameworkCore.Sqlite:6.0.2' with options: None
2022-03-08 15:53:37.024 +00:00 [INF] HTTP GET /settings/forwards responded 200 in 13.5376 ms
2022-03-08 15:53:37.024 +00:00 [INF] Executed endpoint 'OpenAlprWebhookProcessor.Settings.SettingsController.GetForwards (OpenAlprWebhookProcessor)'
2022-03-08 15:53:37.023 +00:00 [INF] Executing ObjectResult, writing value of type 'System.Collections.Generic.List`1[[OpenAlprWebhookProcessor.Settings.WebhookForward, OpenAlprWebhookProcessor, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null]]'.
2022-03-08 15:53:37.020 +00:00 [INF] Entity Framework Core 6.0.2 initialized 'ProcessorContext' using provider 'Microsoft.EntityFrameworkCore.Sqlite:6.0.2' with options: None
2022-03-08 15:53:37.013 +00:00 [INF] Executing endpoint 'OpenAlprWebhookProcessor.Settings.SettingsController.GetForwards (OpenAlprWebhookProcessor)'
2022-03-08 15:53:37.012 +00:00 [INF] Successfully validated the token.
2022-03-08 15:53:37.011 +00:00 [INF] Entity Framework Core 6.0.2 initialized 'UsersContext' using provider 'Microsoft.EntityFrameworkCore.Sqlite:6.0.2' with options: None
   at Microsoft.AspNetCore.Diagnostics.ExceptionHandlerMiddleware.HandleException(HttpContext context, ExceptionDispatchInfo edi)
   at Serilog.AspNetCore.RequestLoggingMiddleware.Invoke(HttpContext httpContext)
   at Swashbuckle.AspNetCore.Swagger.SwaggerMiddleware.Invoke(HttpContext httpContext, ISwaggerProvider swaggerProvider)
   at Swashbuckle.AspNetCore.SwaggerUI.SwaggerUIMiddleware.Invoke(HttpContext httpContext)
   at OpenAlprWebhookProcessor.Users.JwtMiddleware.Invoke(HttpContext context, IUserService userService) in /src/OpenAlprWebhookProcessor/Users/JwtMiddleware.cs:line 42
   at Microsoft.AspNetCore.Authentication.AuthenticationMiddleware.Invoke(HttpContext context)
   at Microsoft.AspNetCore.Authorization.AuthorizationMiddleware.Invoke(HttpContext context)
   at Microsoft.AspNetCore.Routing.EndpointMiddleware.Invoke(HttpContext httpContext)
   at Microsoft.AspNetCore.Builder.UseExtensions.<>c__DisplayClass0_1.<Use>b__1(HttpContext context)
   at Microsoft.AspNetCore.SpaServices.SpaDefaultPageMiddleware.<>c__DisplayClass0_0.<Attach>b__0(HttpContext context, Func`1 next)
   at Microsoft.AspNetCore.Builder.UseExtensions.<>c__DisplayClass0_2.<Use>b__2()
   at Microsoft.AspNetCore.StaticFiles.StaticFileMiddleware.Invoke(HttpContext context)
   at Microsoft.AspNetCore.Builder.UseExtensions.<>c__DisplayClass0_1.<Use>b__1(HttpContext context)
   at Microsoft.AspNetCore.SpaServices.SpaDefaultPageMiddleware.<>c__DisplayClass0_0.<Attach>b__1(HttpContext context, Func`1 next)

Your application is running in Production mode, so make sure it has been published, or that you have built your SPA manually. Alternatively you may wish to switch to the Development environment.
System.InvalidOperationException: The SPA default page middleware could not return the default page '/index.html' because it was not found, and no other middleware handled the request.
2022-03-08 15:52:51.585 +00:00 [ERR] An exception was thrown attempting to execute the error handler.
   at Serilog.AspNetCore.RequestLoggingMiddleware.Invoke(HttpContext httpContext)
   at Swashbuckle.AspNetCore.Swagger.SwaggerMiddleware.Invoke(HttpContext httpContext, ISwaggerProvider swaggerProvider)
   at Swashbuckle.AspNetCore.SwaggerUI.SwaggerUIMiddleware.Invoke(HttpContext httpContext)
   at OpenAlprWebhookProcessor.Users.JwtMiddleware.Invoke(HttpContext context, IUserService userService) in /src/OpenAlprWebhookProcessor/Users/JwtMiddleware.cs:line 42
   at Microsoft.AspNetCore.Authentication.AuthenticationMiddleware.Invoke(HttpContext context)
   at Microsoft.AspNetCore.Authorization.AuthorizationMiddleware.Invoke(HttpContext context)
   at Microsoft.AspNetCore.Routing.EndpointMiddleware.Invoke(HttpContext httpContext)
   at Microsoft.AspNetCore.Builder.UseExtensions.<>c__DisplayClass0_1.<Use>b__1(HttpContext context)
   at Microsoft.AspNetCore.SpaServices.SpaDefaultPageMiddleware.<>c__DisplayClass0_0.<Attach>b__0(HttpContext context, Func`1 next)
   at Microsoft.AspNetCore.Builder.UseExtensions.<>c__DisplayClass0_2.<Use>b__2()
   at Microsoft.AspNetCore.StaticFiles.StaticFileMiddleware.Invoke(HttpContext context)
   at Microsoft.AspNetCore.Builder.UseExtensions.<>c__DisplayClass0_1.<Use>b__1(HttpContext context)
   at Microsoft.AspNetCore.SpaServices.SpaDefaultPageMiddleware.<>c__DisplayClass0_0.<Attach>b__1(HttpContext context, Func`1 next)

Your application is running in Production mode, so make sure it has been published, or that you have built your SPA manually. Alternatively you may wish to switch to the Development environment.
System.InvalidOperationException: The SPA default page middleware could not return the default page '/index.html' because it was not found, and no other middleware handled the request.
2022-03-08 15:52:51.584 +00:00 [ERR] HTTP POST /webhook responded 500 in 1.5477 ms
   at Microsoft.AspNetCore.Diagnostics.ExceptionHandlerMiddleware.<Invoke>g__Awaited|6_0(ExceptionHandlerMiddleware middleware, HttpContext context, Task task)
   at Serilog.AspNetCore.RequestLoggingMiddleware.Invoke(HttpContext httpContext)
   at Swashbuckle.AspNetCore.Swagger.SwaggerMiddleware.Invoke(HttpContext httpContext, ISwaggerProvider swaggerProvider)
   at Swashbuckle.AspNetCore.SwaggerUI.SwaggerUIMiddleware.Invoke(HttpContext httpContext)
   at OpenAlprWebhookProcessor.Users.JwtMiddleware.Invoke(HttpContext context, IUserService userService) in /src/OpenAlprWebhookProcessor/Users/JwtMiddleware.cs:line 42
   at Microsoft.AspNetCore.Authentication.AuthenticationMiddleware.Invoke(HttpContext context)
   at Microsoft.AspNetCore.Authorization.AuthorizationMiddleware.Invoke(HttpContext context)
   at Microsoft.AspNetCore.Routing.EndpointMiddleware.<Invoke>g__AwaitRequestTask|6_0(Endpoint endpoint, Task requestTask, ILogger logger)
   at Microsoft.AspNetCore.Mvc.Infrastructure.ResourceInvoker.<InvokeAsync>g__Logged|17_1(ResourceInvoker invoker)
   at Microsoft.AspNetCore.Mvc.Infrastructure.ResourceInvoker.<InvokeAsync>g__Logged|17_1(ResourceInvoker invoker)
--- End of stack trace from previous location ---
   at Microsoft.AspNetCore.Mvc.Infrastructure.ResourceInvoker.InvokeFilterPipelineAsync()
   at Microsoft.AspNetCore.Mvc.Infrastructure.ResourceInvoker.Next(State& next, Scope& scope, Object& state, Boolean& isCompleted)
   at Microsoft.AspNetCore.Mvc.Infrastructure.ResourceInvoker.Rethrow(ResourceExecutedContextSealed context)
   at Microsoft.AspNetCore.Mvc.Infrastructure.ResourceInvoker.<InvokeNextResourceFilter>g__Awaited|25_0(ResourceInvoker invoker, Task lastTask, State next, Scope scope, Object state, Boolean isCompleted)
--- End of stack trace from previous location ---
   at Microsoft.AspNetCore.Mvc.Infrastructure.ControllerActionInvoker.InvokeInnerFilterAsync()
   at Microsoft.AspNetCore.Mvc.Infrastructure.ControllerActionInvoker.Next(State& next, Scope& scope, Object& state, Boolean& isCompleted)
   at Microsoft.AspNetCore.Mvc.Infrastructure.ControllerActionInvoker.Rethrow(ActionExecutedContextSealed context)
   at Microsoft.AspNetCore.Mvc.Infrastructure.ControllerActionInvoker.<InvokeNextActionFilterAsync>g__Awaited|10_0(ControllerActionInvoker invoker, Task lastTask, State next, Scope scope, Object state, Boolean isCompleted)
   at Microsoft.AspNetCore.Mvc.Infrastructure.ControllerActionInvoker.<InvokeActionMethodAsync>g__Awaited|12_0(ControllerActionInvoker invoker, ValueTask`1 actionResultValueTask)
   at Microsoft.AspNetCore.Mvc.Infrastructure.ActionMethodExecutor.TaskOfActionResultExecutor.Execute(IActionResultTypeMapper mapper, ObjectMethodExecutor executor, Object controller, Object[] arguments)
   at lambda_method542(Closure , Object )
   at OpenAlprWebhookProcessor.WebhookProcessor.WebhookController.Post(CancellationToken cancellationToken) in /src/OpenAlprWebhookProcessor/WebhookProcessor/WebhookController.cs:line 65
   at OpenAlprWebhookProcessor.WebhookProcessor.GroupWebhookHandler.HandleWebhookAsync(Webhook webhook, Boolean isBulkImport, CancellationToken cancellationToken) in /src/OpenAlprWebhookProcessor/WebhookProcessor/GroupWebhookHandler.cs:line 54
System.NullReferenceException: Object reference not set to an instance of an object.
2022-03-08 15:52:51.569 +00:00 [ERR] An unhandled exception has occurred while executing the request.
   at Serilog.AspNetCore.RequestLoggingMiddleware.Invoke(HttpContext httpContext)
   at Swashbuckle.AspNetCore.Swagger.SwaggerMiddleware.Invoke(HttpContext httpContext, ISwaggerProvider swaggerProvider)
   at Swashbuckle.AspNetCore.SwaggerUI.SwaggerUIMiddleware.Invoke(HttpContext httpContext)
   at OpenAlprWebhookProcessor.Users.JwtMiddleware.Invoke(HttpContext context, IUserService userService) in /src/OpenAlprWebhookProcessor/Users/JwtMiddleware.cs:line 42
   at Microsoft.AspNetCore.Authentication.AuthenticationMiddleware.Invoke(HttpContext context)
   at Microsoft.AspNetCore.Authorization.AuthorizationMiddleware.Invoke(HttpContext context)
   at Microsoft.AspNetCore.Routing.EndpointMiddleware.<Invoke>g__AwaitRequestTask|6_0(Endpoint endpoint, Task requestTask, ILogger logger)
   at Microsoft.AspNetCore.Mvc.Infrastructure.ResourceInvoker.<InvokeAsync>g__Logged|17_1(ResourceInvoker invoker)
   at Microsoft.AspNetCore.Mvc.Infrastructure.ResourceInvoker.<InvokeAsync>g__Logged|17_1(ResourceInvoker invoker)
--- End of stack trace from previous location ---
   at Microsoft.AspNetCore.Mvc.Infrastructure.ResourceInvoker.InvokeFilterPipelineAsync()
   at Microsoft.AspNetCore.Mvc.Infrastructure.ResourceInvoker.Next(State& next, Scope& scope, Object& state, Boolean& isCompleted)
   at Microsoft.AspNetCore.Mvc.Infrastructure.ResourceInvoker.Rethrow(ResourceExecutedContextSealed context)
   at Microsoft.AspNetCore.Mvc.Infrastructure.ResourceInvoker.<InvokeNextResourceFilter>g__Awaited|25_0(ResourceInvoker invoker, Task lastTask, State next, Scope scope, Object state, Boolean isCompleted)
--- End of stack trace from previous location ---
   at Microsoft.AspNetCore.Mvc.Infrastructure.ControllerActionInvoker.InvokeInnerFilterAsync()
   at Microsoft.AspNetCore.Mvc.Infrastructure.ControllerActionInvoker.Next(State& next, Scope& scope, Object& state, Boolean& isCompleted)
   at Microsoft.AspNetCore.Mvc.Infrastructure.ControllerActionInvoker.Rethrow(ActionExecutedContextSealed context)
   at Microsoft.AspNetCore.Mvc.Infrastructure.ControllerActionInvoker.<InvokeNextActionFilterAsync>g__Awaited|10_0(ControllerActionInvoker invoker, Task lastTask, State next, Scope scope, Object state, Boolean isCompleted)
   at Microsoft.AspNetCore.Mvc.Infrastructure.ControllerActionInvoker.<InvokeActionMethodAsync>g__Awaited|12_0(ControllerActionInvoker invoker, ValueTask`1 actionResultValueTask)
   at Microsoft.AspNetCore.Mvc.Infrastructure.ActionMethodExecutor.TaskOfActionResultExecutor.Execute(IActionResultTypeMapper mapper, ObjectMethodExecutor executor, Object controller, Object[] arguments)
   at lambda_method542(Closure , Object )
   at OpenAlprWebhookProcessor.WebhookProcessor.WebhookController.Post(CancellationToken cancellationToken) in /src/OpenAlprWebhookProcessor/WebhookProcessor/WebhookController.cs:line 65
   at OpenAlprWebhookProcessor.WebhookProcessor.GroupWebhookHandler.HandleWebhookAsync(Webhook webhook, Boolean isBulkImport, CancellationToken cancellationToken) in /src/OpenAlprWebhookProcessor/WebhookProcessor/GroupWebhookHandler.cs:line 54
System.NullReferenceException: Object reference not set to an instance of an object.
2022-03-08 15:52:51.567 +00:00 [ERR] HTTP POST /webhook responded 500 in 45.5995 ms
2022-03-08 15:52:51.566 +00:00 [INF] Executed endpoint 'OpenAlprWebhookProcessor.WebhookProcessor.WebhookController.Post (OpenAlprWebhookProcessor)'
2022-03-08 15:52:51.565 +00:00 [INF] Entity Framework Core 6.0.2 initialized 'ProcessorContext' using provider 'Microsoft.EntityFrameworkCore.Sqlite:6.0.2' with options: None
2022-03-08 15:52:51.531 +00:00 [INF] parsing plate group webhook
2022-03-08 15:52:51.528 +00:00 [INF] request received from: ::ffff:10.200.200.19
2022-03-08 15:52:51.522 +00:00 [INF] Executing endpoint 'OpenAlprWebhookProcessor.WebhookProcessor.WebhookController.Post (OpenAlprWebhookProcessor)'
2022-03-08 15:52:08.558 +00:00 [INF] HTTP GET /logs responded 200 in 8.4060 ms
2022-03-08 15:52:08.558 +00:00 [INF] Executed endpoint 'OpenAlprWebhookProcessor.SystemLogs.LogsController.GetLogs (OpenAlprWebhookProcessor)'
2022-03-08 15:52:08.555 +00:00 [INF] Executing ObjectResult, writing value of type 'System.Collections.Generic.List`1[[System.String, System.Private.CoreLib, Version=6.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e]]'.
2022-03-08 15:52:08.553 +00:00 [INF] Executing endpoint 'OpenAlprWebhookProcessor.SystemLogs.LogsController.GetLogs (OpenAlprWebhookProcessor)'
2022-03-08 15:52:08.553 +00:00 [INF] Successfully validated the token.
2022-03-08 15:52:08.551 +00:00 [INF] Entity Framework Core 6.0.2 initialized 'UsersContext' using provider 'Microsoft.EntityFrameworkCore.Sqlite:6.0.2' with options: None
2022-03-08 15:52:02.526 +00:00 [INF] HTTP GET /images/e4682598-de73-442c-845d-c65788015615/snapshot responded 200 in 806.6403 ms
2022-03-08 15:52:02.526 +00:00 [INF] Executed endpoint 'OpenAlprWebhookProcessor.ImageRelay.ImageRelayController.GetSnapshot (OpenAlprWebhookProcessor)'
2022-03-08 15:52:02.521 +00:00 [INF] Executing ObjectResult, writing value of type 'System.IO.MemoryStream'.
2022-03-08 15:52:01.727 +00:00 [INF] Entity Framework Core 6.0.2 initialized 'ProcessorContext' using provider 'Microsoft.EntityFrameworkCore.Sqlite:6.0.2' with options: None
2022-03-08 15:52:01.721 +00:00 [INF] Executing endpoint 'OpenAlprWebhookProcessor.ImageRelay.ImageRelayController.GetSnapshot (OpenAlprWebhookProcessor)'
2022-03-08 15:52:01.721 +00:00 [INF] Successfully validated the token.
2022-03-08 15:52:01.682 +00:00 [INF] HTTP GET /cameras responded 200 in 20.3924 ms
2022-03-08 15:52:01.682 +00:00 [INF] Executed endpoint 'OpenAlprWebhookProcessor.Cameras.CameraController.GetCameras (OpenAlprWebhookProcessor)'
2022-03-08 15:52:01.670 +00:00 [INF] Executing ObjectResult, writing value of type 'System.Collections.Generic.List`1[[OpenAlprWebhookProcessor.Cameras.Camera, OpenAlprWebhookProcessor, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null]]'.
2022-03-08 15:52:01.665 +00:00 [INF] Entity Framework Core 6.0.2 initialized 'ProcessorContext' using provider 'Microsoft.EntityFrameworkCore.Sqlite:6.0.2' with options: None
2022-03-08 15:52:01.664 +00:00 [INF] Executing endpoint 'OpenAlprWebhookProcessor.Cameras.CameraController.GetCameras (OpenAlprWebhookProcessor)'
2022-03-08 15:52:01.664 +00:00 [INF] Successfully validated the token.
2022-03-08 15:52:01.662 +00:00 [INF] Entity Framework Core 6.0.2 initialized 'UsersContext' using provider 'Microsoft.EntityFrameworkCore.Sqlite:6.0.2' with options: None
2022-03-08 15:52:01.637 +00:00 [INF] HTTP POST /cameras responded 200 in 114.0583 ms
2022-03-08 15:52:01.637 +00:00 [INF] Executed endpoint 'OpenAlprWebhookProcessor.Cameras.CameraController.UpsertCamera (OpenAlprWebhookProcessor)'
2022-03-08 15:52:01.630 +00:00 [INF] Entity Framework Core 6.0.2 initialized 'ProcessorContext' using provider 'Microsoft.EntityFrameworkCore.Sqlite:6.0.2' with options: None
2022-03-08 15:52:01.549 +00:00 [INF] Entity Framework Core 6.0.2 initialized 'ProcessorContext' using provider 'Microsoft.EntityFrameworkCore.Sqlite:6.0.2' with options: None
2022-03-08 15:52:01.526 +00:00 [INF] Executing endpoint 'OpenAlprWebhookProcessor.Cameras.CameraController.UpsertCamera (OpenAlprWebhookProcessor)'
2022-03-08 15:52:01.526 +00:00 [INF] Successfully validated the token.
2022-03-08 15:52:01.524 +00:00 [INF] Entity Framework Core 6.0.2 initialized 'UsersContext' using provider 'Microsoft.EntityFrameworkCore.Sqlite:6.0.2' with options: None
2022-03-08 15:52:01.523 +00:00 [INF] CORS policy execution successful.
2022-03-08 15:51:48.628 +00:00 [INF] HTTP GET /cameras/undefined/zoomAndFocus responded 400 in 12.6395 ms
2022-03-08 15:51:48.628 +00:00 [INF] Executed endpoint 'OpenAlprWebhookProcessor.Cameras.CameraController.GetZoomAndFocus (OpenAlprWebhookProcessor)'
2022-03-08 15:51:48.625 +00:00 [INF] Executing BadRequestObjectResult, writing value of type 'Microsoft.AspNetCore.Mvc.ValidationProblemDetails'.
2022-03-08 15:51:48.618 +00:00 [INF] Executing endpoint 'OpenAlprWebhookProcessor.Cameras.CameraController.GetZoomAndFocus (OpenAlprWebhookProcessor)'
2022-03-08 15:51:48.618 +00:00 [INF] Successfully validated the token.
2022-03-08 15:51:48.617 +00:00 [INF] Entity Framework Core 6.0.2 initialized 'UsersContext' using provider 'Microsoft.EntityFrameworkCore.Sqlite:6.0.2' with options: None
2022-03-08 15:51:47.122 +00:00 [INF] HTTP GET /cameras responded 200 in 47.2112 ms
2022-03-08 15:51:47.122 +00:00 [INF] Executed endpoint 'OpenAlprWebhookProcessor.Cameras.CameraController.GetCameras (OpenAlprWebhookProcessor)'
2022-03-08 15:51:47.096 +00:00 [INF] Executing ObjectResult, writing value of type 'System.Collections.Generic.List`1[[OpenAlprWebhookProcessor.Cameras.Camera, OpenAlprWebhookProcessor, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null]]'.
2022-03-08 15:51:47.095 +00:00 [INF] Entity Framework Core 6.0.2 initialized 'ProcessorContext' using provider 'Microsoft.EntityFrameworkCore.Sqlite:6.0.2' with options: None
2022-03-08 15:51:47.080 +00:00 [INF] Executing endpoint 'OpenAlprWebhookProcessor.Cameras.CameraController.GetCameras (OpenAlprWebhookProcessor)'
2022-03-08 15:51:47.079 +00:00 [INF] Successfully validated the token.
2022-03-08 15:51:47.076 +00:00 [INF] Entity Framework Core 6.0.2 initialized 'UsersContext' using provider 'Microsoft.EntityFrameworkCore.Sqlite:6.0.2' with options: None
2022-03-08 15:51:28.210 +00:00 [INF] HTTP GET /10.3bedcfc4a5abb4e28859.js responded 200 in 0.5825 ms
2022-03-08 15:51:28.210 +00:00 [INF] Sending file. Request path: '/10.3bedcfc4a5abb4e28859.js'. Physical path: '/app/ClientApp/dist/10.3bedcfc4a5abb4e28859.js'
2022-03-08 15:51:28.183 +00:00 [INF] HTTP GET /logs responded 200 in 21.7980 ms
2022-03-08 15:51:28.181 +00:00 [INF] Executed endpoint 'OpenAlprWebhookProcessor.SystemLogs.LogsController.GetLogs (OpenAlprWebhookProcessor)'
2022-03-08 15:51:28.179 +00:00 [INF] Executing ObjectResult, writing value of type 'System.Collections.Generic.List`1[[System.String, System.Private.CoreLib, Version=6.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e]]'.
2022-03-08 15:51:28.166 +00:00 [INF] Executing endpoint 'OpenAlprWebhookProcessor.SystemLogs.LogsController.GetLogs (OpenAlprWebhookProcessor)'
2022-03-08 15:51:28.166 +00:00 [INF] Successfully validated the token.
2022-03-08 15:51:28.162 +00:00 [INF] Entity Framework Core 6.0.2 initialized 'UsersContext' using provider 'Microsoft.EntityFrameworkCore.Sqlite:6.0.2' with options: None
2022-03-08 15:51:28.155 +00:00 [INF] HTTP GET /9.1e222e1fef58bf7883c4.js responded 200 in 1.3432 ms
2022-03-08 15:51:28.155 +00:00 [INF] Sending file. Request path: '/9.1e222e1fef58bf7883c4.js'. Physical path: '/app/ClientApp/dist/9.1e222e1fef58bf7883c4.js'
2022-03-08 15:51:25.355 +00:00 [INF] HTTP GET /7.5842edad7d4f84106311.js responded 200 in 6.9550 ms
2022-03-08 15:51:25.355 +00:00 [INF] Sending file. Request path: '/7.5842edad7d4f84106311.js'. Physical path: '/app/ClientApp/dist/7.5842edad7d4f84106311.js'
2022-03-08 15:51:22.022 +00:00 [INF] HTTP GET /licenseplates/counts responded 200 in 71.7555 ms
2022-03-08 15:51:22.022 +00:00 [INF] Executed endpoint 'OpenAlprWebhookProcessor.LicensePlates.LicensePlatesController.GetLicensePlateCounts (OpenAlprWebhookProcessor)'
2022-03-08 15:51:22.013 +00:00 [INF] Executing ObjectResult, writing value of type 'OpenAlprWebhookProcessor.LicensePlates.GetLicensePlateCounts.GetLicensePlateCountsResponse'.
2022-03-08 15:51:21.999 +00:00 [INF] Entity Framework Core 6.0.2 initialized 'ProcessorContext' using provider 'Microsoft.EntityFrameworkCore.Sqlite:6.0.2' with options: None
2022-03-08 15:51:21.990 +00:00 [INF] Executing endpoint 'OpenAlprWebhookProcessor.LicensePlates.LicensePlatesController.GetLicensePlateCounts (OpenAlprWebhookProcessor)'
2022-03-08 15:51:21.989 +00:00 [INF] Successfully validated the token.
2022-03-08 15:51:21.952 +00:00 [INF] Entity Framework Core 6.0.2 initialized 'UsersContext' using provider 'Microsoft.EntityFrameworkCore.Sqlite:6.0.2' with options: None
2022-03-08 15:51:21.889 +00:00 [INF] HTTP POST /users/authenticate responded 200 in 106.4777 ms
2022-03-08 15:51:21.889 +00:00 [INF] Executed endpoint 'OpenAlprWebhookProcessor.Users.UsersController.Authenticate (OpenAlprWebhookProcessor)'
2022-03-08 15:51:21.878 +00:00 [INF] Executing OkObjectResult, writing value of type 'OpenAlprWebhookProcessor.Users.AuthenticateResponse'.
2022-03-08 15:51:21.790 +00:00 [INF] Entity Framework Core 6.0.2 initialized 'UsersContext' using provider 'Microsoft.EntityFrameworkCore.Sqlite:6.0.2' with options: None
2022-03-08 15:51:21.783 +00:00 [INF] Executing endpoint 'OpenAlprWebhookProcessor.Users.UsersController.Authenticate (OpenAlprWebhookProcessor)'
2022-03-08 15:51:21.783 +00:00 [INF] CORS policy execution successful.
2022-03-08 15:51:19.736 +00:00 [INF] HTTP GET /users/canregister responded 200 in 10.1069 ms
2022-03-08 15:51:19.735 +00:00 [INF] Executed endpoint 'OpenAlprWebhookProcessor.Users.UsersController.CanRegister (OpenAlprWebhookProcessor)'
2022-03-08 15:51:19.735 +00:00 [INF] Executing ObjectResult, writing value of type 'System.Boolean'.
2022-03-08 15:51:19.727 +00:00 [INF] Entity Framework Core 6.0.2 initialized 'UsersContext' using provider 'Microsoft.EntityFrameworkCore.Sqlite:6.0.2' with options: None
2022-03-08 15:51:19.726 +00:00 [INF] Executing endpoint 'OpenAlprWebhookProcessor.Users.UsersController.CanRegister (OpenAlprWebhookProcessor)'
2022-03-08 15:51:19.685 +00:00 [INF] HTTP POST /users/register responded 200 in 148.2152 ms
2022-03-08 15:51:19.685 +00:00 [INF] Executed endpoint 'OpenAlprWebhookProcessor.Users.UsersController.Register (OpenAlprWebhookProcessor)'
2022-03-08 15:51:19.685 +00:00 [INF] Executing StatusCodeResult, setting HTTP status code 200
2022-03-08 15:51:19.589 +00:00 [INF] Entity Framework Core 6.0.2 initialized 'UsersContext' using provider 'Microsoft.EntityFrameworkCore.Sqlite:6.0.2' with options: None
2022-03-08 15:51:19.538 +00:00 [INF] Executing endpoint 'OpenAlprWebhookProcessor.Users.UsersController.Register (OpenAlprWebhookProcessor)'
2022-03-08 15:51:19.537 +00:00 [INF] CORS policy execution successful.
2022-03-08 15:51:13.547 +00:00 [INF] HTTP GET /users/canregister responded 200 in 29.9953 ms
2022-03-08 15:51:13.547 +00:00 [INF] Executed endpoint 'OpenAlprWebhookProcessor.Users.UsersController.CanRegister (OpenAlprWebhookProcessor)'
2022-03-08 15:51:13.536 +00:00 [INF] Executing ObjectResult, writing value of type 'System.Boolean'.
2022-03-08 15:51:13.524 +00:00 [INF] Entity Framework Core 6.0.2 initialized 'UsersContext' using provider 'Microsoft.EntityFrameworkCore.Sqlite:6.0.2' with options: None
2022-03-08 15:51:13.517 +00:00 [INF] Executing endpoint 'OpenAlprWebhookProcessor.Users.UsersController.CanRegister (OpenAlprWebhookProcessor)'
2022-03-08 15:51:13.441 +00:00 [INF] HTTP GET /5.10524713e9e70943cd1a.js responded 200 in 28.4121 ms
2022-03-08 15:51:13.413 +00:00 [INF] Sending file. Request path: '/5.10524713e9e70943cd1a.js'. Physical path: '/app/ClientApp/dist/5.10524713e9e70943cd1a.js'
2022-03-08 15:51:13.392 +00:00 [INF] HTTP POST /users/revoke-token responded 401 in 3.6709 ms
2022-03-08 15:51:13.391 +00:00 [INF] AuthenticationScheme: Bearer was challenged.
DenyAnonymousAuthorizationRequirement: Requires an authenticated user.
2022-03-08 15:51:13.391 +00:00 [INF] Authorization failed. These requirements were not met:
token: 'System.IdentityModel.Tokens.Jwt.JwtSecurityToken'.
 'System.Text.StringBuilder'.
Exceptions caught:
2022-03-08 15:51:13.391 +00:00 [INF] Bearer was not authenticated. Failure message: IDX10503: Signature validation failed. Token does not have a kid. Keys tried: 'System.Text.StringBuilder'.
   at Microsoft.AspNetCore.Authentication.JwtBearer.JwtBearerHandler.HandleAuthenticateAsync()
   at System.IdentityModel.Tokens.Jwt.JwtSecurityTokenHandler.ValidateToken(String token, TokenValidationParameters validationParameters, SecurityToken& validatedToken)
   at System.IdentityModel.Tokens.Jwt.JwtSecurityTokenHandler.ValidateSignature(String token, TokenValidationParameters validationParameters)
token: 'System.IdentityModel.Tokens.Jwt.JwtSecurityToken'.
 'System.Text.StringBuilder'.
Exceptions caught:
Microsoft.IdentityModel.Tokens.SecurityTokenSignatureKeyNotFoundException: IDX10503: Signature validation failed. Token does not have a kid. Keys tried: 'System.Text.StringBuilder'.
2022-03-08 15:51:13.391 +00:00 [INF] Failed to validate the token.
2022-03-08 15:51:13.391 +00:00 [WRN] attempted login failed
2022-03-08 15:51:13.390 +00:00 [INF] Entity Framework Core 6.0.2 initialized 'UsersContext' using provider 'Microsoft.EntityFrameworkCore.Sqlite:6.0.2' with options: None
2022-03-08 15:51:13.389 +00:00 [INF] CORS policy execution successful.
2022-03-08 15:51:13.269 +00:00 [INF] HTTP GET /licenseplates/filters responded 401 in 4.7545 ms
2022-03-08 15:51:13.269 +00:00 [INF] AuthenticationScheme: Bearer was challenged.
DenyAnonymousAuthorizationRequirement: Requires an authenticated user.
2022-03-08 15:51:13.269 +00:00 [INF] Authorization failed. These requirements were not met:
token: 'System.IdentityModel.Tokens.Jwt.JwtSecurityToken'.
 'System.Text.StringBuilder'.
Exceptions caught:
2022-03-08 15:51:13.268 +00:00 [INF] Bearer was not authenticated. Failure message: IDX10503: Signature validation failed. Token does not have a kid. Keys tried: 'System.Text.StringBuilder'.
   at Microsoft.AspNetCore.Authentication.JwtBearer.JwtBearerHandler.HandleAuthenticateAsync()
   at System.IdentityModel.Tokens.Jwt.JwtSecurityTokenHandler.ValidateToken(String token, TokenValidationParameters validationParameters, SecurityToken& validatedToken)
   at System.IdentityModel.Tokens.Jwt.JwtSecurityTokenHandler.ValidateSignature(String token, TokenValidationParameters validationParameters)
token: 'System.IdentityModel.Tokens.Jwt.JwtSecurityToken'.
 'System.Text.StringBuilder'.
Exceptions caught:
Microsoft.IdentityModel.Tokens.SecurityTokenSignatureKeyNotFoundException: IDX10503: Signature validation failed. Token does not have a kid. Keys tried: 'System.Text.StringBuilder'.
2022-03-08 15:51:13.267 +00:00 [INF] Failed to validate the token.
2022-03-08 15:51:13.267 +00:00 [WRN] attempted login failed
2022-03-08 15:51:13.266 +00:00 [INF] Entity Framework Core 6.0.2 initialized 'UsersContext' using provider 'Microsoft.EntityFrameworkCore.Sqlite:6.0.2' with options: None
2022-03-08 15:51:13.266 +00:00 [INF] HTTP POST /licenseplates/search responded 401 in 11.6253 ms
2022-03-08 15:51:13.265 +00:00 [INF] AuthenticationScheme: Bearer was challenged.
DenyAnonymousAuthorizationRequirement: Requires an authenticated user.
2022-03-08 15:51:13.259 +00:00 [INF] Authorization failed. These requirements were not met:
token: 'System.IdentityModel.Tokens.Jwt.JwtSecurityToken'.
 'System.Text.StringBuilder'.
Exceptions caught:
2022-03-08 15:51:13.256 +00:00 [INF] Bearer was not authenticated. Failure message: IDX10503: Signature validation failed. Token does not have a kid. Keys tried: 'System.Text.StringBuilder'.
   at Microsoft.AspNetCore.Authentication.JwtBearer.JwtBearerHandler.HandleAuthenticateAsync()
   at System.IdentityModel.Tokens.Jwt.JwtSecurityTokenHandler.ValidateToken(String token, TokenValidationParameters validationParameters, SecurityToken& validatedToken)
   at System.IdentityModel.Tokens.Jwt.JwtSecurityTokenHandler.ValidateSignature(String token, TokenValidationParameters validationParameters)
token: 'System.IdentityModel.Tokens.Jwt.JwtSecurityToken'.
 'System.Text.StringBuilder'.
Exceptions caught:
Microsoft.IdentityModel.Tokens.SecurityTokenSignatureKeyNotFoundException: IDX10503: Signature validation failed. Token does not have a kid. Keys tried: 'System.Text.StringBuilder'.
2022-03-08 15:51:13.256 +00:00 [INF] Failed to validate the token.
2022-03-08 15:51:13.256 +00:00 [WRN] attempted login failed
2022-03-08 15:51:13.255 +00:00 [INF] Entity Framework Core 6.0.2 initialized 'UsersContext' using provider 'Microsoft.EntityFrameworkCore.Sqlite:6.0.2' with options: None
2022-03-08 15:51:13.254 +00:00 [INF] CORS policy execution successful.
2022-03-08 15:51:13.123 +00:00 [INF] Executing endpoint '/processorhub'
2022-03-08 15:51:13.123 +00:00 [INF] CORS policy execution successful.
2022-03-08 15:51:13.050 +00:00 [INF] HTTP GET /6.811e9bfb65376b43a0c1.js responded 200 in 1.5044 ms
2022-03-08 15:51:13.050 +00:00 [INF] HTTP GET /1.84bcb660b45afe9ef7c2.js responded 200 in 1.5588 ms
2022-03-08 15:51:13.049 +00:00 [INF] Sending file. Request path: '/1.84bcb660b45afe9ef7c2.js'. Physical path: '/app/ClientApp/dist/1.84bcb660b45afe9ef7c2.js'
2022-03-08 15:51:13.049 +00:00 [INF] Sending file. Request path: '/6.811e9bfb65376b43a0c1.js'. Physical path: '/app/ClientApp/dist/6.811e9bfb65376b43a0c1.js'
2022-03-08 15:51:12.989 +00:00 [INF] HTTP POST /processorhub/negotiate?negotiateVersion=1 responded 200 in 23.7243 ms
2022-03-08 15:51:12.989 +00:00 [INF] Executed endpoint '/processorhub/negotiate'
2022-03-08 15:51:12.969 +00:00 [INF] Executing endpoint '/processorhub/negotiate'
2022-03-08 15:51:12.966 +00:00 [INF] CORS policy execution successful.
   at Microsoft.AspNetCore.Diagnostics.ExceptionHandlerMiddleware.HandleException(HttpContext context, ExceptionDispatchInfo edi)
   at Serilog.AspNetCore.RequestLoggingMiddleware.Invoke(HttpContext httpContext)
   at Swashbuckle.AspNetCore.Swagger.SwaggerMiddleware.Invoke(HttpContext httpContext, ISwaggerProvider swaggerProvider)
   at Swashbuckle.AspNetCore.SwaggerUI.SwaggerUIMiddleware.Invoke(HttpContext httpContext)
   at OpenAlprWebhookProcessor.Users.JwtMiddleware.Invoke(HttpContext context, IUserService userService) in /src/OpenAlprWebhookProcessor/Users/JwtMiddleware.cs:line 42
   at Microsoft.AspNetCore.Authentication.AuthenticationMiddleware.Invoke(HttpContext context)
   at Microsoft.AspNetCore.Authorization.AuthorizationMiddleware.Invoke(HttpContext context)
   at Microsoft.AspNetCore.Routing.EndpointMiddleware.Invoke(HttpContext httpContext)
   at Microsoft.AspNetCore.Builder.UseExtensions.<>c__DisplayClass0_1.<Use>b__1(HttpContext context)
   at Microsoft.AspNetCore.SpaServices.SpaDefaultPageMiddleware.<>c__DisplayClass0_0.<Attach>b__0(HttpContext context, Func`1 next)
   at Microsoft.AspNetCore.Builder.UseExtensions.<>c__DisplayClass0_2.<Use>b__2()
   at Microsoft.AspNetCore.StaticFiles.StaticFileMiddleware.Invoke(HttpContext context)
   at Microsoft.AspNetCore.Builder.UseExtensions.<>c__DisplayClass0_1.<Use>b__1(HttpContext context)
   at Microsoft.AspNetCore.SpaServices.SpaDefaultPageMiddleware.<>c__DisplayClass0_0.<Attach>b__1(HttpContext context, Func`1 next)

Your application is running in Production mode, so make sure it has been published, or that you have built your SPA manually. Alternatively you may wish to switch to the Development environment.
System.InvalidOperationException: The SPA default page middleware could not return the default page '/index.html' because it was not found, and no other middleware handled the request.
2022-03-08 15:51:12.227 +00:00 [ERR] An exception was thrown attempting to execute the error handler.
   at Serilog.AspNetCore.RequestLoggingMiddleware.Invoke(HttpContext httpContext)
   at Swashbuckle.AspNetCore.Swagger.SwaggerMiddleware.Invoke(HttpContext httpContext, ISwaggerProvider swaggerProvider)
   at Swashbuckle.AspNetCore.SwaggerUI.SwaggerUIMiddleware.Invoke(HttpContext httpContext)
   at OpenAlprWebhookProcessor.Users.JwtMiddleware.Invoke(HttpContext context, IUserService userService) in /src/OpenAlprWebhookProcessor/Users/JwtMiddleware.cs:line 42
   at Microsoft.AspNetCore.Authentication.AuthenticationMiddleware.Invoke(HttpContext context)
   at Microsoft.AspNetCore.Authorization.AuthorizationMiddleware.Invoke(HttpContext context)
   at Microsoft.AspNetCore.Routing.EndpointMiddleware.Invoke(HttpContext httpContext)
   at Microsoft.AspNetCore.Builder.UseExtensions.<>c__DisplayClass0_1.<Use>b__1(HttpContext context)
   at Microsoft.AspNetCore.SpaServices.SpaDefaultPageMiddleware.<>c__DisplayClass0_0.<Attach>b__0(HttpContext context, Func`1 next)
   at Microsoft.AspNetCore.Builder.UseExtensions.<>c__DisplayClass0_2.<Use>b__2()
   at Microsoft.AspNetCore.StaticFiles.StaticFileMiddleware.Invoke(HttpContext context)
   at Microsoft.AspNetCore.Builder.UseExtensions.<>c__DisplayClass0_1.<Use>b__1(HttpContext context)
   at Microsoft.AspNetCore.SpaServices.SpaDefaultPageMiddleware.<>c__DisplayClass0_0.<Attach>b__1(HttpContext context, Func`1 next)

Your application is running in Production mode, so make sure it has been published, or that you have built your SPA manually. Alternatively you may wish to switch to the Development environment.
System.InvalidOperationException: The SPA default page middleware could not return the default page '/index.html' because it was not found, and no other middleware handled the request.
2022-03-08 15:51:12.226 +00:00 [ERR] HTTP POST /users/refresh-token responded 500 in 1.8883 ms
token: 'System.IdentityModel.Tokens.Jwt.JwtSecurityToken'.
 'System.Text.StringBuilder'.
Exceptions caught:
2022-03-08 15:51:12.225 +00:00 [INF] Bearer was not authenticated. Failure message: IDX10503: Signature validation failed. Token does not have a kid. Keys tried: 'System.Text.StringBuilder'.
2022-03-08 15:51:12.225 +00:00 [WRN] attempted login failed
2022-03-08 15:51:12.224 +00:00 [INF] CORS policy execution successful.
   at Microsoft.AspNetCore.Diagnostics.ExceptionHandlerMiddleware.<Invoke>g__Awaited|6_0(ExceptionHandlerMiddleware middleware, HttpContext context, Task task)
   at Serilog.AspNetCore.RequestLoggingMiddleware.Invoke(HttpContext httpContext)
   at Swashbuckle.AspNetCore.Swagger.SwaggerMiddleware.Invoke(HttpContext httpContext, ISwaggerProvider swaggerProvider)
   at Swashbuckle.AspNetCore.SwaggerUI.SwaggerUIMiddleware.Invoke(HttpContext httpContext)
   at OpenAlprWebhookProcessor.Users.JwtMiddleware.Invoke(HttpContext context, IUserService userService) in /src/OpenAlprWebhookProcessor/Users/JwtMiddleware.cs:line 42
   at Microsoft.AspNetCore.Authentication.AuthenticationMiddleware.Invoke(HttpContext context)
   at Microsoft.AspNetCore.Authorization.AuthorizationMiddleware.Invoke(HttpContext context)
   at Microsoft.AspNetCore.Routing.EndpointMiddleware.<Invoke>g__AwaitRequestTask|6_0(Endpoint endpoint, Task requestTask, ILogger logger)
   at Microsoft.AspNetCore.Mvc.Infrastructure.ResourceInvoker.<InvokeAsync>g__Logged|17_1(ResourceInvoker invoker)
   at Microsoft.AspNetCore.Mvc.Infrastructure.ResourceInvoker.<InvokeAsync>g__Logged|17_1(ResourceInvoker invoker)
--- End of stack trace from previous location ---
   at Microsoft.AspNetCore.Mvc.Infrastructure.ResourceInvoker.InvokeFilterPipelineAsync()
   at Microsoft.AspNetCore.Mvc.Infrastructure.ResourceInvoker.Next(State& next, Scope& scope, Object& state, Boolean& isCompleted)
   at Microsoft.AspNetCore.Mvc.Infrastructure.ResourceInvoker.Rethrow(ResourceExecutedContextSealed context)
   at Microsoft.AspNetCore.Mvc.Infrastructure.ResourceInvoker.<InvokeNextResourceFilter>g__Awaited|25_0(ResourceInvoker invoker, Task lastTask, State next, Scope scope, Object state, Boolean isCompleted)
--- End of stack trace from previous location ---
   at Microsoft.AspNetCore.Mvc.Infrastructure.ControllerActionInvoker.InvokeInnerFilterAsync()
   at Microsoft.AspNetCore.Mvc.Infrastructure.ControllerActionInvoker.Next(State& next, Scope& scope, Object& state, Boolean& isCompleted)
   at Microsoft.AspNetCore.Mvc.Infrastructure.ControllerActionInvoker.Rethrow(ActionExecutedContextSealed context)
   at Microsoft.AspNetCore.Mvc.Infrastructure.ControllerActionInvoker.<InvokeNextActionFilterAsync>g__Awaited|10_0(ControllerActionInvoker invoker, Task lastTask, State next, Scope scope, Object state, Boolean isCompleted)
   at Microsoft.AspNetCore.Mvc.Infrastructure.ControllerActionInvoker.<InvokeActionMethodAsync>g__Awaited|12_0(ControllerActionInvoker invoker, ValueTask`1 actionResultValueTask)
   at Microsoft.AspNetCore.Mvc.Infrastructure.ActionMethodExecutor.TaskOfIActionResultExecutor.Execute(IActionResultTypeMapper mapper, ObjectMethodExecutor executor, Object controller, Object[] arguments)
   at OpenAlprWebhookProcessor.Users.UsersController.RefreshToken(CancellationToken cancellationToken) in /src/OpenAlprWebhookProcessor/Users/UsersController.cs:line 52
   at OpenAlprWebhookProcessor.Users.UserService.RefreshTokenAsync(String token, String ipAddress, CancellationToken cancellationToken) in /src/OpenAlprWebhookProcessor/Users/UserService.cs:line 184
System.ArgumentException: unknown user
2022-03-08 15:51:12.222 +00:00 [ERR] An unhandled exception has occurred while executing the request.
   at Serilog.AspNetCore.RequestLoggingMiddleware.Invoke(HttpContext httpContext)
   at Swashbuckle.AspNetCore.Swagger.SwaggerMiddleware.Invoke(HttpContext httpContext, ISwaggerProvider swaggerProvider)
   at Swashbuckle.AspNetCore.SwaggerUI.SwaggerUIMiddleware.Invoke(HttpContext httpContext)
   at OpenAlprWebhookProcessor.Users.JwtMiddleware.Invoke(HttpContext context, IUserService userService) in /src/OpenAlprWebhookProcessor/Users/JwtMiddleware.cs:line 42
   at Microsoft.AspNetCore.Authentication.AuthenticationMiddleware.Invoke(HttpContext context)
   at Microsoft.AspNetCore.Authorization.AuthorizationMiddleware.Invoke(HttpContext context)
   at Microsoft.AspNetCore.Routing.EndpointMiddleware.<Invoke>g__AwaitRequestTask|6_0(Endpoint endpoint, Task requestTask, ILogger logger)
   at Microsoft.AspNetCore.Mvc.Infrastructure.ResourceInvoker.<InvokeAsync>g__Logged|17_1(ResourceInvoker invoker)
   at Microsoft.AspNetCore.Mvc.Infrastructure.ResourceInvoker.<InvokeAsync>g__Logged|17_1(ResourceInvoker invoker)
--- End of stack trace from previous location ---
   at Microsoft.AspNetCore.Mvc.Infrastructure.ResourceInvoker.InvokeFilterPipelineAsync()
   at Microsoft.AspNetCore.Mvc.Infrastructure.ResourceInvoker.Next(State& next, Scope& scope, Object& state, Boolean& isCompleted)
   at Microsoft.AspNetCore.Mvc.Infrastructure.ResourceInvoker.Rethrow(ResourceExecutedContextSealed context)
   at Microsoft.AspNetCore.Mvc.Infrastructure.ResourceInvoker.<InvokeNextResourceFilter>g__Awaited|25_0(ResourceInvoker invoker, Task lastTask, State next, Scope scope, Object state, Boolean isCompleted)
--- End of stack trace from previous location ---
   at Microsoft.AspNetCore.Mvc.Infrastructure.ControllerActionInvoker.InvokeInnerFilterAsync()
   at Microsoft.AspNetCore.Mvc.Infrastructure.ControllerActionInvoker.Next(State& next, Scope& scope, Object& state, Boolean& isCompleted)
   at Microsoft.AspNetCore.Mvc.Infrastructure.ControllerActionInvoker.Rethrow(ActionExecutedContextSealed context)
   at Microsoft.AspNetCore.Mvc.Infrastructure.ControllerActionInvoker.<InvokeNextActionFilterAsync>g__Awaited|10_0(ControllerActionInvoker invoker, Task lastTask, State next, Scope scope, Object state, Boolean isCompleted)
   at Microsoft.AspNetCore.Mvc.Infrastructure.ControllerActionInvoker.<InvokeActionMethodAsync>g__Awaited|12_0(ControllerActionInvoker invoker, ValueTask`1 actionResultValueTask)
   at Microsoft.AspNetCore.Mvc.Infrastructure.ActionMethodExecutor.TaskOfIActionResultExecutor.Execute(IActionResultTypeMapper mapper, ObjectMethodExecutor executor, Object controller, Object[] arguments)
   at OpenAlprWebhookProcessor.Users.UsersController.RefreshToken(CancellationToken cancellationToken) in /src/OpenAlprWebhookProcessor/Users/UsersController.cs:line 52
   at OpenAlprWebhookProcessor.Users.UserService.RefreshTokenAsync(String token, String ipAddress, CancellationToken cancellationToken) in /src/OpenAlprWebhookProcessor/Users/UserService.cs:line 184
System.ArgumentException: unknown user
2022-03-08 15:51:12.210 +00:00 [ERR] HTTP POST /users/refresh-token responded 500 in 364.8547 ms
2022-03-08 15:51:12.209 +00:00 [INF] Executed endpoint 'OpenAlprWebhookProcessor.Users.UsersController.RefreshToken (OpenAlprWebhookProcessor)'
2022-03-08 15:51:12.029 +00:00 [INF] Executing endpoint 'OpenAlprWebhookProcessor.Users.UsersController.RefreshToken (OpenAlprWebhookProcessor)'
token: 'System.IdentityModel.Tokens.Jwt.JwtSecurityToken'.
 'System.Text.StringBuilder'.
Exceptions caught:
2022-03-08 15:51:12.024 +00:00 [INF] Bearer was not authenticated. Failure message: IDX10503: Signature validation failed. Token does not have a kid. Keys tried: 'System.Text.StringBuilder'.
   at Microsoft.AspNetCore.Authentication.JwtBearer.JwtBearerHandler.HandleAuthenticateAsync()
   at System.IdentityModel.Tokens.Jwt.JwtSecurityTokenHandler.ValidateToken(String token, TokenValidationParameters validationParameters, SecurityToken& validatedToken)
   at System.IdentityModel.Tokens.Jwt.JwtSecurityTokenHandler.ValidateSignature(String token, TokenValidationParameters validationParameters)
token: 'System.IdentityModel.Tokens.Jwt.JwtSecurityToken'.
 'System.Text.StringBuilder'.
Exceptions caught:
Microsoft.IdentityModel.Tokens.SecurityTokenSignatureKeyNotFoundException: IDX10503: Signature validation failed. Token does not have a kid. Keys tried: 'System.Text.StringBuilder'.
2022-03-08 15:51:12.016 +00:00 [INF] Failed to validate the token.
2022-03-08 15:51:12.013 +00:00 [WRN] attempted login failed
2022-03-08 15:51:11.906 +00:00 [WRN] The query uses the 'First'/'FirstOrDefault' operator without 'OrderBy' and filter operators. This may lead to unpredictable results.
2022-03-08 15:51:11.905 +00:00 [INF] Entity Framework Core 6.0.2 initialized 'UsersContext' using provider 'Microsoft.EntityFrameworkCore.Sqlite:6.0.2' with options: None
2022-03-08 15:51:11.847 +00:00 [INF] CORS policy execution successful.
2022-03-08 15:51:11.265 +00:00 [INF] HTTP GET /main.9c88704e3f2a4d18ef08.js responded 200 in 8.2299 ms
2022-03-08 15:51:11.265 +00:00 [INF] Sending file. Request path: '/main.9c88704e3f2a4d18ef08.js'. Physical path: '/app/ClientApp/dist/main.9c88704e3f2a4d18ef08.js'
2022-03-08 15:51:11.255 +00:00 [INF] HTTP GET /polyfills.a88c71f8c22a8253ff66.js responded 200 in 1.6050 ms
2022-03-08 15:51:11.254 +00:00 [INF] Sending file. Request path: '/polyfills.a88c71f8c22a8253ff66.js'. Physical path: '/app/ClientApp/dist/polyfills.a88c71f8c22a8253ff66.js'
2022-03-08 15:51:11.243 +00:00 [INF] HTTP GET /runtime.247ede6ef8c2436ecc16.js responded 200 in 4.5081 ms
2022-03-08 15:51:11.243 +00:00 [INF] HTTP GET /styles.6d268db9d5f0a6c1292b.css responded 200 in 13.5485 ms
2022-03-08 15:51:11.242 +00:00 [INF] Sending file. Request path: '/runtime.247ede6ef8c2436ecc16.js'. Physical path: '/app/ClientApp/dist/runtime.247ede6ef8c2436ecc16.js'
2022-03-08 15:51:11.242 +00:00 [INF] Sending file. Request path: '/styles.6d268db9d5f0a6c1292b.css'. Physical path: '/app/ClientApp/dist/styles.6d268db9d5f0a6c1292b.css'
2022-03-08 15:51:11.187 +00:00 [INF] HTTP GET /plates responded 200 in 151.6526 ms
2022-03-08 15:51:11.149 +00:00 [INF] Sending file. Request path: '/index.html'. Physical path: '/app/ClientApp/dist/index.html'
 

biggen

Known around here
Joined
May 6, 2018
Messages
2,572
Reaction score
2,855
I seem to be back in business after re-inputting all my OpenALPR settings in the webhook processor again. Its getting webhooks and displaying plates/pictures just fine. No errors in the log except what I posted earlier.
 

mlapaglia

Getting comfortable
Joined
Apr 6, 2016
Messages
849
Reaction score
506
whenever you get 500 errors on /webhook turn on debug mode, wait for some 500 errors to happen, then download the failed plates and paste them in here.

i'm guessing there an edge case i haven't thought of with processing.
 

mlapaglia

Getting comfortable
Joined
Apr 6, 2016
Messages
849
Reaction score
506
v4.2.3 is released with fixes for trying to add cameras when no agent has been configured, and fixed an issue with trying to remove sun rise/set schedules when deleting cameras.
 

mlapaglia

Getting comfortable
Joined
Apr 6, 2016
Messages
849
Reaction score
506
Small woopsie with the new date filter, v4.2.4 sets the start/end date before executing the search on the first page load, should be much faster with a large dataset now. sorry!
 

ArthurD123

n3wb
Joined
Jul 8, 2020
Messages
4
Reaction score
8
Location
Nevada
FWIW, I've written some very simple custom PHP code that is able to accept the web hooks, store the data locally, as well as grab the "full size" images from the agent (via proxying through the Rekor web (cloud or on-premises). While the UI isn't as nice, the data is all there, and it can be hosted on a VPS for under $5/mo (or hosted on a local RPi). It's just a simple hook processor + data-grabber, along the lines as the OP, but solely focused on data collection/archival, and with a key goal being to not need to open any ports locally aside from whatever port you want the webserver (and web hook) to reside on.

If there's any interest, I can probably get it packaged up and open-sourced in the next week or two.
 

biggen

Known around here
Joined
May 6, 2018
Messages
2,572
Reaction score
2,855
FWIW, I've written some very simple custom PHP code that is able to accept the web hooks, store the data locally, as well as grab the "full size" images from the agent (via proxying through the Rekor web (cloud or on-premises). While the UI isn't as nice, the data is all there, and it can be hosted on a VPS for under $5/mo (or hosted on a local RPi). It's just a simple hook processor + data-grabber, along the lines as the OP, but solely focused on data collection/archival, and with a key goal being to not need to open any ports locally aside from whatever port you want the webserver (and web hook) to reside on.

If there's any interest, I can probably get it packaged up and open-sourced in the next week or two.
If you don't mind to start your own thread with the above information. I'd be willing to try it!
 

biggen

Known around here
Joined
May 6, 2018
Messages
2,572
Reaction score
2,855
Small woopsie with the new date filter, v4.2.4 sets the start/end date before executing the search on the first page load, should be much faster with a large dataset now. sorry!
I'll give this a try tomorrow!
 

biggen

Known around here
Joined
May 6, 2018
Messages
2,572
Reaction score
2,855
A could of quick questions and a suggestion. I have the plate below as being seen twice in the last 90 days. The image shows below is from the date of 4/4. However, I don't see that plate listed on March 23 or anywhere else for that matter. How is it being referenced as seen twice but I only have one record of it? I'm also not sure what "Lenient Matches" is doing. If I type in a partial plate (for example only type in '015" for plate '015BBMP) and hit "Lenient Match" I don't get any results. If I type in the partial plate of '015" and hit "Regex Search" then I do get plate results.

Untitled.png

My suggestion I have has to do with alerting. Once you add a plate to the alert list, its not readily apparent how to look up plates added to that list. First, plates added to that list are under "Settings" which doesn't seem like the right spot for it. I'd think they would be under the "Plates" heading instead or have their own heading called "Alert Plates". Secondly, there is no way to search from the alert list directly. You have to go to Settings->Alerts, copy the plate you want to search for, then go back to "Plates", paste the plate in the search box, and then finally hit "Apply" to perform a search. It seems like there should be a way to search directly from the alert menu for a plate you want to find.

Anyway, my .02.
 
Last edited:

biggen

Known around here
Joined
May 6, 2018
Messages
2,572
Reaction score
2,855
When you work on another version, any way you could add a time search feature to search between times? So one could search plates for a day and time like 01/01/2020 from 1pm to 3 pm.

I'm searching for a wildcard plate (don't know the full plate number) but only need results for night hours (9pm - 4am)
 

niutron

n3wb
Joined
Apr 10, 2021
Messages
5
Reaction score
0
Location
Mexico
Wooaaahw this is just amazing, I've been trying to use this webhook processor, but can't seem to find my way around unRAID... Networking issues with docker container, as I use another webhook processor to get owner data from local Vehicle DB...

I've read so many tryout's of installation. Has anyone made a tutorial or a video of a successful installation?

And have a big question, how come it gets the plate so accurate even when not in angle? Does the learning stores locally?

Thanks
 

mlapaglia

Getting comfortable
Joined
Apr 6, 2016
Messages
849
Reaction score
506
Wooaaahw this is just amazing, I've been trying to use this webhook processor, but can't seem to find my way around unRAID... Networking issues with docker container, as I use another webhook processor to get owner data from local Vehicle DB...

I've read so many tryout's of installation. Has anyone made a tutorial or a video of a successful installation?

And have a big question, how come it gets the plate so accurate even when not in angle? Does the learning stores locally?

Thanks
Try just using the windows version first, then jump into Docker once you are better equipped.
 

CamCrazy

Pulling my weight
Joined
Aug 23, 2017
Messages
416
Reaction score
194
Location
UK
Just a minor thing I picked up on with Pushover alerts, when my clocks changed (I know :rolleyes::rolleyes:) the time stamp is now 1 hour behind on my iPhone. Not the end of the world obviously, wasn't sure if this was something I'd missed or not.
 
Top