ESI.NET icon indicating copy to clipboard operation
ESI.NET copied to clipboard

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

Open AdmirableTable opened this issue 1 year ago • 2 comments

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 avatar Jul 06 '24 06:07 AdmirableTable

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.

AdmirableTable avatar Jul 06 '24 06:07 AdmirableTable

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

LPiotr avatar Aug 27 '24 17:08 LPiotr