Skip to content

Error Codes

All errors in LightLead are classified by category. Each category has its own code range and a typical resolution template.

Error categories

CategoryCodesDescriptionTypical resolution
AUTH1000–1999Authorization and authentication errorsReconnect the source, check permissions
THROTTLE2000–2999Rate limits exceededWait, adjust the interval, upgrade the plan
PAYLOAD3000–3999Invalid request parametersCheck the report configuration
TRANSPORT4000–4999Network errors and timeoutsCheck the connection, retry later
PERMISSION5000–5999Data access errorsCheck permissions at the source
INTERNAL9000–9999Internal system errorsContact support

AUTH (1000–1999) — Authorization errors

CodeErrorCauseSolution
1001invalid_tokenThe access token is invalidReconnect the source
1002expired_tokenThe token has expiredRefresh the token or reconnect
1003revoked_tokenThe token was revoked by the user or providerReauthorize via OAuth
1004invalid_refresh_tokenThe refresh token is invalidFull reauthorization
1005missing_credentialsCredentials weren't providedCheck the connection configuration
1006auth_server_unavailableThe authorization server is unavailableWait and retry
1010account_suspendedThe account at the source is blockedRestore the account at the source

Message template:

Authorization error [AUTH-1002]: The token has expired.
Connection: Google Ads (ID: abc123)
Solution: click "Reconnect" in the source settings.

Typical resolution:

  1. Go to the connection settings
  2. Click "Reconnect" or "Refresh Token"
  3. Go through OAuth authorization again

THROTTLE (2000–2999) — Rate limits exceeded

CodeErrorCauseSolution
2001rate_limit_exceededThe source API's request limit was exceededIncrease the interval between requests
2002quota_exceededThe daily/monthly API quota is exhaustedWait for the quota to reset or upgrade the plan
2003concurrent_limitToo many concurrent requestsWait for other reports to finish
2004source_rate_limitThe source imposed a restrictionWait, the system will retry automatically
2010daily_limit_reachedThe daily run limit was reachedWait for the next day

Message template:

Limit exceeded [THROTTLE-2001]: The source API's request limit was exceeded.
Connection: TikTok Ads (ID: def456)
Limit: 100 requests/minute
Solution: the system will automatically retry the request in 60 seconds.

Typical resolution:

  1. No action needed — the system automatically retries with exponential backoff
  2. If the error recurs regularly — increase the schedule interval
  3. Consider upgrading the plan to increase quotas

PAYLOAD (3000–3999) — Parameter errors

CodeErrorCauseSolution
3001invalid_fieldA nonexistent field was specifiedCheck the field name
3002incompatible_fieldsIncompatible fields in a single reportReview the set of dimensions and metrics
3003invalid_date_rangeInvalid date rangeCheck start and end
3004date_range_too_largeThe date range is too largeShorten the period
3005invalid_filterInvalid filter conditionCheck the operator and value type
3006too_many_dimensionsThe number of dimensions was exceededRemove extra dimensions
3007too_many_metricsThe number of metrics was exceededRemove extra metrics
3008circular_dependencyA circular dependency in calculated metricsCheck your formulas

Message template:

Parameter error [PAYLOAD-3003]: Invalid date range.
Field: date_range
Value: start=2026-02-31
Solution: February 31st doesn't exist. Specify a valid date.

Typical resolution:

  1. Check the report configuration
  2. Fix the invalid parameters
  3. Rerun the report

TRANSPORT (4000–4999) — Network errors

CodeErrorCauseSolution
4001connection_timeoutTimeout connecting to the source's APIRetry later
4002read_timeoutTimeout reading the responseRetry later
4003dns_errorDNS resolution errorCheck the network connection
4004ssl_errorSSL/TLS certificate errorContact support
4005connection_refusedThe server refused the connectionRetry later
4006http_5xxThe source's server returned a 5xxRetry later
4007response_too_largeThe response exceeds the maximum sizeNarrow the request

Message template:

Network error [TRANSPORT-4001]: Timeout connecting to the source's API.
Connection: Google Ads (ID: ghi789)
Solution: the system will automatically retry the request. If the error persists, check the source's status page.

Typical resolution:

  1. The system makes up to 3 automatic retries
  2. Check the source's status page
  3. Retry manually later

PERMISSION (5000–5999) — Access errors

CodeErrorCauseSolution
5001access_deniedAccess to the data was deniedCheck permissions at the source
5002insufficient_scopeInsufficient OAuth scopesReconnect with the required scopes
5003account_not_foundThe account wasn't foundCheck the account ID
5004field_not_accessibleNo access to a specific fieldRemove the field from the report
5005workspace_access_deniedNo access to the workspaceRequest access from the owner

Message template:

Access error [PERMISSION-5001]: Access to the data was denied.
Connection: Facebook Ads (ID: jkl012)
Reason: the user doesn't have permission to read the ad account.
Solution: grant the user administrator or analyst rights in the ad account.

Typical resolution:

  1. Check the user's permissions at the source
  2. Grant the required permissions
  3. Reconnect the source

INTERNAL (9000–9999) — Internal errors

CodeErrorCauseSolution
9001internal_errorAn unknown internal errorContact support
9002data_pipeline_errorAn error in the data processing pipelineContact support
9003storage_errorA data storage errorContact support
9004serialization_errorA data serialization errorCheck field types
9005normalization_errorA data normalization errorCheck the configuration
9999unknown_errorAn unknown errorContact support

Message template:

Internal error [INTERNAL-9001]: An unknown internal error occurred.
Request ID: req_abc123def456
Solution: contact LightLead support and provide the request ID.

Typical resolution:

  1. Copy the request ID
  2. Contact support via chat or email
  3. Provide the request ID, plan, and a description of the actions taken

Error response format

All errors are returned in a unified format:

json
{
  "error": {
    "category": "AUTH",
    "code": 1002,
    "message": "The token has expired",
    "details": {
      "connection_id": "abc123",
      "source_type": "google_ads",
      "token_expired_at": "2026-01-01T00:00:00Z"
    },
    "request_id": "req_abc123def456",
    "resolution": "Click \"Reconnect\" in the source settings"
  }
}

Maintained by the LightLead Documentation Team · Last verified: 2026-07-25