vc-storefront
vc-storefront copied to clipboard
Wrong error message when Storefront could not connect to Virto Commerce Platform
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
- In storefront appsettings.json set wrong Endpoint:URL
"Endpoint": {
"Url": "https://l",
- Start storefront web app