AnswerBun.com

Exception in loaddiing commerce catalog items in storefront

Sitecore Asked on November 26, 2020

I have installed sitecore commerce and now in storefront, When i am trying to navigate to the product list page, i get the following exception

Message: An error occured while trying to contact the Commerce Service. Error code BadGateway
An error occured while trying to contact the Commerce Service. Error code BadRequest
Source: Sitecore.Commerce.Engine.Connect+

Any ideas?

One Answer

In all the sitecore 9 and above versions, this error happens when the sitecore instance is not able to find out the correct instance of commerce engine.

The storefront will get the configuration from ShopsService URL and communicate with the corresponding commerce engines.

Here are 2 steps you must check when this happens

  1. Go to showconfig.aspx and find the ShopsService and commerceOpsServiceUrl should point to https://localhost:5000. There might have been some override config files which is overwriting these values which you can find in showconfig url.
  2. Check to see if commerce engine metadata specified in shopsServiceUrl is accessable. For example shopsServiceUrl https://localhost:5000/CommerceOps/$metadata#Commands/$entity will need to be validated)

Correct answer by Rama Krshna Ila on November 26, 2020

Add your own answers!

Related Questions

How to get General Link Field in RenderFieldArgs?

0  Asked on August 23, 2021 by gautam-aneja

 

Setting site default language in SXA

1  Asked on August 23, 2021 by mohamed-mosa

   

Sitecore domain and sub domain authentication

1  Asked on August 23, 2021 by suresh-r

   

No data recorded in Experience Analytics

3  Asked on August 23, 2021 by breno-diniz-pelosi

   

GraphQL query to search for pages based on template

2  Asked on August 23, 2021 by serhii-shushliapin

   

Sitecore SxA Composite Layout not adding custom css and js

1  Asked on August 23, 2021 by nadine-lendzian

 

Sitecore Item URL with Custom Domain in Azure PaaS

2  Asked on August 23, 2021 by alok-kumar

   

Updated field in rendering variant not working

2  Asked on August 23, 2021 by barada-behura

   

Creating multi site using Sitecore JSS

1  Asked on August 23, 2021 by haappyy02

 

Scale Out Content Management AppService

1  Asked on August 23, 2021 by pirate-briggs

     

Use SXA rendering variant for dynamic object

1  Asked on August 23, 2021 by user2980

   

Custom Item Url Builder

1  Asked on August 23, 2021 by ethan-schofer

 

Ask a Question

Get help from others!

© 2023 AnswerBun.com. All rights reserved. Sites we Love: PCI Database, UKBizDB, Menu Kuliner, Sharing RPP