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

Nitro doesn't work in Windows browser (Error 502). #7770

Open
KostyaTymko opened this issue Nov 27, 2024 · 7 comments
Open

Nitro doesn't work in Windows browser (Error 502). #7770

KostyaTymko opened this issue Nov 27, 2024 · 7 comments

Comments

@KostyaTymko
Copy link

Product

Nitro

Version

14.1.0

Link to minimal reproduction

http://localhost:5095/graphql

Steps to reproduce

I updated HotChocolate nuget package from version 12.7.0 to 14.1.0 in .net core web api, and after that Nitro does not work in Windows browser (I tried in different browsers, it gives error 502).
On Mac everything works correctly, Nitro opens and works
Steps:

dotnet new install HotChocolate.Templates

dotnet new graphql --name GettingStarted

dotnet run --no-hot-reload

http://localhost:5095/graphql

What is expected?

I want to see GraphQL IDE Nitro on Windows Pc

What is actually happening?

i get HTTP Error 502

Relevant log output

Additional context

No response

@glen-84
Copy link
Collaborator

glen-84 commented Nov 28, 2024

You'll need to add link to a minimal reproduction of the issue. I cannot reproduce this issue using the graphql template on Windows.

@michaelstaib
Copy link
Member

I also cannot reproduce it with Edge on Windows.

@michaelstaib
Copy link
Member

michaelstaib commented Dec 3, 2024

Is your windows machine by any chance sealed from accessing the internet. If so, you will need to configure nitro to use the embedded version.

@michaelstaib
Copy link
Member

@PascalSenn we should actually fallback to the embedded version if we detect a 502.

@KostyaTymko
Copy link
Author

How to do this?

@glen-84
Copy link
Collaborator

glen-84 commented Dec 23, 2024

How to do this?

app.MapGraphQL().WithOptions(new()
{
    Tool = { ServeMode = GraphQLToolServeMode.Embedded }
});

@KostyaTymko
Copy link
Author

Thank you. It works.)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants