> exa-common-errors

Diagnose and fix Exa API errors by HTTP code and error tag. Use when encountering Exa errors, debugging failed requests, or troubleshooting integration issues. Trigger with phrases like "exa error", "fix exa", "exa not working", "debug exa", "exa 429", "exa 401".

fetch
$curl "https://skillshub.wtf/jeremylongshore/claude-code-plugins-plus-skills/exa-common-errors?format=md"
SKILL.mdexa-common-errors

Exa Common Errors

Overview

Quick reference for Exa API errors by HTTP status code and error tag. All error responses include a requestId field — include it when contacting Exa support at hello@exa.ai.

Error Reference

400 — Bad Request

Error TagCauseSolution
INVALID_REQUEST_BODYMalformed JSON or missing required fieldsValidate JSON structure and required query field
INVALID_REQUESTConflicting parametersRemove contradictory options (e.g., date filters with company category)
INVALID_URLSMalformed URLs in getContentsEnsure URLs have https:// protocol
INVALID_NUM_RESULTSnumResults > 100 with highlightsReduce to <= 100 or remove highlights
INVALID_JSON_SCHEMABad schema in summary.schemaValidate JSON schema syntax
NUM_RESULTS_EXCEEDEDExceeds plan limitCheck your plan's max results
NO_CONTENT_FOUNDNo content at provided URLsVerify URLs are accessible

401 — Unauthorized

# Verify your API key is set and valid
echo "Key set: ${EXA_API_KEY:+yes}"

# Test with curl
curl -s -o /dev/null -w "%{http_code}" \
  -X POST https://api.exa.ai/search \
  -H "x-api-key: $EXA_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"query":"test","numResults":1}'

Fix: Regenerate API key at dashboard.exa.ai.

402 — Payment Required

Error TagCauseSolution
NO_MORE_CREDITSAccount balance exhaustedTop up at dashboard.exa.ai
API_KEY_BUDGET_EXCEEDEDSpending limit reachedIncrease budget in API key settings

403 — Forbidden

Error TagCauseSolution
ACCESS_DENIEDFeature not available on planUpgrade plan or contact Exa
FEATURE_DISABLEDEndpoint not enabledCheck plan capabilities
ROBOTS_FILTER_FAILEDURL blocked by robots.txtUse a different URL
PROHIBITED_CONTENTContent blocked by moderationReview query for policy violations

429 — Rate Limited

// Default rate limit: 10 QPS (queries per second)
// Error response format: { "error": "rate limit exceeded" }

// Fix: implement exponential backoff
async function searchWithBackoff(exa: Exa, query: string, opts: any) {
  for (let attempt = 0; attempt < 5; attempt++) {
    try {
      return await exa.search(query, opts);
    } catch (err: any) {
      if (err.status !== 429) throw err;
      const delay = 1000 * Math.pow(2, attempt) + Math.random() * 500;
      console.log(`Rate limited. Waiting ${delay.toFixed(0)}ms...`);
      await new Promise(r => setTimeout(r, delay));
    }
  }
  throw new Error("Rate limit retries exhausted");
}

422 — Unprocessable Entity

Error TagCauseSolution
FETCH_DOCUMENT_ERRORURL could not be crawledVerify URL is accessible and not paywalled

5xx — Server Errors

CodeTagAction
500DEFAULT_ERROR / INTERNAL_ERRORRetry after 1-2 seconds
501UNABLE_TO_GENERATE_RESPONSERephrase query (answer endpoint)
502Bad GatewayRetry with delay
503Service UnavailableCheck status page, retry later

Content Fetch Errors (per-URL status in getContents)

TagCauseResolution
CRAWL_NOT_FOUNDContent unavailable at URLVerify URL correctness
CRAWL_TIMEOUTFetch timed outRetry or increase livecrawlTimeout
CRAWL_LIVECRAWL_TIMEOUTLive crawl exceeded timeoutSet livecrawlTimeout: 15000 or use livecrawl: "fallback"
SOURCE_NOT_AVAILABLEPaywalled or blockedTry cached content with livecrawl: "never"
UNSUPPORTED_URLNon-HTTP URL schemeUse standard HTTPS URLs

Quick Diagnostic Script

set -euo pipefail

echo "=== Exa Diagnostics ==="
echo "API Key: ${EXA_API_KEY:+SET (${#EXA_API_KEY} chars)}"

# Test basic connectivity
echo -n "API connectivity: "
HTTP_CODE=$(curl -s -o /tmp/exa-test.json -w "%{http_code}" \
  -X POST https://api.exa.ai/search \
  -H "x-api-key: $EXA_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"query":"connectivity test","numResults":1}')
echo "$HTTP_CODE"

if [ "$HTTP_CODE" != "200" ]; then
  echo "Error response:"
  cat /tmp/exa-test.json | python3 -m json.tool 2>/dev/null || cat /tmp/exa-test.json
fi

Instructions

  1. Check the HTTP status code from the error response
  2. Match the error tag to the tables above
  3. Apply the documented solution
  4. Include requestId from error responses when contacting support

Resources

Next Steps

For comprehensive debugging, see exa-debug-bundle. For rate limit patterns, see exa-rate-limits.

┌ stats

installs/wk0
░░░░░░░░░░
github stars1.7K
██████████
first seenMar 23, 2026
└────────────

┌ repo

jeremylongshore/claude-code-plugins-plus-skills
by jeremylongshore
└────────────