dapr / dotnet-sdk

Dapr SDK for .NET
Apache License 2.0
1.12k stars 341 forks source link

Issue with Deserialization in GetStateAsync Method of DaprClient Library when Fetching XML Data from Blob Storage #1143

Open KrzysztofPajak opened 1 year ago

KrzysztofPajak commented 1 year ago

I am currently experiencing an issue with the GetStateAsync method from the DaprClient library (C#). When I fetch data from blob storage, which returns XML data, the JsonSerializer does not support XML deserialization, thus causing a problem. Is there a workaround or solution to retrieve these data? I would appreciate any help or guidance you could provide to resolve this issue. Thank you.

halspang commented 1 year ago

Once this PR is merged, I think it should unblock you as you can deserialize the data yourself: https://github.com/dapr/dotnet-sdk/pull/1116

Did you put the data in via the DaprClient as well? Or does this data exist in the statestore already?

KrzysztofPajak commented 1 year ago

@halspang The data exists in the store, but it would be great if we could put the binary data. Thanks for the great work!