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

Error: One or more errors occurred. (Operation is not supported on this platform.) when used on Blazor WebAssembly client. #77

Open
AdmirableTable opened this issue Jul 6, 2024 · 2 comments

Comments

@AdmirableTable
Copy link

When using the package in a Blazor WebAssembly client, it immediately triggers the following error:

Error: One or more errors occurred. (Operation is not supported on this platform.)

Only tested on Google Chrome so far.

@AdmirableTable
Copy link
Author

While investigating further, I was able to identify the issue to be here: https://github.com/seraphx2/ESI.NET/blob/master/ESI.NET/EsiClient.cs#L30

Any value given for AutomaticDecompression sustains the error, and removing it entirely effectively removes the error, but then decompression would have to be implemented manually.

Proposed solution replace HttpClient with RestSharp, the most widely used Rest client, which is much more convenient than implementing those features manually and would handle the decompression issue easily. I am currently working on it myself and will submit a pull request to save some time unless you prefer fixing this otherwise.

@LPiotr
Copy link

LPiotr commented Aug 27, 2024

Hi, any news? =) I wanna join to this project if it isn't abbandoned yet.

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

No branches or pull requests

2 participants