Skip to content

No schema available in graphiql IDE after activating plugin #920

Open
@olicarignan

Description

@olicarignan

Describe the bug
When I active the wp-graphql-woocommerce plugin I lose access to the schema and I get a 500 error on the page. I turned on debug mode on wpgraphql but it doesn't seem to log any meaningful information. Here is the error I am getting in the console:

Failure running getIntrospectionQuery: {
  "name": "ApolloError",
  "graphQLErrors": [],
  "protocolErrors": [],
  "clientErrors": [],
  "networkError": {
    "name": "ServerError",
    "response": {},
    "statusCode": 500,
    "result": {
      "code": "internal_server_error",
      "message": "<p>There has been a critical error on this website.</p><p><a href=\"https://wordpress.org/documentation/article/faq-troubleshooting/\">Learn more about troubleshooting WordPress.</a></p>",
      "data": {
        "status": 500
      },
      "additional_errors": []
    }
  },
  "message": "Response not successful: Received status code 500",
  "cause": {
    "name": "ServerError",
    "response": {},
    "statusCode": 500,
    "result": {
      "code": "internal_server_error",
      "message": "<p>There has been a critical error on this website.</p><p><a href=\"https://wordpress.org/documentation/article/faq-troubleshooting/\">Learn more about troubleshooting WordPress.</a></p>",
      "data": {
        "status": 500
      },
      "additional_errors": []
    }
  }
}

To Reproduce
Steps to reproduce the behavior:

  1. Install wpgraphql
  2. Install woographql
  3. Go to the graphiql IDE page
  4. Open the query composer

Expected behavior
A clear and concise description of what you expected to happen.

Screenshots
If applicable, add screenshots to help explain your problem.

Desktop (please complete the following information):

  • OS: macOS
  • Browser: Firefox
  • Version: v.135.0

Plugin Versions

  • WooGraphQL Version: 0.21.0
  • WPGraphQL Version: 2.0.0
  • WordPress Version: 6.7.2
  • WooCommerce Version: 9.6.2

Additional context

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions