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

Introspection ofType.field failed #991

Open
flymedllva opened this issue Aug 1, 2024 · 2 comments
Open

Introspection ofType.field failed #991

flymedllva opened this issue Aug 1, 2024 · 2 comments
Labels
bug Something isn't working internally-reviewed The issue has been reviewed internally.

Comments

@flymedllva
Copy link
Contributor

Component(s)

router

Component version

v0.99.1

wgc version

0.58.5

controlplane version

router version

v0.99.1

What happened?

Description

When introspection is requested, it falls on ofType.field

Steps to Reproduce

Use the schema I sent you in the mail
#959 (comment)

Run Query:

query MutationsSchema {
  __schema {
    mutationType {
      fields {
        description
        name
        type {
          ofType {
            name
            fields {
              name
              description
            }
          }
        }
      }
    }
  }
}

Expected Result

new cosmo

{
  "errors": [
    {
      "message": "Failed to fetch from Subgraph 'introspection__type__fields' at Path '[email protected]', Reason: no data or errors in response."
    }
  ]
}

old cosmo

{
  "errors": [
    {
      "message": "Unexpected end of JSON input",
      "stack": "SyntaxError: Unexpected end of JSON input"
    }
  ]
}

Actual Result

Work Query

Environment information

Environment

OS: (e.g., "Ubuntu 20.04") macOS
Package Manager: pnpm, npm, yarn, etc pnpm
Compiler(if manually compiled): (e.g., "go 14.2") go version go1.22.5 darwin/arm64

Router configuration

version: "1"

# General router options
graph:
  name: "production"
  token: ""

log_level: "info"
listen_addr: "localhost:3002"
playground_enabled: true
introspection_enabled: true
json_log: true
shutdown_delay: 15s
grace_period: 20s
poll_interval: 10s
health_check_path: "/health"
readiness_check_path: "/health/ready"
liveness_check_path: "/health/live"
router_config_path: "config.json"

cors:
  allow_origins: ["*"]
  allow_methods:
    - HEAD
    - GET
    - POST
  allow_headers:
    - Origin
    - Content-Length
    - Content-Type
  allow_credentials: true
  max_age_minutes: 5m

# Config for custom modules   
# See "https://cosmo-docs.wundergraph.com/router/custom-modules" for more information   
modules:
  myModule:
    # Arbitrary values, unmarshalled by the module
    value: 1

Router execution config

No response

Log output

No response

Additional context

No response

@flymedllva flymedllva added the bug Something isn't working label Aug 1, 2024
Copy link

github-actions bot commented Aug 1, 2024

WunderGraph commits fully to Open Source and we want to make sure that we can help you as fast as possible.
The roadmap is driven by our customers and we have to prioritize issues that are important to them.
You can influence the priority by becoming a customer. Please contact us here.

@jensneuse jensneuse added the internally-reviewed The issue has been reviewed internally. label Aug 6, 2024
@Aenimus
Copy link
Member

Aenimus commented Aug 6, 2024

Hi @flymedllva,

This does indeed appear to be an issue with the introspection datasource. However, this does not appear to be affecting any of our existing customers, who we must prioritise. We will attempt to address it when we have the capacity.

If this is urgent for you, we would encourage you to create a Pull Request that adequately fixes (with tests) this issue in the engine v2 package:
https://github.com/wundergraph/graphql-go-tools/
https://github.com/wundergraph/graphql-go-tools/tree/master/v2/pkg/introspection

Thanks!

The WunderGraph Team

@Aenimus Aenimus removed their assignment Aug 6, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working internally-reviewed The issue has been reviewed internally.
Projects
None yet
Development

No branches or pull requests

3 participants