question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

MapGraphQL issue >= 12.17.0

See original GitHub issue

Is there an existing issue for this?

  • I have searched the existing issues

Product

Hot Chocolate

Describe the bug

We have been setting the GraphQL path to root for over a year and it works well on12.8.2.
This is done so that when we create Named HTTP Clients on down-stream services, that the Named HTTP connection can be utilized for both GraphQL and REST type integrations over each down-stream service within a Gateway.

This is now broken in >= 12.17.0 (possibly before) but as mentioned, it works properly in 12.8.2 at least.

This further prevents us from using Swagger and HC with root-level paths and is preventing us from migrating to 13.

Steps to reproduce

  1. Steps:

  2. Configure Swagger within in your program start-up using the default configuration

  3. Map GraphQL servers path to root. i.e. app.MapGraphQL(path: "/");

  4. Run your GraphQL server and try to run swagger. i.e. https://service/Swagger

Expected Behavior:

            Swagger UI is rendered

Actual Behavior:

            BCP UI is rendered.

Relevant log output

No response

Additional Context?

Other Notes:

If you accept the default MapGraphQL(); which resolves to path i.e. “https:/service/GraphQL”, this will return BCP rendered UI, and then when you run https://service/Swagger the Swagger UI is rendered. Unfortunately this breaks a ton services that we have already created.

Version

= 12.17.0

Issue Analytics

  • State:closed
  • Created 6 months ago
  • Comments:7 (2 by maintainers)

github_iconTop GitHub Comments

1reaction
jkearscommented, Mar 10, 2023

@michaelstaib … So we managed to get this to work… had to regenerate all of our services, but at least we are now finally running on 13.0.5, bring on Fusion!

image

Cheers

0reactions
jkearscommented, Mar 10, 2023

@michaelstaib … plus this all relates to how we resolve our gateway end-points, thus if this is changing in Fusion, then it may not be a problem in the future.

Read more comments on GitHub >

github_iconTop Results From Across the Web

What's new for Hot Chocolate 13
MapGraphQL ();. app.Run();. Note: After 2025-01-01T00:00:00Z, GraphQL servers are no longer required to support the legacy transport mode.
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found