Expand my Community achievements bar.

SOLVED

Magento Commerce Enabled AEM 6.5.7 clientlibs not loading

Avatar

Level 2

AEM Archetype 27, Commerce enabled Integrated with Magento. Followed the below documentation  to configure

https://experienceleague.adobe.com/docs/experience-manager-65/commerce/storefront/getting-started.ht...

AEM Details : AEM 6.5

Service Pack :6.5.7

Commerce Add-on : commerce-addon-aem-650-all

Facing below issue 

 

1. Clientlibs are not loading in AEM storefront.Screenshot 2021-05-12 at 12.40.26 AM.png

 

2. Getting error in console :Resource at '/magento/graphql' not found: No resource found.

Screenshot 2021-05-12 at 12.42.44 AM.png

1 Accepted Solution

Avatar

Correct answer by
Community Advisor

Hi @anupammaiti ,

 

I don't think there is a relation between clientlib and /graphql endpoint.

Setting up the CIF add-on project won't affect the clientlib.

 it should load properly. can you please confirm if you are getting this issue in the author or publisher environment?

can you try hitting http://localhost:4502/commerce.html and see if you are able to see the products.

if not then configuration in cloud service is not done properly.

 

when you are giving localhost:4502/magento/graphql then make sure you have proxied the magento endpoint to localhost:4502.

thanks,

Prince

View solution in original post

5 Replies

Avatar

Level 9

Hi @anupammaiti , 

Seems like permission issue. 

Please have a check if permission (read ACL) is enabled for /magento/graphql and /etc folder folder.

Also please have a check on dispatcher filter is not blocking the request. 

 

https://experienceleague.adobe.com/docs/experience-manager-65/administering/security/security.html?l...

Avatar

Correct answer by
Community Advisor

Hi @anupammaiti ,

 

I don't think there is a relation between clientlib and /graphql endpoint.

Setting up the CIF add-on project won't affect the clientlib.

 it should load properly. can you please confirm if you are getting this issue in the author or publisher environment?

can you try hitting http://localhost:4502/commerce.html and see if you are able to see the products.

if not then configuration in cloud service is not done properly.

 

when you are giving localhost:4502/magento/graphql then make sure you have proxied the magento endpoint to localhost:4502.

thanks,

Prince

Avatar

Level 2
I am running AEM 6.5 and Magento on same machine(for development) so I don't need proxy server. The issue was with magneto running on https and certificate was creating issue. CSS issue is a different issue. Looks like Archtype 27 with AEM 6.5.7 and Commerce enabled does not come with the css or scss files are not properly generating as npm build is not happening properly. I tried copying css from Venia project and it worked.

Avatar

Community Advisor
if it is Magento lower environment endpoint, then you can try hitting the endpoint appending /graphql without https, it should work.