You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Sorry wasn't sure if this should be a discussion point or an issue as support for blazor wasm isn't included in the supported platforms but I was thinking given that there is a bit of a drive from the MS side with these new templates to have blazor web apps and blazor hybrid apps sharing code etc. that it might be worth considering? Also to note once this one issue was fixed when I was running locally I was able to get the sync fully working with blazor wasm, there weren't any further blockers in order to get the sync or anything else on the client side working as far as I can tell.
I'm happy to create a minimal repro if required, just wanted to check first if doing the required fix for this project is even desired given it isn't a supported platform
For the code that is looking to set automatic decompression to conditionally ignore this part of the code that throws the platformnotsupportedexception based on the platform. A fix that I have tested locally in the HttpClientFactory is the below -
What platforms?
Note: Any bug or feature request that is opened for an unsupported environment will be automatically closed.
Server:
Version of dotnet being used to compile? dotnet 8
Library versions? 8.0.4
What database are you using? Cosmos DB
Where are you running the server? Locally in kestrel
GitHub repository containing the code (optional, but helps!) Is in a private repo but happy to create minimal repro
Client:
What platform (Android, iOS, Windows, etc.) versions are you running on? MS Edge on windows
Does it happen in an emulator / simulator, or only on a real device? N/A
Describe the bug
Sorry wasn't sure if this should be a discussion point or an issue as support for blazor wasm isn't included in the supported platforms but I was thinking given that there is a bit of a drive from the MS side with these new templates to have blazor web apps and blazor hybrid apps sharing code etc. that it might be worth considering? Also to note once this one issue was fixed when I was running locally I was able to get the sync fully working with blazor wasm, there weren't any further blockers in order to get the sync or anything else on the client side working as far as I can tell.
The bug itself manifests when you want to pull/push to the server and it throws an error like below.
If my understanding is correct this is where the exception actually gets thrown
https://source.dot.net/#System.Net.Http/System/Net/Http/[HttpClientHandler.cs](https://source.dot.net/#System.Net.Http/System/Net/Http/HttpClientHandler.cs,141),141
Then on the datasync repo it is trying to do this set in here https://github.com/CommunityToolkit/Datasync/blob/main/src/CommunityToolkit.Datasync.Client/Http/HttpClientExtensions.cs#L37
To Reproduce
Steps to reproduce the behavior:
I'm happy to create a minimal repro if required, just wanted to check first if doing the required fix for this project is even desired given it isn't a supported platform
Expected behavior
For the code that is looking to set automatic decompression to conditionally ignore this part of the code that throws the platformnotsupportedexception based on the platform. A fix that I have tested locally in the HttpClientFactory is the below -
What platforms?
Server:
Client:
Screenshots
If applicable, add screenshots to help explain your problem.
Additional context
The text was updated successfully, but these errors were encountered: