Skip to content

Graphql enpoint unable to fetch schema #623

@eb0687

Description

@eb0687

Describe the bug
When querying the graphql endpoint using insomnia I am able to see the response, however I get a warning that I am unable to fetch the schema:

Insomnia_iKWIafgAuq

when reviewing the debug console of insomnia i get the below error as well:

Error: Introspection must provide input type for arguments, but received: [FirewallScheduleTimeRange]!.

Due to the above problem I do not get autocomplete in insomnia when writing queries as insomnia is unable to fetch the data in the schema at all.

To Reproduce
Steps to reproduce the behavior:

  • install insomnia
  • get the jwt token via the /api/v2/auth/jwt endpoint
  • query the graphql endpoint on /api/v2/graphql
  • response of 200 successful
  • but warning saying unable to fetch schema due to the error specified above

Expected behavior
When querying the endpoint I expect autocomplete in insomnia, this is only possible if the documentation is populated if fetching from the schema is successful.

pfSense Version & Package Version:

  • pfSense Version: 2.72
  • Package Version v2.3.0

Affected Endpoints:

  • URL: /api/v2/graphql

Additional context

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions