最新消息:雨落星辰是一个专注网站SEO优化、网站SEO诊断、搜索引擎研究、网络营销推广、网站策划运营及站长类的自媒体原创博客

javascript - GraphQL error: Internal server error when accessing graphQL - Stack Overflow

programmeradmin1浏览0评论

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

发布评论

评论列表(0)

  1. 暂无评论