Install any skill in seconds. Free to start, no credit card required.
Get Started Free →Collect Apify debug evidence for support tickets and troubleshooting. Use when an Actor run has failed, is stuck, or produced empty output and you need to gather run metadata, logs, dataset samples, and environment info before opening a support ticket. Trigger with "apify debug", "apify support bundle", "collect apify logs", "apify diagnostic", "apify run failed why".
| Test case | Without → With | Effect | Δ tokens | Δ turns |
|---|---|---|---|---|
| case-01 | ✗→✓ | ▲ Improved | 19% | 0% |
| case-02 | ✗→✓ | ▲ Improved | 414% | 0% |
| case-04 | ✗→✓ | ▲ Improved | -19% | 0% |
| case-05 | ✗→✓ | ▲ Improved | 0% | 0% |
| case-06 | ✗→✓ | ▲ Improved | 158% | 0% |
Collect all diagnostic information needed to troubleshoot failed Actor runs and prepare Apify support tickets. Pulls run metadata, logs, dataset samples, and environment info into a single bundle so a support engineer (or you) can diagnose the failure without live access to your account.
apify-client installedAPIFY_TOKEN configuredAll API calls authenticate with the APIFY_TOKEN as a Bearer header (Authorization: Bearer $APIFY_TOKEN), and the SDK reads the same token from process.env.APIFY_TOKEN. Get the token from the Apify Console under Settings → Integrations → Personal API tokens. Never commit it — the bundle script redacts any local .env before packaging, and the platform auto-redacts secrets inside run logs.
The workflow has four steps. The skeleton below is enough to run it; each step's full implementation lives in implementation.md.
tail via the SDK. The core call:
typescript const client = new ApifyClient({ token: process.env.APIFY_TOKEN }); const run = await client.run(runId).get(); const log = await client.run(runId).log().get();
apify-debug-bundle.sh <RUN_ID>. Itcollects environment info, run details, log, a 5-item dataset sample, key-value store keys, a redacted .env, and platform health, then packages everything into a timestamped .tar.gz. Full script in implementation.md.
field-by-field to spot the delta (compareRuns(successId, failId)).
not yet available.
For copy-pasteable code for every step, see implementation.md.
A single timestamped tarball, apify-debug-YYYYMMDD-HHMMSS.tar.gz, containing:
| File | Contents | |------|----------| | environment.txt | Node/npm versions, installed Apify packages, CLI version | | run-details.json | Run status, options, stats, usage, cost | | run-log.txt | Full run log (secrets auto-redacted by the platform) | | dataset-sample.json | First 5 dataset items | | kv-store-keys.json | Key-value store key listing | | env-redacted.txt | Local .env with all values redacted | | platform-health.json | Apify platform health snapshot |
Attach the tarball directly to an Apify support ticket.
Always redact before sharing:
apify_api_*)Safe to include:
| Issue | Cause | Solution | |-------|-------|----------| | Run not found | Invalid run ID or expired | Unnamed runs expire after 7 days | | Log unavailable | Run still in progress | Wait for completion or stream live | | Empty dataset | Actor produced no output | Check failedRequestHandler in code | | High CU usage | Memory too high or slow execution | Reduce memory, optimize code |
Four worked scenarios — a plain FAILED run, an "it worked yesterday" regression diff, an empty-dataset investigation, and live-tailing a hung run — are in examples.md. The quickest path:
bashexport APIFY_TOKEN="apify_api_..." ./apify-debug-bundle.sh abc123DEF # → apify-debug-20260717-142530.tar.gz tar -xzf apify-debug-*.tar.gz && tail -40 apify-debug-*/run-log.txt
See examples.md for the full walkthroughs, including reading the comparison output and interpreting a live tail.
For rate limit issues, see the apify-rate-limits skill.
Other measured skills in the registry, with their headline benchmark lift.