VirtoCommerce / vc-storefront

Virto Commerce Storefront - ASP.NET Core 8.0

Home Page:http://virtocommerce.com

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Wrong error message when Storefront could not connect to Virto Commerce Platform

mvktsk opened this issue · comments

Version info:

  • Browser version: Chrome 77.0.3865.120
  • Platform version:
  • Storefront version: v4.1.1

Expected behavior

Get a message like

Failed to connect to Virto Commerce Platform. Check if the endpoint URL is set correctly in appsettings.json

Actual behavior

Get error message

HttpOperationException: Operation returned an invalid status code 'Unauthorized'
VirtoCommerce.Storefront.AutoRestClients.StoreModuleApi.StoreModule.GetStoresWithHttpMessagesAsync(Dictionary<string, List> customHeaders, CancellationToken cancellationToken) in StoreModuleApi.cs, line 663

Steps to reproduce

  1. In storefront appsettings.json set wrong Endpoint:URL
"Endpoint": {
        "Url": "https://l",
  1. Start storefront web app