This guide helps you to quickly diagnose and resolve response errors in Contentstack Launch, whether they originate from the CDN edge layer or your backend serverless functions (the origin). For each issue, we provide the specific error message, a detailed explanation of its cause, and steps to resolve the issue.
| Error Code | Origin | Response Status | Summary of Cause |
|---|---|---|---|
| CFL-0001 | CDN Edge | 500 | The Launch Edge Function failed to execute at the CDN layer due to an unhandled exception or an invalid/malformed response. |
| CF001 | Origin | 500 | The project's server process failed to initialize, often due to an incorrect server command, missing build output, or an application crash. |
| CF002 | Origin | 500 | An unexpected issue within the Launch platform infrastructure prevented the request from completing. |
| CF003 | Origin | 502 | The total size of the response headers returned by your server-side application exceeded the platform's allowed limit. |
| CF004 | Origin | 500 | The origin function executed but did not return a valid HTTP response, possibly due to a failure to fetch external data or a runtime error. |
| CF1001 | Origin | 413 | The request body exceeds the maximum allowed size of 5 MB. |
| CF1003 | Origin | 502 | The request could not be completed due to an upstream response issue. |
A CDN edge error occurs when the request reaches the CDN layer, but the Launch Edge Function fails to execute correctly. This error returns a 500 response.
Cause:
The Edge Function encountered an unhandled exception or returned an invalid or malformed response.
Resolution:
Origin errors occur when a request reaches your backend serverless functions, but an issue prevents them from processing the request or returning a valid response.
Error:
Internal Server Error CF001: The server failed to start. Check the Launch Server logs for details.
Launch attempted to start your project’s server, but the process failed to initialize. This error returns a 500 response.
Cause:
An incorrect server command, missing or invalid build output, an unexpected error that prevents the server from starting, or an application crash caused by running out of memory.
Resolution:
Error:
Internal Server Error CF002: An internal error occurred. Try again, or contact Contentstack Support if the issue persists.
This error occurs when the Launch infrastructure encounters an unexpected issue while processing the request. It returns a 500 response.
Cause:
An unexpected issue within the Launch platform prevented the request from completing successfully.
Resolution:
Error:
Bad Gateway CF003: The total size of the response headers exceeded the limit. Check and reduce their size.
Your server-side application returned response headers whose combined size was greater than the allowed limit. This error returns a 502 response.
Cause:
Resolution:
Error:
Internal Server Error CF004: No valid response from the server. Check the Launch Server Logs and try again.
This error occurs when the origin function executes but does not return a valid HTTP response. It returns a 500 response.
Cause:
Resolution:
Error:
The request body exceeds the maximum allowed size of 5 MB.
This error occurs when a request sent to Launch contains a payload whose total size exceeds the maximum supported limit of 5 MB. Launch enforces a strict request body size limit of 5 MB at the origin layer. This error returns a 413 response.
Cause:
Resolution:
Error:
The request failed due to incorrect usage of path or query parameters. Refer to RFC 3986 to verify whether the path or query parameters are valid. Contact Contentstack Support if the path or query parameters are correct.
This error occurs when the request reaches the Launch origin layer and the path or query parameters are not formatted according to defined URL standards. As a result, the upstream service cannot process the request. This error returns a 502 response.
Cause:
Resolution: