-
Notifications
You must be signed in to change notification settings - Fork 1.8k
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
Querying the state does not work in Azure Containers App #4459
Comments
Update. Found an error into app logs |
Hi @sergiibielskyi , Can you reference this issue here https://github.com/microsoft/azure-container-apps/issues? |
Thanks @sergiibielskyi, closing this as this belongs to the container apps GitHub repository. |
did not find. Thanks. |
Hi, did you find a solution to this issue? I've gotten this error, but ONLY for querying. Everything else is fine. |
Azure Container Apps uses Dapr 1.4 which doesn't support querying. I know they're going to upgrade to 1.7 soon. cc @torosent |
Ah, that makes perfect sense. Wish I'd have asked this question a few days ago. Many thanks for the info! |
waiting for this upgrade. Thanks. |
Just created an issue here microsoft/azure-container-apps#155 |
The problem is still there even though they are Container Apps use v1.7.3. I can't query Cosmos DB store when deploying to container apps, while query cosmos db works when I self-host dap on my machine with no issues. This is the exception I'm receiving
|
This needs to be tracked here: microsoft/azure-container-apps#155 |
Any updates on the fix |
Hi team,
I am trying to find the solution to how to get results from state storage by using a specific query, not just getting item by id. I found a good explanation here https://docs.dapr.io/developing-applications/building-blocks/state-management/howto-state-query-api/. And I prepared method to use query state.
CancellationTokenSource source = new CancellationTokenSource();
CancellationToken cancellationToken = source.Token;
var queryResponse = await daprClient.QueryStateAsync(storeName, query, cancellationToken: cancellationToken);
Locally, it works. But when I try to publish that into the Azure Containers App I see 500 error and any description why it happens.
I assume, probably Azure Containers App service doesn't have the right Dapr runtime but I can not prove it.
Any ideas?
The text was updated successfully, but these errors were encountered: