Apify Common Errors
Overview
Quick diagnostic reference for the most common Apify errors. Covers Actor run
failures, API errors, proxy problems, anti-bot blocks, and platform-specific
issues. The full per-error catalog — raw signature, cause, diagnosis, and
copy-paste fix for all ten errors — lives in
references/error-reference.md; this file is the
lean triage path that points you there.
Prerequisites
- An Apify API token exported as
APIFY_TOKEN (Console > Settings > Integrations).
- Access to the Apify Console for reading run and build logs.
curl and jq on PATH for the diagnostic commands below; apify CLI optional for build inspection.
Instructions
Work the failure from signal to fix:
- Capture the exact error. Grab the
Status / StatusMessage from the
run, or the ApifyApiError message and HTTP code from the API response.
The raw string is the key you match on.
- Match the signature. Find the matching entry in the table below, then
open references/error-reference.md at that
number for the cause, diagnosis, and fix.
- Diagnose before changing code. For run failures, pull the log via the
API or Console (see the FAILED entry). For auth/rate/payload errors, the
HTTP code already tells you the class — see Error Handling.
- Apply the fix from the reference, re-run, and confirm with the
diagnostic commands.
Error signature → reference
| # |
Error |
Signature to match |
| 1 |
Actor run FAILED |
Status: FAILED / exited with code 1 |
| 2 |
Actor run TIMED-OUT |
Actor timed out after N seconds |
| 3 |
Rate limited |
Rate limit exceeded (429) |
| 4 |
Unauthorized |
Authentication required (401) |
| 5 |
Build failed |
Build failed: npm ERR! |
| 6 |
Proxy connection failed |
502 Bad Gateway / Could not connect to proxy |
| 7 |
Anti-bot block |
status 403 / Captcha detected |
| 8 |
Out of memory |
JavaScript heap out of memory |
| 9 |
Dataset push too large |
Payload too large (413) |
| 10 |
Actor not found |
Actor '…' not found (404) |
Full detail for every row: references/error-reference.md.
Output
Working through this skill yields:
- The identified error class (matched signature + the one of ten catalog entries).
- The root cause and a copy-paste fix (config change, code edit, or token/proxy action).
- A verification command whose output confirms the run recovered (status
SUCCEEDED, valid username, etc.).
Error Handling
| HTTP Code |
Meaning |
Retryable |
Action |
| 400 |
Bad request |
No |
Fix input/params |
| 401 |
Unauthorized |
No |
Check token |
| 403 |
Forbidden |
No |
Check permissions |
| 404 |
Not found |
No |
Verify resource ID |
| 408 |
Timeout |
Yes |
Retry with backoff |
| 413 |
Payload too large |
No |
Reduce batch size |
| 429 |
Rate limited |
Yes |
Auto-retried by client |
| 500+ |
Server error |
Yes |
Auto-retried by client |
Examples
Diagnostic commands for the most common triage steps:
# Check Apify platform status
curl -s https://api.apify.com/v2/health | jq '.'
# Verify your auth (fixes 401 diagnosis)
curl -s -H "Authorization: Bearer $APIFY_TOKEN" \
https://api.apify.com/v2/users/me | jq '.data.username'
# Check installed package versions
npm list apify-client apify crawlee 2>/dev/null
# Get last run status (find why a run FAILED / TIMED-OUT)
curl -s -H "Authorization: Bearer $APIFY_TOKEN" \
"https://api.apify.com/v2/acts/USER~ACTOR/runs?limit=1&desc=true" | \
jq '.data.items[0] | {status, statusMessage, startedAt, finishedAt}'
For the worked fix behind each error — e.g. reading a run log to find a stack
trace, batching dataset pushes under 9MB, or switching to residential proxies to
clear a 403 — see the matching entry in
references/error-reference.md.
Resources
Next Steps
For comprehensive multi-error debugging across a whole Actor project — log
correlation, proxy rotation strategy, and build-cache issues — see the
apify-debug-bundle skill in this pack.
Source: jeremylongshore/claude-code-plugins-plus-skills → plugins/saas-packs/apify-pack/skills/apify-common-errors/SKILL.md
1---2name: apify-common-errors3description: "| Diagnose and fix common Apify Actor and API errors. Use when an Apify run fails, an API call returns 401/403/404/413/429, a proxy connection drops, an Actor build breaks, or a scrape hits an anti-bot block, and you need the cause plus a copy-paste fix. Trigger with \"apify error\", \"fix apify\", \"actor failed\", \"apify not working\", \"debug apify\", \"apify 429\"."4allowed-tools: "Bash(curl:*), Bash(apify:*), Bash(npm:*)"5category: engineering-core6source_repo: jeremylongshore/claude-code-plugins-plus-skills7source_path: "plugins/saas-packs/apify-pack/skills/apify-common-errors/SKILL.md"8source_url: https://github.com/jeremylongshore/claude-code-plugins-plus-skills/blob/HEAD/plugins/saas-packs/apify-pack/skills/apify-common-errors/SKILL.md9metadata:10 source: https://skillmd.com/skills/thedixitjain/apify-common-errors11---1213# Apify Common Errors1415## Overview1617Quick diagnostic reference for the most common Apify errors. Covers Actor run18failures, API errors, proxy problems, anti-bot blocks, and platform-specific19issues. The full per-error catalog — raw signature, cause, diagnosis, and20copy-paste fix for all ten errors — lives in21[references/error-reference.md](references/error-reference.md); this file is the22lean triage path that points you there.2324## Prerequisites2526- An Apify API token exported as `APIFY_TOKEN` (Console > Settings > Integrations).27- Access to the [Apify Console](https://console.apify.com) for reading run and build logs.28- `curl` and `jq` on PATH for the diagnostic commands below; `apify` CLI optional for build inspection.2930## Instructions3132Work the failure from signal to fix:33341. **Capture the exact error.** Grab the `Status` / `StatusMessage` from the35 run, or the `ApifyApiError` message and HTTP code from the API response.36 The raw string is the key you match on.372. **Match the signature.** Find the matching entry in the table below, then38 open [references/error-reference.md](references/error-reference.md) at that39 number for the cause, diagnosis, and fix.403. **Diagnose before changing code.** For run failures, pull the log via the41 API or Console (see the FAILED entry). For auth/rate/payload errors, the42 HTTP code already tells you the class — see [Error Handling](#error-handling).434. **Apply the fix from the reference,** re-run, and confirm with the44 [diagnostic commands](#examples).4546### Error signature → reference4748| # | Error | Signature to match |49|---|-------|--------------------|50| 1 | Actor run FAILED | `Status: FAILED` / `exited with code 1` |51| 2 | Actor run TIMED-OUT | `Actor timed out after N seconds` |52| 3 | Rate limited | `Rate limit exceeded (429)` |53| 4 | Unauthorized | `Authentication required (401)` |54| 5 | Build failed | `Build failed: npm ERR!` |55| 6 | Proxy connection failed | `502 Bad Gateway` / `Could not connect to proxy` |56| 7 | Anti-bot block | `status 403` / `Captcha detected` |57| 8 | Out of memory | `JavaScript heap out of memory` |58| 9 | Dataset push too large | `Payload too large (413)` |59| 10 | Actor not found | `Actor '…' not found (404)` |6061Full detail for every row: [references/error-reference.md](references/error-reference.md).6263## Output6465Working through this skill yields:6667- The identified error class (matched signature + the one of ten catalog entries).68- The root cause and a copy-paste fix (config change, code edit, or token/proxy action).69- A verification command whose output confirms the run recovered (status `SUCCEEDED`, valid `username`, etc.).7071## Error Handling7273| HTTP Code | Meaning | Retryable | Action |74|-----------|---------|-----------|--------|75| 400 | Bad request | No | Fix input/params |76| 401 | Unauthorized | No | Check token |77| 403 | Forbidden | No | Check permissions |78| 404 | Not found | No | Verify resource ID |79| 408 | Timeout | Yes | Retry with backoff |80| 413 | Payload too large | No | Reduce batch size |81| 429 | Rate limited | Yes | Auto-retried by client |82| 500+ | Server error | Yes | Auto-retried by client |8384## Examples8586Diagnostic commands for the most common triage steps:8788```bash89# Check Apify platform status90curl -s https://api.apify.com/v2/health | jq '.'9192# Verify your auth (fixes 401 diagnosis)93curl -s -H "Authorization: Bearer $APIFY_TOKEN" \94 https://api.apify.com/v2/users/me | jq '.data.username'9596# Check installed package versions97npm list apify-client apify crawlee 2>/dev/null9899# Get last run status (find why a run FAILED / TIMED-OUT)100curl -s -H "Authorization: Bearer $APIFY_TOKEN" \101 "https://api.apify.com/v2/acts/USER~ACTOR/runs?limit=1&desc=true" | \102 jq '.data.items[0] | {status, statusMessage, startedAt, finishedAt}'103```104105For the worked fix behind each error — e.g. reading a run log to find a stack106trace, batching dataset pushes under 9MB, or switching to residential proxies to107clear a 403 — see the matching entry in108[references/error-reference.md](references/error-reference.md).109110## Resources111112- [Apify API Error Codes](https://docs.apify.com/api/v2)113- [Apify Status Page](https://status.apify.com)114- [Actor Run Statuses](https://docs.apify.com/platform/actors/running)115- [Full error catalog (all 10, with fixes)](references/error-reference.md)116117## Next Steps118119For comprehensive multi-error debugging across a whole Actor project — log120correlation, proxy rotation strategy, and build-cache issues — see the121`apify-debug-bundle` skill in this pack.122</content>123124---125126**Source:** [`jeremylongshore/claude-code-plugins-plus-skills`](https://github.com/jeremylongshore/claude-code-plugins-plus-skills) → `plugins/saas-packs/apify-pack/skills/apify-common-errors/SKILL.md`