hasura / hasura/graphql-engine

Not able to introspect empty supergraph API

Open
#10,338 2 comments 0 reactions 0 assignees View on GitHub
c/v3-console ddnbugbounty-2024 k/v3-bug
Dominant language
TypeScript
Stars
32.1k
Forks
3k
PR merge metrics
PR metrics pending

Description

### Component

### What is the current behaviour?

![empty_project_bug](https://github.com/user-attachments/assets/b3913509-5e18-40c6-811a-32ed90ea332a)

### What is the expected behaviour?

There should be no errors.

### How to reproduce the issue?

Followed the steps [here](https://hasura.io/docs/3.0/getting-started/build/init-supergraph) and doing the step 4 fails with the following error:

```json
{
"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

Contributor guide

Open the contributing guide

Research direction

Start by reproducing step 4 from the linked init-supergraph guide with an empty supergraph. Trace the Console's schemaFetcher and fetchIntrospectionData calls around the reported Failed to fetch error. Done means introspection completes without errors for the empty supergraph.

Written by the indexing model from the issue text.

Assessment

Tech stack
graphql, typescript
Domain
api, frontend
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
25/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.