-
Notifications
You must be signed in to change notification settings - Fork 15
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
Client issue when targeting blazor wasm #174
Comments
Please create a minimal repro so we can write the appropriate validation logic and unit tests. |
… and, FWIW, I doubt this is the only Blazor WASM issue. We don’t test on Blazor WASM, so there may be further edge cases. |
Think this should give you a minimal repro, only thing you might have to do before running is check the box in VS installer for ".NET 8.0 WebAssembly Build Tools". Other than that should be a case of running it and clicking the button on the home page. |
Agreed - my plan for this (since I have a number of other edge cases I want to test around Android, etc.) is to have a set of tests for each supported environment in their own test suite. These end-to-end tests would have a container for the server and a specific test runner for Android, Web, WPF, etc. that I can run. Unfortunately, the project doesn't have that capability today and I have to learn how to do it. Fortunately for me, I sit in an organization with years of experience doing this - so hopefully I can get some assistance in setting it up. However, this is a long pole item. I'm not going to hold 8.0.5 for it. |
Deferring to 9.0.0 to align with the plan for per-platform testing. |
Have made the adjustment since it doesn't affect anything (low-risk) without adding required testing. Testing will come in 9.0.0 |
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: