GraphQL错误:访问graphQL时发生内部服务器错误

问题描述 投票:0回答:1

我正在WP设置中将GraphQL与wpgraphql一起使用。在更新自定义帖子类型并停止工作之前,我一直在使用该服务,没有任何问题。

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

但是奇怪的是它仍然返回数据以及错误。

在graphiQL中执行相同的查询没有任何缺陷。查看请求,唯一的区别是失败的请求没有发送cookie。

我已启用:define( 'WP_DEBUG', true );,但未显示新错误。

查询非常简单:

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

enter image description here

javascript wordpress graphql react-apollo apollo-client
1个回答
0
投票

使用define( 'GRAPHQL_DEBUG', true );WPGraphQL获取完整的错误消息]

© www.soinside.com 2019 - 2024. All rights reserved.