question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Exception when starting activity with HTTP Endpoint

See original GitHub issue

Latest source compiled and Monolith started. Simple workflow with HTTP Endpoint and response.

I get following exception when triggering endpoint:

Elsa.Exceptions.LockAcquisitionException: Failed to acquire a lock on correlation ID at Elsa.Dispatch.Handlers.ExecuteWorkflowDefinition.Handle(ExecuteWorkflowDefinitionRequest request, CancellationToken cancellationToken) in D:\Projects\Envox\Mainline\ThirdParty\elsa-core\src\core\Elsa.Core\Dispatch\Handlers\ExecuteWorkflowDefinition.cs:line 63 at MediatR.Pipeline.RequestExceptionProcessorBehavior2.Handle(TRequest request, CancellationToken cancellationToken, RequestHandlerDelegate1 next) at MediatR.Pipeline.RequestExceptionProcessorBehavior2.Handle(TRequest request, CancellationToken cancellationToken, RequestHandlerDelegate1 next) at MediatR.Pipeline.RequestExceptionActionProcessorBehavior2.Handle(TRequest request, CancellationToken cancellationToken, RequestHandlerDelegate1 next) at MediatR.Pipeline.RequestExceptionActionProcessorBehavior2.Handle(TRequest request, CancellationToken cancellationToken, RequestHandlerDelegate1 next) at MediatR.Pipeline.RequestPostProcessorBehavior2.Handle(TRequest request, CancellationToken cancellationToken, RequestHandlerDelegate1 next) at MediatR.Pipeline.RequestPreProcessorBehavior2.Handle(TRequest request, CancellationToken cancellationToken, RequestHandlerDelegate1 next) at Elsa.Dispatch.Handlers.TriggerWorkflows.StartWorkflowsAsync(TriggerWorkflowsRequest request, CancellationToken cancellationToken) in D:\Projects\Envox\Mainline\ThirdParty\elsa-core\src\core\Elsa.Core\Dispatch\Handlers\TriggerWorkflows.cs:line 96 at Elsa.Dispatch.Handlers.TriggerWorkflows.Handle(TriggerWorkflowsRequest request, CancellationToken cancellationToken) in D:\Projects\Envox\Mainline\ThirdParty\elsa-core\src\core\Elsa.Core\Dispatch\Handlers\TriggerWorkflows.cs:line 82 at MediatR.Pipeline.RequestExceptionProcessorBehavior2.Handle(TRequest request, CancellationToken cancellationToken, RequestHandlerDelegate1 next) at MediatR.Pipeline.RequestExceptionProcessorBehavior2.Handle(TRequest request, CancellationToken cancellationToken, RequestHandlerDelegate1 next) at MediatR.Pipeline.RequestExceptionActionProcessorBehavior2.Handle(TRequest request, CancellationToken cancellationToken, RequestHandlerDelegate1 next) at MediatR.Pipeline.RequestExceptionActionProcessorBehavior2.Handle(TRequest request, CancellationToken cancellationToken, RequestHandlerDelegate1 next) at MediatR.Pipeline.RequestPostProcessorBehavior2.Handle(TRequest request, CancellationToken cancellationToken, RequestHandlerDelegate1 next) at MediatR.Pipeline.RequestPreProcessorBehavior2.Handle(TRequest request, CancellationToken cancellationToken, RequestHandlerDelegate1 next) at Elsa.Activities.Http.Middleware.HttpEndpointMiddleware.InvokeAsync(HttpContext httpContext, IMediator mediator) in D:\Projects\Envox\Mainline\ThirdParty\elsa-core\src\activities\Elsa.Activities.Http\Middleware\HttpRequestMiddleware.cs:line 28 at Swashbuckle.AspNetCore.SwaggerUI.SwaggerUIMiddleware.Invoke(HttpContext httpContext) at Swashbuckle.AspNetCore.Swagger.SwaggerMiddleware.Invoke(HttpContext httpContext, ISwaggerProvider swaggerProvider) at Microsoft.AspNetCore.Diagnostics.DeveloperExceptionPageMiddleware.Invoke(HttpContext context)

Please advise what did I do wrong?

Issue Analytics

  • State:closed
  • Created 2 years ago
  • Comments:7 (7 by maintainers)

github_iconTop GitHub Comments

1reaction
sfmskywalkercommented, Apr 12, 2021

It’s not you; it’s me. I will fix.

0reactions
sfmskywalkercommented, Apr 13, 2021

Fixed the path in the other project as well 👍🏻 Regarding .NET 6.0, there’s no special reason. I installed the .NET 6.0 preview bits, which causes it to be the default SDK when creating new projects. It’s OK to change it to .NET 5.0.

Read more comments on GitHub >

github_iconTop Results From Across the Web

What Exception class type does Spring Boot throw when ...
In Spring Boot, when a user tries to access a REST endpoint whose path does not exist at the @RestController level, Spring Boot...
Read more >
Exceptions and HTTP status codes - Cloud Endpoints
This page lists the exceptions provided by the endpoints library as well as HTTP status codes supported by Cloud Endpoints Frameworks.
Read more >
ADF Azure data factory web activity error - Microsoft Q&A
Hi, I am calling an API in ADF using Web task ( not web hook). It was working fine but recently I have...
Read more >
Activity | Android Developers
Quickly bring your app to life with less code, using a modern declarative approach to UI, and the simplicity of Kotlin. ... Start...
Read more >
Solved: Error : Unable to start activity ComponentInfo com...
RuntimeException : Unable to start activity ComponentInfo{com.package.name/com.visa.checkout.VisaMcomActivity}: java.lang.NullPointerException
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found