ory / sdk

The place where ORY's SDKs are being auto-generated
Apache License 2.0
137 stars 85 forks source link

.NET SDK on Blazor WebAssembly: System.Net.Requests is not supported on this platform #299

Open sbward opened 9 months ago

sbward commented 9 months ago

Preflight checklist

Ory Network Project

No response

Describe the bug

When attempting to use the Ory .NET SDK in a Blazor WebAssembly project, invoking any method throws an exception with the message System.Net.Requests is not supported on this platform.

Reproducing the bug

  1. Create a MAUI Blazor WebAssembly project with .NET Core CLI.
  2. Install Ory SDK as a dependency via Nuget.
  3. Create an instance of FrontendApi with baseUrl set to an Ory Kratos public API (I am hosting Kratos locally).
  4. Call the method (for example) CreateBrowserLoginFlow.

Relevant log output

Ory.Client.Client.ApiException: Error calling CreateBrowserLoginFlow: System.Net.Requests is not supported on this platform.

Relevant configuration

No response

Version

Ory.Client v1.2.11

On which operating system are you observing this issue?

macOS

In which environment are you deploying?

Docker Compose