elsa-workflows / elsa-workflows/elsa-core

[BUG]The call is ambiguous and matches multiple workflows( But actually there is only one workflow match the url is running)

Open
#5,724 3 comments 0 reactions 0 assignees View on GitHub
bug elsa 3 triaged
Dominant language
C#
Stars
7.9k
Forks
1.5k
Avg merge
15h 22m
Merged PRs (30d)
114

Description

## Description
The HttpEndPoint keep return **"The call is ambiguous and matches multiple workflows" error**.
![3d16b573bc879107f38932e49b91ba4](https://github.com/elsa-workflows/elsa-core/assets/2155845/b8cf00ec-8809-49ef-b721-5eab57502139)
But actually, there is only one instance is running.
![3880bc1679f168c345949ea2566589c](https://github.com/elsa-workflows/elsa-core/assets/2155845/caadca32-6dfe-4d23-9ab6-ec7d27b1d991)

1. **Detailed Steps**: Provide a step-by-step description of what leads to the bug. Be as specific as possible.
(1)Create a workflow with a HttpEndpoint to listen, for example, /test
(2) Run the workflow.There will be an Instance of this workflow running. Call from a client, it works.
(3) Stop and delete this instance.
(4) Edit the workflow, maybe to modify anything and run again.
(5) Call from a client, it prompt the "matches multiple workflows” error

2. **Code Snippets**: If the issue involves code (e.g., JavaScript error, server request failure), include the relevant snippets where the issue occurs.

There are two instances when the client call in, the source code to get the instances from bookmarks, you can see there are two.
![image](https://github.com/elsa-workflows/elsa-core/assets/2155845/d3886ccf-96ef-4fdc-a6a6-ae9ebbee8412)
But acctually, no matter from the elsa API or from the database, there is only one instance exists.
![3880bc1679f168c345949ea2566589c](https://github.com/elsa-workflows/elsa-core/assets/2155845/b610f2d2-baf6-4366-8c42-351706a9e25f)

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.