Errors and HTTP response status
If there is a problem with the request or response, Sitecore Discover returns error codes and HTTP response codes. The errors response object has details about the errors encountered while fulfilling the request. Sitecore Discover tries to serve the request partially even when there are errors.
Errors associated with 500 HTTP statuses might not follow the prescribed format. This is because of potential multiple layers of load balancers, gateways, proxies, and so on.
HTTP response codes
The following table lists HTTP response codes that the Sitecore Discover APIs uses:
|
HTTP Status |
Description |
|---|---|
|
|
The request was successful. Partial results might be returned when 200 is specified. Always check for errors even when you receive a 200 status. Evaluate the error and determine the action based on the relevance to your specific request. |
|
|
A multi-status response conveys information about multiple resources in situations where multiple status codes might be appropriate. Check for errors and determine the action based on the relevance to your specific request. Currently, the response returns 200 when there are partial errors instead of 207. |
|
|
The request was invalid or cannot be otherwise served. An accompanying error message gives further explanation. |
|
|
There are missing or incorrect authentication credentials. |
|
|
There is an invalid format specified in the request. |
|
|
The client is uploading too much data, and the connection timed out |
|
|
The number of requests sent in a given time has reached the rate limit. Try again later. |
|
|
There is an error on the Discover side. This is usually a temporary error, for example in a high load situation or if an endpoint is temporarily having issues. Try again later. |
|
|
The Discover gateway is misconfigured, and the authentication token could not be validated. Clear your cache and cookies, and try again. |
|
|
The Discover server is busy. Try again later. |
|
|
The Discover server took too long to respond. Try again later. |
Search and Recommendation error codes
The following table lists error codes that the Search and Recommendation API returns:
|
Code |
Type |
Description |
Troubleshooting Tip |
|---|---|---|---|
|
|
|
Corresponds with |
Check the domain ID and retry. |
|
|
|
Corresponds with |
Check the error details and retry. |
|
|
|
Corresponds with The response did not honor all the configurations in the Customer Engagement Console (CEC). This usually happens when one or more services are not available or are busy. |
If this happens for more than a few minutes, check the Discover service status page, or contact your support representative. |
|
|
|
Corresponds with The request |
Check how |
|
|
|
Corresponds with This is usually a temporary error, for example in a high load situation, or if an endpoint is temporarily having issues. |
If this happens for more than a few minutes, contact your support representative. |
|
|
|
Corresponds with Incorrect recipe ID for the widget. The recipe is not properly defined for the v2 domain. |
In the CEC, review the recipe definition for the given |
|
|
|
Corresponds with The store parameters are not found in the request or in the context. |
The domain is configured to require a store ID or a store group ID. If this was not intended, review the CEC settings. |
|
|
|
Corresponds with None of the required parameters are found in |
The request must contain at least one of the context parameters mentioned. Check your request and try again. |
|
|
|
Corresponds with |
In the CEC, check if the domain has any of the passed |
|
|
|
Corresponds with |
In the CEC, check if the domain has the passed |
|
|
|
Corresponds with |
In the CEC, check if the domain pages are properly configured. |
|
|
|
Corresponds with |
In the CEC, check if the domain has the |
|
|
|
Corresponds with |
In the CEC, check if the domain has the passed |
|
|
|
Corresponds with |
In the CEC, check if the domain has the passed product group. |
|
|
|
Corresponds with |
In the CEC, check if the domain has the |
|
|
|
Corresponds with |
In the CEC, check if the domain pages are properly configured. |
|
|
|
Corresponds with This is usually a temporary error, for example in a high load situation or if an endpoint is temporarily having issues. |
If this happens for more than a few minutes, contact your support representative. |
|
|
|
Corresponds with This is usually a temporary error. For example, a high load situation or an endpoint having temporary issues. |
If this happens for more than a few minutes, contact your support representative. |