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

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

Open
4 of 5 tasks
sbward opened this issue Oct 23, 2023 · 0 comments
Open
4 of 5 tasks
Labels
bug Something is not working.

Comments

@sbward
Copy link

sbward commented Oct 23, 2023

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

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

No branches or pull requests

1 participant