hasura / graphql-engine

Blazing fast, instant realtime GraphQL APIs on your DB with fine grained access control, also trigger webhooks on database events.
https://hasura.io
Apache License 2.0
31.03k stars 2.76k forks source link

Not able to introspect empty supergraph API #10338

Open codingkarthik opened 1 month ago

codingkarthik commented 1 month ago

Component

What is the current behaviour?

empty_project_bug

What is the expected behaviour?

There should be no errors.

How to reproduce the issue?

Followed the steps here and doing the step 4 fails with the following error:

{
  "errors": [
    {
      "message": "Failed to fetch",
      "stack": "TypeError: Failed to fetch\n    at https://console.hasura.io/assets/vendor-BLBR2gr0.js:367:3975\n    at schemaFetcher (https://console.hasura.io/assets/GraphiQLHeaders-togRCAWA.js:103:30695)\n    at https://console.hasura.io/assets/GraphiQLHeaders-togRCAWA.js:19:810\n    at fetchIntrospectionData (https://console.hasura.io/assets/GraphiQLHeaders-togRCAWA.js:71:4616)\n    at https://console.hasura.io/assets/GraphiQLHeaders-togRCAWA.js:71:5063\n    at https://console.hasura.io/assets/GraphiQLHeaders-togRCAWA.js:71:5242\n    at a2 (https://console.hasura.io/assets/vendor-BLBR2gr0.js:40:24296)\n    at qf (https://console.hasura.io/assets/vendor-BLBR2gr0.js:40:42451)\n    at S5 (https://console.hasura.io/assets/vendor-BLBR2gr0.js:40:36652)\n    at Du (https://console.hasura.io/assets/vendor-BLBR2gr0.js:38:3288)\n    at Lle (https://console.hasura.io/assets/vendor-BLBR2gr0.js:40:41328)\n    at ac (https://console.hasura.io/assets/vendor-BLBR2gr0.js:40:40312)\n    at GU (https://console.hasura.io/assets/vendor-BLBR2gr0.js:40:35759)\n    at S (https://console.hasura.io/assets/vendor-BLBR2gr0.js:25:1535)\n    at MessagePort.B (https://console.hasura.io/assets/vendor-BLBR2gr0.js:25:1894)"
    }
  ]
}

1. 2. 3.

Screenshots or Screencast

Please provide any traces or logs that could help here.

Any possible solutions/workarounds you're aware of?

Keywords

codingkarthik commented 1 month ago

FWIW, I'm using the Brave browser, trying the same link in the Firefox browser works, so not sure if it is a bug.

savanipoojan78 commented 1 month ago

In Brave bowser just turn off the Shields and it should work

Screenshot 2024-07-15 at 3 09 21 PM