Automated summary
A diagnostic reference for Exa API HTTP status codes and error tags, with remediation and escalation procedures.
Strengths
- Status-code tables (400, 401, 402, 403, 429) mapping each error tag to a cause and a fix
- Includes concrete curl and TypeScript snippets to verify the API key and implement exponential backoff
- Emphasizes redacting sensitive data and reporting the requestId to Exa support
Limitations
- The 429 code sample is truncated in the file, limiting direct reuse
- Only the listed error codes are covered; other statuses or network failures are not addressed
- Assumes access to Bash(curl) and Bash(node) tools for the suggested checks
Use when an Exa request fails and you need to identify the cause from the returned HTTP code or error tag.
Avoid for designing an initial Exa integration or for pricing and feature questions outside error handling.
Security analysis
CautionThe skill is a debugging reference for the Exa API. Its executable content is limited to curl requests against the official api.exa.ai endpoint, an echo that only reveals whether the key is set, and a bounded node/TS backoff snippet. There is no exfiltration to third-party hosts, no destructive command, no obfuscated payload, and no instruction to disable safety. It does use network egress with a live credential, so it warrants a caution rather than safe rating; minor hygiene gaps (fixed /tmp file, key on curl command line, truncated tail) are worth flagging but not disqualifying.
- •Uses Bash(curl:*) to send network requests to https://api.exa.ai with the EXA_API_KEY header — legitimate diagnostics but places the key in a subprocess command line where it can be seen via process listing on shared hosts
- •Diagnostic script writes an API response to a fixed path /tmp/exa-test.json without cleanup or restrictive permissions
- •Script prints API key length (`${#EXA_API_KEY}`) and key-set status; no secret value is printed, but metadata is emitted to stdout/logs
- •Document text appears truncated mid-command (`|| cat /tmp`), so the executed script may be incomplete/unreliable
Examples
My Exa search is failing with a 429 rate limit error — help me confirm it and add exponential backoff.Exa returns INVALID_URLS on getContents; check my URLs and tell me what to fix.Exa not working, I get a 401 — walk me through verifying my EXA_API_KEY with curl.name: exa-common-errors description: '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".
' allowed-tools: Read, Grep, Bash(curl:), Bash(node:) version: 1.11.0 license: MIT author: Jeremy Longshore jeremy@intentsolutions.io tags:
- saas
- exa
- debugging
- errors compatibility: Designed for Claude Code
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 hello@exa.ai.
Error Reference
400 — Bad Request
| Error Tag | Cause | Solution |
|-----------|-------|----------|
| INVALID_REQUEST_BODY | 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 |
| INVALID_NUM_RESULTS | numResults > 100 with highlights | Reduce to <= 100 or remove highlights |
| INVALID_JSON_SCHEMA | Bad schema in summary.schema | Validate JSON schema syntax |
| NUM_RESULTS_EXCEEDED | Exceeds plan limit | Check your plan's max results |
| NO_CONTENT_FOUND | 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 |
|-----------|-------|----------|
| NO_MORE_CREDITS | Account balance exhausted | Top up at dashboard.exa.ai |
| API_KEY_BUDGET_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 |
| ROBOTS_FILTER_FAILED | 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 |
|-----------|-------|----------|
| FETCH_DOCUMENT_ERROR | URL could not be crawled | Verify URL is accessible and not paywalled |
5xx — Server Errors
| Code | Tag | Action |
|------|-----|--------|
| 500 | DEFAULT_ERROR / INTERNAL_ERROR | Retry after 1-2 seconds |
| 501 | UNABLE_TO_GENERATE_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 |
|-----|-------|-----------|
| CRAWL_NOT_FOUND | Content unavailable at URL | Verify URL correctness |
| CRAWL_TIMEOUT | Fetch timed out | Retry or increase livecrawlTimeout |
| CRAWL_LIVECRAWL_TIMEOUT | Live crawl exceeded timeout | Set livecrawlTimeout: 15000 or use livecrawl: "fallback" |
| SOURCE_NOT_AVAILABLE | 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
- Check the HTTP status code from the error response
- Match the error tag to the tables above
- Apply the documented solution
- Include
requestIdfrom error responses when contacting support
Resources
Next Steps
For comprehensive debugging, see exa-debug-bundle. For rate limit patterns, see exa-rate-limits.
From the file to a first result
The download contains exactly the content displayed on this page. This copy may differ from the latest version in the source repository.
View the source and supporting filesThis download contains SKILL.md only. Any scripts, references, templates and dependencies are not included. Get the required files from the source, preserving their directory structure, before continuing.
1. Download the file
Download SKILL.mdFrom the root of a test project, save the file as .skill-downloads/exa-api-common-errors-mte1lhx3/SKILL.md, or use the command below. This folder is for inspecting the skill before installation.
Command for macOS/Linux or WSL: requires a POSIX shell and curl. On Windows without WSL, use the download button and create the folder manually.
mkdir -p '.skill-downloads/exa-api-common-errors-mte1lhx3' && curl --fail --show-error --location 'https://skills-guides.com/api/skills/exa-api-common-errors-mte1lhx3/download' --output '.skill-downloads/exa-api-common-errors-mte1lhx3/SKILL.md.part' && mv '.skill-downloads/exa-api-common-errors-mte1lhx3/SKILL.md.part' '.skill-downloads/exa-api-common-errors-mte1lhx3/SKILL.md'2. Check prerequisites
Read SKILL.md before using it. If it references scripts or external services, inspect them and prepare the required access in your test environment.
Environment declared by the author: Designed for Claude Code
Tools declared by the author (check availability in your agent): Read, Grep, Bash(curl:*), Bash(node:*)
Original excerpt: Prerequisites
- A bounded non-sensitive reproduction, environment/version, expected behavior, and redaction rule for diagnostics.
The platforms on this page are catalog indications. The paths below follow tool documentation; they do not prove this skill has been run in those tools. No minimum tool version is confirmed for this listing.
3. Load the skill
After inspection, copy the complete folder into your project using one of the commands below, then open a new tool session. The command stops if a folder with the same name already exists: compare the files before replacing it.
Claude Code
test -f '.skill-downloads/exa-api-common-errors-mte1lhx3/SKILL.md' && test -s '.skill-downloads/exa-api-common-errors-mte1lhx3/SKILL.md' && mkdir -p '.claude/skills' && test ! -e '.claude/skills/exa-common-errors' && cp -R '.skill-downloads/exa-api-common-errors-mte1lhx3' '.claude/skills/exa-common-errors'OpenSkills
OpenSkills must already be installed. The local install/read procedure is checked with OpenSkills 1.5.0, which requires Node.js ≥ 20.6.0. Catalog slugs are not resolved automatically.
Official OpenSkills installationopenskills install './.skill-downloads/exa-api-common-errors-mte1lhx3'openskills read 'exa-api-common-errors-mte1lhx3'Reading should display the installed file content and its base directory. It does not run the skill or install its dependencies.
For an agent that reads AGENTS.md, then sync the index. This command changes AGENTS.md: review the diff before using it.
openskills syncManual method or another tool: attach SKILL.md to a conversation, or open it in an agent that can read files. Include any required supporting resources. No universal folder is recognized by every tool.
4. Try a first task
Use a short, synthetic input: an API endpoint, a small document or an interface brief. In a new conversation, attach the file or give the agent its path, then adapt this request:
Read .skill-downloads/exa-api-common-errors-mte1lhx3/SKILL.md and apply its instructions to this example: [describe a test input]. Identify any missing files, dependencies or access. Produce the result requested by the skill without inventing data or running unreviewed scripts.Expected result: output matching the skill instructions, or a precise list of missing prerequisites. A read confirmation alone does not validate a first use. If an external resource is unavailable, that path remains untested.
React Hook Form Best Practices
Development
Master React Hook Form: avoid anti-patterns, manage subscriptions, and handle reset, dirty state, and controlled inputs correctly.
Emotion to Mantine Migration
Development
Migrate Emotion styled-components to Mantine components with style props and CSS modules. Use when converting .styled.tsx files or removing @emotion imports.
Scope Creep Detector
Development
Analyzes git diffs against a stated intent to detect scope creep, unrelated files, broad PRs, and oversized changes, then suggests keep, split, or justify actions.