Skip to content

Error message when DXA culture does not exist in E-Commerce service #8

@jhorsman

Description

@jhorsman

There is a DXA configuration for the culture code in \100 Master\Building Blocks\Settings\Core\Site Manager\Localization Configuration. The DXA culture setting is "en-US" by default.

When the application.yml does not have a localization configuration for this locale/culture, the DXA site will write this error to the log, and some of the message also appears in the mega navigation.

This error is caused by the e-commerce service which returns the {"error":{"code":"1000","message":"'?' expected but 'e' found"}} error message when you try to browse to a not existing locale. It would be nice of the E-Commerce service produces a more descriptive error message.

2016-11-29 22:19:31,759 [6] ERROR - Error executing child request for handler 'System.Web.Mvc.HttpHandlerUtil+ServerExecuteHttpHandlerAsyncWrapper'. System.Web.HttpException (0x80004005): Error executing child request for handler 'System.Web.Mvc.HttpHandlerUtil+ServerExecuteHttpHandlerAsyncWrapper'. ---> Microsoft.OData.Client.DataServiceQueryException: An error occurred while processing this request. ---> Microsoft.OData.Client.DataServiceClientException: {"error":{"code":"1000","message":"?' expected but e' found"}} at Microsoft.OData.Client.QueryResult.ExecuteQuery() at Microsoft.OData.Client.DataServiceRequest.Execute[TElement](DataServiceContext context, QueryComponents queryComponents) --- End of inner exception stack trace --- at Microsoft.OData.Client.DataServiceRequest.Execute[TElement](DataServiceContext context, QueryComponents queryComponents) at Microsoft.OData.Client.DataServiceQuery1.Execute()
at Microsoft.OData.Client.DataServiceQuery1.GetEnumerator() at System.Collections.Generic.List1..ctor(IEnumerable1 collection) .....

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions