Your achievements

Level 1

0% to

Level 2

Tip /
Sign in

Sign in to Community

to gain points, level up, and earn exciting badges like the new
BedrockMission!

Learn more

View all

Sign in to view all badges

AEM 6.5 Venia Cloud StoreFront console error from setup no category and product page fetching from Magento

ScriptHost
Level 2
Level 2

Hello all,

 

I am very new to the AEM Cloud Venia storefront, So basically I started with installing the venia store as a cloud service and downloaded the CIF connector to connect between Magento and successfully I got the data on the commerce side of AEM, but the issue is on the fresh venia theme package there is console error that is preventing from getting data for the product and category page even the categories are not showing on frontend.

 

 Then when I checked with the classic version of Venia Storefront the categories is coming up and also the product details are fetched on the category and product page. I couldn't understand what the issue was and where to move on further.

 

Error on console.log : Could not fetch storefront instance context Error: Cannot query field "dataServicesStorefrontInstanceContext" on type "Query"

The SDK & CIF version I am using on the cloud is 2021.8.5788.

 

Please help me with resolving this issue. Thanks in advance !!error.png

 

AEM 6.5 console.log javascript Magento venia
4 Replies
kishorekumar14
Level 7
Level 7

Hi @ScriptHost ,

 

Just trying to understand, are you using AEM 6.5 ? If yes classic variant is the option you should use as per doc

ScriptHost
Level 2
Level 2

Hi @kishorekumar14 

I have tried with AEM classic (6.5.5) with CIF connectors VENIA code is working fine. But AEM SDK (2021.8.5788) with CIF addons it is showing above error and not showing the image and as well as data in category and product page

Vijayalakshmi_S
Community Advisor
Community Advisor

Hi @ScriptHost

Could you please confirm if you have set up a local proxy server for Magento endpoint. 

ScriptHost
Level 2
Level 2

Hi @Vijayalakshmi_S 

 

I have set up a Magento instance and also we are getting data through CIF Connector on the Commerce side but it's not fetching in category and product page.