在 magento 2.4.7-p2 中使用 graphql 全新安装时出现错误

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

我使用 Warden 全新安装了 magento 2.4.7-p2。我安装了示例数据。现在我想使用链接访问 graphql

https://app.demo.test/graphql
但我有错误。

{
"errors": [
{
"message": "Syntax Error: Unexpected <EOF>",
"locations": [
{
"line": 1,
"column": 1
}
],
"extensions": {
"file": "/var/www/html/vendor/webonyx/graphql-php/src/Language/Parser.php",
"line": 433
}
}
]
}

有什么解决办法吗?同样的错误发生在 2.4.7 上。之前不知道。版本。

graphql magento2.4
1个回答
0
投票

这是正确的做法。因为身体已经空了。如果您使用某个客户端发出请求,则会显示响应。

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