admin管理员组

文章数量:1432205

I am using GraphQL with wpgraphql inside a WP setup. I have been using the service without any problems until I updated a Custom Post Type and it stopped working.

message: "Internal server error", category: "internal",

But what is odd is that it still returns the data, along with the error.

Doing the same query in graphiQL works without any flaws. Looking at the request, the only difference is no cookies are sent with the failing request.

I have enabled: define( 'WP_DEBUG', true ); but no new errors are displayed.

The query is rather simple:

{
  rankings {
    edges {
      node {
        rankingId
        id
        mentStatus
        content
        date
        title
        uri
        link
      }
    }
  }
}

I am using GraphQL with wpgraphql inside a WP setup. I have been using the service without any problems until I updated a Custom Post Type and it stopped working.

message: "Internal server error", category: "internal",

But what is odd is that it still returns the data, along with the error.

Doing the same query in graphiQL works without any flaws. Looking at the request, the only difference is no cookies are sent with the failing request.

I have enabled: define( 'WP_DEBUG', true ); but no new errors are displayed.

The query is rather simple:

{
  rankings {
    edges {
      node {
        rankingId
        id
        mentStatus
        content
        date
        title
        uri
        link
      }
    }
  }
}

Share Improve this question asked Jan 9, 2020 at 15:02 Jamie HutberJamie Hutber 28.1k54 gold badges194 silver badges313 bronze badges
Add a ment  | 

1 Answer 1

Reset to default 2

Use define( 'GRAPHQL_DEBUG', true ); to get the full error message from WPGraphQL

本文标签: javascriptGraphQL error Internal server error when accessing graphQLStack Overflow