vc-storefront icon indicating copy to clipboard operation
vc-storefront copied to clipboard

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

Open mvktsk opened this issue 5 years ago • 0 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

mvktsk avatar Oct 23 '19 06:10 mvktsk