smithery/jeremylongshore

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". '

Installation

$ npx skills add smithery/jeremylongshore --skill exa-common-errors

Similar popular skills

Related neighbors and high-traction skills in the same topics — useful to compare before installing.

Also in this package

Other skills from smithery/jeremylongshore · top by installs.

npx skills add smithery/jeremylongshore

Browse all from smithery/jeremylongshore

More details

Agent compatibility

Declared targets from SKILL.md / docs. Unmarked agents are not listed — the skill may still install via the CLI.

Claude Code Declared
Cursor Not declared
Codex Not declared
GitHub Copilot Not declared
Windsurf Not declared
Gemini CLI Not declared
Cline Not declared
OpenCode Not declared

Skill metadata

Parsed from SKILL.md frontmatter.

Version1.11.0
LicenseMIT
CompatibilityDesigned for Claude Code
Allowed toolsRead, Grep, Bash(curl:*), Bash(node:*)
Declared agents claude-code

Package contents

Files included with this skill beyond the listing page.

  • skill md SKILL.md 6,555 B
  • docs SUMMARY.md 261 B

History

  1. First recorded snapshot · 0 installs

SKILL.md

Exa Common Errors

Prerequisites

  • A bounded non-sensitive reproduction, environment/version, expected behavior, and redaction rule for diagnostics.

Output

  • A classified Exa failure with redacted evidence and a verified bounded remediation or escalation.

Error Handling

Condition Safe response
Authentication fails Verify the scoped secret reference/environment; revoke/rotate if exposure is suspected.
Result is unexpected Inspect supported sources, date, options, and citations with a sanitized query before changing policy.
Throttling occurs Apply documented backoff and reduce concurrency; do not bulk retry.
Request includes sensitive data Stop, sanitize/use an approved path, and follow exposure policy.

Examples

For a failing request, record correlation ID, environment, status class, latency, and sanitized request category, then validate credentials and options against a non-sensitive fixture. Escalate with redacted evidence rather than full query/result content.

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 [email protected].

Error Reference

400 — Bad Request

Error Tag Cause Solution
INVALIDREQUESTBODY Malformed JSON or missing required fields Validate JSON structure and required query field
INVALID_REQUEST Conflicting parameters Remove contradictory options (e.g., date filters with company category)
INVALID_URLS Malformed URLs in getContents Ensure URLs have https:// protocol
INVALIDNUMRESULTS numResults > 100 with highlights Reduce to <= 100 or remove highlights
INVALIDJSONSCHEMA Bad schema in summary.schema Validate JSON schema syntax
NUMRESULTSEXCEEDED Exceeds plan limit Check your plan's max results
NOCONTENTFOUND No content at provided URLs Verify 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 Tag Cause Solution
NOMORECREDITS Account balance exhausted Top up at dashboard.exa.ai
APIKEYBUDGET_EXCEEDED Spending limit reached Increase budget in API key settings

403 — Forbidden

Error Tag Cause Solution
ACCESS_DENIED Feature not available on plan Upgrade plan or contact Exa
FEATURE_DISABLED Endpoint not enabled Check plan capabilities
ROBOTSFILTERFAILED URL blocked by robots.txt Use a different URL
PROHIBITED_CONTENT Content blocked by moderation Review 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 Tag Cause Solution
FETCHDOCUMENTERROR URL could not be crawled Verify URL is accessible and not paywalled

5xx — Server Errors

Code Tag Action
500 DEFAULTERROR / INTERNALERROR Retry after 1-2 seconds
501 UNABLETOGENERATE_RESPONSE Rephrase query (answer endpoint)
502 Bad Gateway Retry with delay
503 Service Unavailable Check status page, retry later

Content Fetch Errors (per-URL status in getContents)

Tag Cause Resolution
CRAWLNOTFOUND Content unavailable at URL Verify URL correctness
CRAWL_TIMEOUT Fetch timed out Retry or increase livecrawlTimeout
CRAWLLIVECRAWLTIMEOUT Live crawl exceeded timeout Set livecrawlTimeout: 15000 or use livecrawl: "fallback"
SOURCENOTAVAILABLE Paywalled or blocked Try cached content with livecrawl: "never"
UNSUPPORTED_URL Non-HTTP URL scheme Use 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.