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

GetAllInstancesAsync thown Exception when use OrchestrationQuery #354

Open
kikutano opened this issue Nov 8, 2024 · 1 comment
Open

Comments

@kikutano
Copy link

kikutano commented Nov 8, 2024

Hello, when I try to use the GetAllInstancesAsync() Method:

var runtimeStatus = new List<OrchestrationRuntimeStatus>
{
        OrchestrationRuntimeStatus.Completed
 };

var instances = client.GetAllInstancesAsync(
       new OrchestrationQuery
       {
           Statuses = runtimeStatus,
           ContinuationToken = continuationToken,
       });

throws an Exception:

Status(StatusCode="Unknown", Detail="Exception was thrown by handler.")

If i try to get all Instances without filters, works fine.

var instances = client.GetAllInstancesAsync();

    bool any = await instances
        .Where(
            x => x.RuntimeStatus == OrchestrationRuntimeStatus.Running ||
            x.RuntimeStatus == OrchestrationRuntimeStatus.Pending)
        .AnyAsync();

Any Idea?

@bachuv
Copy link
Contributor

bachuv commented Nov 12, 2024

Hi @kikutano , thank you for opening this issue. I used the code that you provided to try and reproduce the issue and it's working for me. I don't see an exception. If possible, can you attach a zip file of a minimal code repro so we can locally debug the issue on our end? Thanks!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants