Troubleshooting
This topic describes the most common errors in the console or terminal, and solutions when using the Sitecore Content SDK.
IE errors
IE errors are related to initialization. You must resolve these errors for the Content SDK to function properly.
|
Code |
Description |
Solution |
|---|---|---|
|
|
A required plugin dependency is missing. |
Review the plugins passed to |
|
|
An SDK feature was invoked before initialization. |
Ensure that |
|
|
Timeout exceeded. The server did not respond within the allotted time. |
This error occurs when you call a function with the timeout attribute in one of the function parameters, then the function makes a network request to the server, but the server doesn't respond in time. When you use timeout, use try-catch blocks to handle errors. |
|
|
A feature requiring a specific plugin was used, but the plugin is not registered. |
Check the |
|
|
Unable to set the |
Verify the values for |
|
|
Unable to set the |
Verify the values for |
|
|
The system failed to resolve a site configuration for the provided host name. |
Review site resolution settings in Sitecore AI and ensure that the correct host name mapping is configured. |
IV errors
IV errors are related to incorrect values and wrongly formatted objects.
|
Code |
Description |
Solution |
|---|---|---|
|
|
The provided |
Verify the Sitecore Edge URL configured via environment variables or in |
|
|
The provided |
Verify the value for |
|
|
The provided value for |
Verify the value for |
|
|
The provided value for |
Verify the value for |
|
|
The provided value for |
Verify the value for |
|
|
The number of attributes provided to |
Verify the number of attributes on |
|
|
The specified site cannot be found or its root item tree is not available. |
Verify that the site name is correctly defined in environment variables. Confirm that the site exists and is properly configured in SitecoreAI. If the configuration appears correct and the issue persists, contact Sitecore Support. |
MV errors
MV errors are related to missing values.
|
Code |
Description |
Solution |
|---|---|---|
|
|
A required |
Ensure that |
|
|
The |
Verify that the site name is correctly resolved and passed to the relevant service or configuration. |
|
|
|
Ensure site visitors have valid identifiers. See IdentityData. |
|
|
|
Friendly ID is the unique identifier of the live interactive experience or experiment to run. Ensure it's a valid friendly ID. See PersonalizeData. |
|
|
The |
Review the |
|
|
The |
Set the Sitecore client context ID if using client-side features that require it (for example, Forms, Events). |
|
|
Required API configuration is incomplete. Provide either |
Ensure that either: |
|
|
The |
Ensure that |
|
|
The required |
Verify that the language is correctly resolved (for example, from route, context, or configuration) and passed to the related services. |