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.

BananaCakePop UI works only from localhost

See original GitHub issue

Is there an existing issue for this?

  • I have searched the existing issues

Product

Banana Cake Pop

Describe the bug

We are using standard Graphql integration with

app.UseEndpoints(endpoints => { endpoints.MapGraphQL(); });

When accessing BananaCakePop from browser and browser URL is http://localhost:8097/graphql/ everything works as expected. But when I access UI by machine hostname http://machine-name:8097/graphql/ I get this error on client side

image

Do you have any ideas what can be done to pin down issue ? Thanks.

Steps to reproduce

  1. Access BananaCakePop UI by hostname

Relevant log output

{
  "name": "TypeError",
  "message": "Cannot read properties of undefined (reading 'addEventListener')",
  "stack": "TypeError: Cannot read properties of undefined (reading 'addEventListener')\n    at http://machine-name:8097/graphql/static/js/191.88fc520b.chunk.js:1:464182\n    at ru (http://machine-name:8097/graphql/static/js/917.89c7cf0e.js:2:116682)\n    at _s (http://machine-name:8097/graphql/static/js/917.89c7cf0e.js:2:136909)\n    at http://machine-name:8097/graphql/static/js/917.89c7cf0e.js:2:133499\n    at _ (http://machine-name:8097/graphql/static/js/917.89c7cf0e.js:2:162554)\n    at MessagePort.R (http://machine-name:8097/graphql/static/js/917.89c7cf0e.js:2:163088)"
}

Additional Context?

No response

Version

12.16.0

Issue Analytics

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

github_iconTop GitHub Comments

1reaction
artolacommented, Feb 6, 2023

@Temppus You are using http and in the BCP version that you are running, we have a call that only works in secure context. It was fixed around a month ago, you will find the find in BCP v3.0.4

0reactions
Temppuscommented, Feb 7, 2023

@Temppus You can now upgrade to 12.16.2 that contains the fix for BCP. Please let us know if it works with that to close this issue.

I also works with 12.16.2. Thanks.

Read more comments on GitHub >

github_iconTop Results From Across the Web

HotChocolate quickstart example not working: no query ...
When I access localhost:5207/graphql, I'm not seeing any queries under "Documents". Here's what I tried without success: Use prerelease 12.4 ...
Read more >
Introduction - Banana Cake Pop
Its intuitive UI enables you to visualize and explore your GraphQL schemas, making it easier to understand and work with complex structures. The ......
Read more >
Banana Cake Pop OAuth 2 redirection fails with error ...
So the oauth2 provider currently only works reliably in the desktop app. The reason for this is that we use a popup window...
Read more >
Creating a GraphQl backend in c# — How to get started ...
The Banana Cake Pop app hosted there lets you inspect your newly created GraphQl schema, offers auto-completion and shows the response to ...
Read more >
Getting started with GraphQL and HotChocolate - YouTube
NET Core (Demo) [09:43] - Querying with Banana Cake Pop (Demo) ... https://github.com/ChilliCream/graphql-workshop What is up with 11 of Hot ...
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