AEM Cloud, CIF Addon and commerce-cif-graphql-integration-reference | Community
Skip to main content
DavidDebrosse
June 14, 2022
Solved

AEM Cloud, CIF Addon and commerce-cif-graphql-integration-reference

  • June 14, 2022
  • 1 reply
  • 814 views

Hello!

 

Has anyone used commerce-cif-graphql-integration-reference successfully with aem cloud and cif addon?

 

If we connect AEM to a proper Magento instance, aem seems to work fine, we can see products on aem components. If we point to the commerce-cif-graphql-integration-reference endpoint deployed with aio, we get a few query errors.

 

We manage to solve this error by adding values to the CategoryTree.uid field.

 

 

 

13.06.2022 09:20:12.452 ERROR [127.0.0.1 [1655104807456] GET /content/us/en.html HTTP/1.1] com.adobe.cq.commerce.core.components.client.MagentoGraphqlClient Failed to execute query: {categoryList(filters:{category_uid:{eq:"2"}}){uid,name,url_path,position,include_in_menu,children{uid,name,url_path,position,include_in_menu,children{uid,name,url_path,position,include_in_menu}}}} com.google.gson.JsonParseException: com.shopify.graphql.support.SchemaViolationError: Invalid value null for field CategoryTree.uid at com.adobe.cq.commerce.magento.graphql.gson.QueryDeserializer.deserialize(QueryDeserializer.java:40) [com.adobe.commerce.cif.magento-graphql:9.0.0.magento242ee]

 

 

 

 

Actual error (this query works fine on Magento):

 

 

 

Failed to execute query: {products(filter:{}) {sort_fields {default options {label value}}}}

 

 

 

 

Does this commerce-cif-graphql-integration-reference project work, with mocked info, without need to do any extra code?

 

Versions:

aem: aem-sdk-2022.4.7100.20220421T124010Z-220400

cif: cif-cloud-ready-feature-pkg-2022.05.31.00-cq-commerce-addon-authorfar

 

Thanks!

@manuel_óscars89 

This post is no longer active and is closed to new replies. Need help? Start a new post to ask your question.
Best answer by digarg17

Yes , we've used it successfully but we did manifestation of response on adobe io in the format expected by cif components. Adobe IO acted as a middle ware to manipulate the end point service response in the format component expected that can be compared with response for Magento component.

1 reply

digarg17Adobe EmployeeAccepted solution
Adobe Employee
June 14, 2022

Yes , we've used it successfully but we did manifestation of response on adobe io in the format expected by cif components. Adobe IO acted as a middle ware to manipulate the end point service response in the format component expected that can be compared with response for Magento component.