我正在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
}
}
}
}
使用define( 'GRAPHQL_DEBUG', true );
从WPGraphQL获取完整的错误消息]