There are two ways to use Captain Data: through our API or the Platform UI. If you’re a platform user, head over to the Legacy Platform Documentation section of the documentation.

Manage Workflows & Jobs

Troubleshooting Errors

If you encounter an unusual error like 503 - Cannot undefined, don’t hesitate to reach out to us! This is an internal error on our end, and we’ll be happy to help resolve it.

Below is a comprehensive reference of common errors you may encounter when using the Captain Data API, organized by category with recommended actions.

HTTP Status Codes

HTTP Status Codes are standard response codes returned by web servers to indicate the outcome of an HTTP request. They help you understand whether your request was successful, encountered an error, or requires further action.

Status CodeDescriptionAction Required
200OK - Request was successfulNone - Operation completed successfully
201Created - Resource was successfully createdNone - Operation completed successfully
400Bad Request - Request could not be understood or was missing required parametersReview and correct your request parameters
401Unauthorized - Authentication failed or user doesn’t have permissionsCheck your authentication credentials and permissions
403Forbidden - Access deniedContact support if this error persists
404Not Found - Resource was not foundVerify the resource exists or check your request URL
405Method Not Allowed - Requested method is not supported for resourceUse the correct HTTP method for the endpoint
429Too Many Requests - Rate limitedWait before making additional requests
500Internal Server Error - Server error from external websiteContact support - can be retried manually
502Bad Gateway - Bad response from external websiteContact support - can be retried manually
503Service Unavailable - External website service unavailableContact support - can be retried manually
504Gateway Timeout - External website timeoutContact support - can be retried manually

Authentication & Cookie Errors occur when your credentials, tokens, or session cookies are missing, invalid, or expired. These errors prevent you from accessing protected resources or performing certain actions.

Error CodeDescriptionAction Required
LK_BAD_COOKIEUpdate your LinkedIn integration’s account (your cookie is not valid)Must update your account and retry the job
401Authentication requiredCan be an input issue or configuration problem - correct and retry

Access & Permission Errors

Access & Permission Errors indicate that your account or API key does not have the necessary rights to access a resource or perform an operation. This can be due to insufficient permissions or restricted content.

Error CodeDescriptionAction Required
LK_403This page is not accessibleNothing to do - the profile is not accessible
403Access deniedContact support - error not caught by Captain Data

Rate Limiting & Limits

Rate Limiting & Limits errors occur when you exceed the number of allowed requests or actions within a certain time frame. These safeguards help prevent abuse and ensure fair usage of the API.

Error CodeDescriptionAction Required
LIMIT_REACHED{{timespan}} limit reached for {{service}}Retry - occurs when service limits are reached
RATE_LIMITEDYou have been rate limited, waiting before launching next requestAutomatic retry - handled by Captain Data
429You have been rate limited, waiting before launching next requestAutomatic retry - handled by Captain Data

Network & Connection Errors

Network & Connection Errors happen when there are issues with connectivity, timeouts, or communication between your client and the server. These are often temporary and can be resolved by retrying the request.

Error CodeDescriptionAction Required
API_MAX_RETRYError while making API call: Max retries of {{max}} reached for this call with reason {{reason}}Retry the operation
API_TIMEOUT_ERRORTimeout of {{timeout}} ms exceededRetry the operation
ECONNRESETConnection reset - retrying indefinitely…Retry the operation
ETIMEDOUTTimed out - retrying indefinitely…Retry the operation
HPE_HEADER_OVERFLOWHTTP Header too large ({{size}})Retry the operation

Business Logic Errors

Business Logic Errors occur when the request is technically valid, but the data or parameters provided do not meet the requirements or rules of the application. These errors often indicate issues with your input, such as missing fields, invalid values, or logical conditions not being met.

Error CodeDescriptionAction Required
NO_RESULTNo results for {{input}}Nothing to do - no data found for the given input
BAD_INPUTInvalid input providedCorrect your input and retry
MISSING_PARAMETERMissing required parameter {{parameter}}Add the missing parameter and retry
UNDEFINED_FIELDOne or multiple of the necessary values are undefined: {{fields}}Correct your input/parameter and retry
NOT_CONNECTEDYou are not connected with {{handle}}Nothing to do - connection doesn’t exist
BAD_PARAMETERS_NON_BLOCKERParameter {{parameter}} is invalid: {{explanation}}Correct your parameter and retry

Generic Errors

Generic Errors are unexpected issues that do not fit into other categories. They may be caused by unforeseen conditions, unhandled exceptions, or errors not specifically caught by Captain Data. If you encounter these, it’s best to contact support.

Error CodeDescriptionAction Required
GENERIC_ERRORError while {{action}}: {{error}}Contact support - error not caught by Captain Data
GENERIC_NON_BLOCKER_ERRORError while {{action}}: {{error}}Contact support - error not caught by Captain Data

Error Handling Best Practices