Where Errors Appear
When a render job fails, the system sets its status to"error". You can detect this in two ways:
Webhook Delivery
If you’ve defined a webhook, the error will be delivered as a POST request to your endpoint:Manual Polling
PollGET /jobs/{id} and check the status field:
"status": "error" and a stats.error string describing what went wrong.
Common Causes of Render Failures
| Cause | Error Message Example | How to Fix |
|---|---|---|
Invalid layerName | Layer 'subtitle' not found | Check actual layers via GET /templates/{id} |
| Missing composition | Composition 'main' not found | Verify the composition name via template introspection |
| Missing asset URL | Asset failed to download (403) | Double-check src links and access permissions |
| Font not found | Font 'CustomFont-Bold.ttf' not available | Preload the font using the Fonts API |
| Broken AE project | Render failed: AE crashed with exit code 1 | Preview manually inside After Effects |
| Expression failure | After Effects expression error at line X | Sanitize all dynamic input before injecting |
Debugging Strategy
Inspect the Template First
UseGET /templates/{id} to see available compositions, layer names, and properties before submitting a job:
Use Preview Mode
Render the job with"preview": true to get a fast, low-resolution output that reveals most structural issues before committing to a full render:
Isolate with a Minimal Payload
Temporarily reduce your job to the simplest possible payload:- Static text only
- No image or audio layers
- Known-good composition name
Best Practices for Stability
- Fetch template metadata via
GET /templates/{id}before building any job payload - Use descriptive, unique
layerNamevalues and document them alongside the template - Preload all fonts via the Fonts API before submitting jobs that reference them
- Validate all asset URLs return
200 OKbefore sending a render job - Wrap dynamic layers with fallback expressions inside After Effects
- Make your webhook handler idempotent and log every incoming payload for auditability

