Skip to content

Example doesn't work on Blazor #141

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

Closed
OscarCanek opened this issue Nov 22, 2019 · 2 comments
Closed

Example doesn't work on Blazor #141

OscarCanek opened this issue Nov 22, 2019 · 2 comments

Comments

@OscarCanek
Copy link

I'm using Blazor with the following versions:

image

But when I try to execute the example of the readme I got the following error:

image

Could you help me?

@sungam3r
Copy link
Member

See this - dotnet/aspnetcore#9125

@OscarCanek
Copy link
Author

Thank you @sungam3r, the link help me and I was able to resolve the problem, this is what I did:

services.AddScoped(opt => new GraphQLClient("https://localhost:5001/graphql",
                new GraphQLClientOptions {HttpMessageHandler = new WebAssemblyHttpMessageHandler()}));

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