简体   繁体   中英

GraphQL error: Internal server error when accessing graphQL

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
        commentStatus
        content
        date
        title
        uri
        link
      }
    }
  }
}

在此处输入图片说明

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

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM