SAP / spartacus

Spartacus is a lean, Angular-based JavaScript storefront for SAP Commerce Cloud that communicates exclusively through the Commerce REST API.
Apache License 2.0
738 stars 383 forks source link

Error connecting spartacus with Smart edit SAP #12976

Closed BeniaminoOsculatiEY closed 2 years ago

BeniaminoOsculatiEY commented 3 years ago

Hi, I'm just trying to connect my local spartacus project with the smart edit of my SAP Commerce Cloud localhost. I've followed the guide https://sap.github.io/spartacus-docs/smartEdit-setup-instructions-for-spartacus/#page-title to connect spartacus and smart edit, adding the smart edit extension on my local website and allowed into the whiteListedStorefronts my localhost "https://localhost:4200" and setted up my Cockpit WCMS to. When I try to access to the smart edit this is my error: Screenshot 2021-06-30 at 16 04 54

I've searched online some resolution for this issue but didn't have found something that helps me. Have someone the same issue or can help me?

Thanks Beniamino

giancorderoortiz commented 3 years ago

@WeizhengSap please confirm this is indeed a bug.

WeizhengSap commented 3 years ago

@giancorderoortiz : This is not bug. There is something wrong with the setup. Please make sure the app can be opened with https://localhost:4200. From the console log, I can see there are GET errors. The requests to backend should work.

LTiger14 commented 3 years ago

@BeniaminoOsculatiEY Please see the comment above. Also, the console shows you are trying to connect to two backend servers (demo and localhost:9002). Make sure you are using the same one as SmartEdit.