Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[BUG] ELSA 3.3.0-rc3: Cancelling of Workflow Instance via REST API fails #6222

Open
r-kernberger opened this issue Dec 17, 2024 · 0 comments
Labels
bug Something isn't working

Comments

@r-kernberger
Copy link

Description

When Executing the Cancel Endpoint of the ELSA 3 REST API there is an Exception stating that there is no handler for CancelWorkflowsCommand available.

So Cancelling is not possible via REST.

Is this a known issue?

Find the Stacktrace and screenshot of Swagger result below:

System.InvalidOperationException: There is no handler to handle the Elsa.Workflows.Runtime.Commands.CancelWorkflowsCommand command
   at Elsa.Mediator.Middleware.Command.Components.CommandHandlerInvokerMiddleware.InvokeAsync(CommandContext context)
   at Elsa.Mediator.Middleware.Command.CommandPipeline.InvokeAsync(CommandContext context)
   at Elsa.Mediator.Services.DefaultMediator.SendAsync(ICommand command, ICommandStrategy strategy, CancellationToken cancellationToken)
   at Elsa.Workflows.Runtime.BackgroundWorkflowCancellationDispatcher.DispatchAsync(DispatchCancelWorkflowRequest request, CancellationToken cancellationToken)
   at Elsa.Workflows.Runtime.WorkflowCancellationService.CancelWorkflows(IList`1 workflowInstances, CancellationToken cancellationToken)
   at Elsa.Workflows.Runtime.WorkflowCancellationService.CancelWorkflowAsync(String workflowInstanceId, CancellationToken cancellationToken)
   at Elsa.Workflows.Api.Endpoints.WorkflowInstances.Cancel.Cancel.HandleAsync(Request request, CancellationToken cancellationToken)
   at FastEndpoints.Endpoint`2.ExecAsync(CancellationToken ct)
   at FastEndpoints.Endpoint`2.ExecAsync(CancellationToken ct)
   at NSwag.AspNetCore.Middlewares.SwaggerUiIndexMiddleware.Invoke(HttpContext context)
   at NSwag.AspNetCore.Middlewares.RedirectToIndexMiddleware.Invoke(HttpContext context)
   at NSwag.AspNetCore.Middlewares.SwaggerUiIndexMiddleware.Invoke(HttpContext context)
   at NSwag.AspNetCore.Middlewares.RedirectToIndexMiddleware.Invoke(HttpContext context)
   at NSwag.AspNetCore.Middlewares.OpenApiDocumentMiddleware.Invoke(HttpContext context)
   at Microsoft.AspNetCore.Diagnostics.DeveloperExceptionPageMiddlewareImpl.Invoke(HttpContext context)`

image

@r-kernberger r-kernberger added the bug Something isn't working label Dec 17, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant