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

Console error within graphiql-ui (404 POST ERROR) #47

Open
aldd-dpulidog opened this issue Jul 15, 2020 · 0 comments
Open

Console error within graphiql-ui (404 POST ERROR) #47

aldd-dpulidog opened this issue Jul 15, 2020 · 0 comments

Comments

@aldd-dpulidog
Copy link

When I access the GraphiQL endpoint everything shows correct except for the console that shows this error:

image

In the Network tab there is no response, just the 404 error, this also happens when I query something.

This is how I add my services and graphiQL:

services.AddGraphiQl(x =>
{
    x.GraphiQlPath = "/graphiql-ui";
    x.GraphQlApiPath = "graphql";
});
services.AddSingleton<IDependencyResolver>(x => new FuncDependencyResolver(type => x.GetRequiredService(type)));
services.AddScoped<UnitMeasurement>();
services.AddScoped<UnitMeasurementRepository>();
services.AddScoped<UnitMeasurementQuery>();
services.AddScoped<UnitMeasurementSchema>();
services.AddGraphQL(x =>
{
    x.ExposeExceptions = true; //set true only in development mode. make it switchable.
}).AddGraphTypes(ServiceLifetime.Scoped);

Any help is appreciated, thanks.

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

1 participant