Troubleshooting the Cloud SDK
This topic describes the most common errors and solutions when using the Sitecore Cloud SDK.
Errors in the console or terminal
IE errors
IE errors are related to initializing the Cloud SDK. You must resolve these errors for the Cloud SDK to function properly.
|
Code |
Description |
Note |
|---|---|---|
|
|
The |
This error can occur when you call functions that require the Make sure to call these functions where the |
|
|
Timeout exceeded. The server did not respond within the allotted time. |
This error occurs when you call a function with the When you use |
|
|
Unable to set the cookie because the browser ID could not be retrieved from the server. Try again later, or use try-catch blocks to handle this error. |
This error can occur when there are network issues or the SitecoreAI server is down when initialization functions are running. It can also occur if your site name is not set in your app's environment variables. See connecting your JSS Next.js front-end app to the Experience Edge endpoint. When you initialize the Cloud SDK, use try-catch blocks to handle errors. |
|
|
You must first initialize the |
See examples of initializing the module. |
|
|
You must first initialize the |
See examples of initializing the module. |
|
|
You must first initialize the |
See examples of initializing the module. |
|
|
You must first initialize the |
See examples of initializing the module. |
IV errors
IV errors are related to incorrect values and wrongly formatted objects.
|
Code |
Description |
Note |
|---|---|---|
|
|
Incorrect value for Format the value according to ISO 8601. |
See examples of correctly formatted data for IDENTITY events. |
|
|
Incorrect value for | |
|
|
Incorrect value for Format the value according to ISO 8601. | |
|
|
This event supports maximum |
Make sure your |
|
|
Incorrect value for the timeout parameter. Set the value to an integer greater than or equal to |
|
MV errors
MV errors are related to missing values.
|
Code |
Description |
Note |
|---|---|---|
|
|
|
Set the value to your Context ID. By the time you start working with the Cloud SDK, your Context ID is already set in your app's environment variables. See connecting your JSS Next.js front-end app to the Experience Edge endpoint. |
|
|
|
Set the value to your site name. By the time you start working with the Cloud SDK, your site name is already set in your app's environment variables. See connecting your JSS Next.js front-end app to the Experience Edge endpoint. |
|
|
|
See examples of correctly formatted data for IDENTITY events. |
|
|
|
See examples of correctly formatted data. |