Slack Notifications not working

Randomly my slack channel notifications stopped working. I went looking into the log and got this error, what can be done to fix it?

2023-11-21 17:07:46,389 [   52] ERROR RedGate.SqlMonitor.UI.Website.Middlewares.CustomErrorHandlingMiddleware - Responding to unhandled exception with JSend error
RedGate.SqlMonitor.RPC.Client.Exceptions.RpcNoResultException: System.InvalidOperationException was thrown by method SendTestWebhookNotification on service ConfigurationRpcServer
   at RedGate.SqlMonitor.RPC.Client.RpcSynchronousChannel.CallMethod(String serviceName, MethodInfo method, Object[] args)
   at RedGate.SqlMonitor.RPC.Client.RpcSynchronousTcpChannel.CallMethod(String serviceName, MethodInfo method, Object[] args)
   at RedGate.SqlMonitor.RPC.Client.RpcProxyGenerator.RpcChannelInterceptor`1.Intercept(IInvocation invocation)
   at Castle.DynamicProxy.AbstractInvocation.Proceed()
   at Castle.Proxies.IConfigurationRpcServerProxy.SendTestWebhookNotification(WebhookTestRequestCommand settings)
   at RedGate.SqlMonitor.UI.Website.Api.Controllers.Notifications.WebhookNotificationsApiController.TestWebhook(WebhookTestRequestCommandDto testRequestCommandDto)
   at lambda_method1327(Closure, Object, Object[])
   at Microsoft.AspNetCore.Mvc.Infrastructure.ActionMethodExecutor.SyncActionResultExecutor.Execute(ActionContext actionContext, IActionResultTypeMapper mapper, ObjectMethodExecutor executor, Object controller, Object[] arguments)
   at Microsoft.AspNetCore.Mvc.Infrastructure.ControllerActionInvoker.<InvokeActionMethodAsync>g__Logged|12_1(ControllerActionInvoker invoker)
   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.Rethrow(ActionExecutedContextSealed context)
   at Microsoft.AspNetCore.Mvc.Infrastructure.ControllerActionInvoker.Next(State& next, Scope& scope, Object& state, Boolean& isCompleted)
   at Microsoft.AspNetCore.Mvc.Infrastructure.ControllerActionInvoker.<InvokeInnerFilterAsync>g__Awaited|13_0(ControllerActionInvoker invoker, Task lastTask, State next, Scope scope, Object state, Boolean isCompleted)
   at Microsoft.AspNetCore.Mvc.Infrastructure.ResourceInvoker.<InvokeNextExceptionFilterAsync>g__Awaited|26_0(ResourceInvoker invoker, Task lastTask, State next, Scope scope, Object state, Boolean isCompleted)
   at Microsoft.AspNetCore.Mvc.Infrastructure.ResourceInvoker.Rethrow(ExceptionContextSealed context)
   at Microsoft.AspNetCore.Mvc.Infrastructure.ResourceInvoker.Next(State& next, Scope& scope, Object& state, Boolean& isCompleted)
   at Microsoft.AspNetCore.Mvc.Infrastructure.ResourceInvoker.<InvokeNextResourceFilter>g__Awaited|25_0(ResourceInvoker invoker, Task lastTask, State next, Scope scope, Object state, Boolean isCompleted)
   at Microsoft.AspNetCore.Mvc.Infrastructure.ResourceInvoker.Rethrow(ResourceExecutedContextSealed context)
   at Microsoft.AspNetCore.Mvc.Infrastructure.ResourceInvoker.Next(State& next, Scope& scope, Object& state, Boolean& isCompleted)
   at Microsoft.AspNetCore.Mvc.Infrastructure.ResourceInvoker.<InvokeFilterPipelineAsync>g__Awaited|20_0(ResourceInvoker invoker, Task lastTask, State next, Scope scope, Object state, Boolean isCompleted)
   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)
   at Microsoft.AspNetCore.Routing.EndpointMiddleware.<Invoke>g__AwaitRequestTask|6_0(Endpoint endpoint, Task requestTask, ILogger logger)
   at Microsoft.AspNetCore.Session.SessionMiddleware.Invoke(HttpContext context)
   at Microsoft.AspNetCore.Session.SessionMiddleware.Invoke(HttpContext context)
   at Microsoft.AspNetCore.Authorization.AuthorizationMiddleware.Invoke(HttpContext context)
   at Microsoft.AspNetCore.Authentication.AuthenticationMiddleware.Invoke(HttpContext context)
   at RedGate.SqlMonitor.UI.Website.Middlewares.BaseMonitorSetUpMiddleware.Invoke(HttpContext context)
   at RedGate.SqlMonitor.UI.Website.Middlewares.RequestPerformanceLoggingMiddleware.Invoke(HttpContext context)
   at RedGate.SqlMonitor.UI.Website.Middlewares.ApplicationInsightsRequestLoggingMiddleware.Invoke(HttpContext context)
   at StackExchange.Profiling.MiniProfilerMiddleware.Invoke(HttpContext context) in C:\projects\dotnet\src\MiniProfiler.AspNetCore\MiniProfilerMiddleware.cs:line 114
   at RedGate.SqlMonitor.UI.Website.Middlewares.CustomErrorHandlingMiddleware.Invoke(HttpContext context)

Tagged:

Answers

Sign In or Register to comment.