我们使用AEM作为云服务SDK,使用CIF附加组件与Magento连接。在部署Venia代码后,我们无法在控制台中看到类别和产品图像,并看到以下错误:

Could not fetch storefront instance context Error: Cannot query field "dataServicesStorefrontInstanceContext" on type" Query"。我们可以在商务页面(http://localhost:4502/aem/products.html/var/commerce/products)上看到产品,因为云服务中的配置是正确的。
在error.log文件中出现以下错误:
GET /content/venia/us/en.html HTTP/1.1] com.adobe.cq.commerce.graphql.client.impl.GraphqlClientImpl GraphQL request {categoryList(filters:{category_uid:{eq:"52"}}){uid,name,url_path,position,children{uid,name,url_path,position,children{uid,name,url_path,position}}}} returned some errors [{"message":"Field \"category_uid\" is not defined by type CategoryFilterInput.","locations":[{"line":1,"column":24}]},{"message":"Cannot query field \"uid\" on type \"CategoryTree\".","locations":[{"line":1,"column":49}]},{"message":"Cannot query field \"uid\" on type \"CategoryTree\".","locations":[{"line":1,"column":85}]},{"message":"Cannot query field \"uid\" on type \"CategoryTree\".","locations":[{"line":1,"column":121}]}]如果有任何参考资料,敬请指教。提前谢谢。
发布于 2021-09-12 13:08:08
如果您没有按照文档记录的here (步骤3)在商务端安装magento/module-data-services-graphql模块,则会显示此错误。一旦你安装了它并在AEM中重新签入,这个错误就会消失。该功能是Adobe Commerce中的“产品推荐”功能所必需的。
https://stackoverflow.com/questions/69044508
复制相似问题