Reference
Errors
Every error is JSON with is_successful: false, an error_code, an error_message and, for validation problems, error_details keyed by option. Failed renders don’t count toward your quota.
Shotsmith never answers with 502 or 504 itself. If you receive one of those as plain text, the request was cut off before it reached Shotsmith, or while it was still running. Retry it, and use async=true for renders that need more than 18 seconds.
access_key_requiredHTTP 401
No access key was sent.
Add access_key to the query string or send the X-Access-Key header.
access_key_invalidHTTP 401
The key doesn’t exist or was revoked.
Copy a current key from API keys in the dashboard.
signature_requiredHTTP 403
The key only accepts signed requests.
Add a signature parameter.
signature_is_not_validHTTP 403
The signature doesn’t match the query.
Sign the exact query string, minus signature, with HMAC-SHA256 and your secret key.
ip_not_allowedHTTP 403
The caller’s IP isn’t on the key’s allowlist.
Add the IP or CIDR range to the key, or remove the allowlist.
domain_not_allowedHTTP 403
The target host isn’t on the key’s allowed domains.
Add the domain to the key or use another key.
account_suspendedHTTP 403
The account is suspended.
Contact support.
plan_limitHTTP 403
The option needs a higher plan.
Upgrade in Billing.
blocked_by_bot_protectionHTTP 422
The site showed a bot check (Cloudflare, DataDome, PerimeterX, Akamai…) instead of the page. Not billed.
Add stealth=true. If it still fails, the site is probably blocking data-centre addresses: send your own residential proxy with the proxy option (see Proxies). Or set fail_if_challenged=false to capture the check page.
invalid_parametersHTTP 400
An option is unknown, malformed or conflicts with another.
Read error_message and error_details; each problem is listed by option name.
quota_exceededHTTP 402
The monthly quota is used up.
Upgrade, or turn on extra usage in Billing.
key_quota_exceededHTTP 402
This key reached its own monthly limit.
Raise or clear the key’s limit.
not_foundHTTP 404
The capture, monitor, webhook or endpoint doesn’t exist, or belongs to another team.
Check the id and the path.
method_not_allowedHTTP 405
The endpoint doesn’t accept this HTTP method.
Use the method named in error_message and the Allow header.
too_many_requestsHTTP 429
Over the per-minute rate: the plan’s rate for renders, or the separate allowance for status and account calls.
Wait for Retry-After seconds.
concurrency_limit_reachedHTTP 429
The plan’s synchronous renders are all running.
Retry when one finishes (Retry-After is 2 seconds), or send async=true to queue the render.
host_not_allowedHTTP 400
The target resolves to a private or reserved address.
Only public addresses can be captured.
name_not_resolvedHTTP 400
The host name doesn’t resolve.
Check the URL for typos.
network_errorHTTP 424
The site couldn’t be reached.
Check the site is up. If you sent a proxy, check its address and credentials.
host_returned_errorHTTP 400
The site answered 4xx or 5xx.
Set ignore_host_errors=true to capture it anyway.
timeout_errorHTTP 408
The page didn’t finish in time.
Synchronous requests must finish within 18 seconds: use async=true for slow pages and videos. Also try wait_until=domcontentloaded.
selector_not_foundHTTP 400
selector, wait_for_selector or scroll_into_view matched nothing.
Check the selector in DevTools, or set error_on_selector_not_found=false.
click_selector_not_foundHTTP 400
The click target is missing.
Fix the selector or set error_on_click_selector_not_found=false.
hover_selector_not_foundHTTP 400
The hover target is missing.
Fix the selector or set error_on_hover_selector_not_found=false.
content_contains_specified_stringHTTP 400
fail_if_content_contains matched.
Expected behaviour; the render isn’t billed.
content_missingHTTP 400
fail_if_content_missing didn’t find the text.
Expected behaviour; the render isn’t billed.
request_failedHTTP 400
A request matching fail_if_request_failed failed.
Expected behaviour; the render isn’t billed.
script_errorHTTP 400
Your scripts threw.
The message includes the JavaScript error.
unsupported_formatHTTP 400
The worker can’t encode that format.
Pick another format.
image_too_largeHTTP 422
The capture is too big for the image format.
WebP, AVIF and HEIF are limited to 16,383 pixels per side. Use png or jpg, full_page_slices, full_page_max_height, image_width or a lower device_scale_factor.
storage_failedHTTP 424
Uploading to your bucket failed.
Check the bucket, credentials and region under Storage.
vision_failedHTTP 424
The vision provider rejected the request.
Check the provider key and prompt.
worker_busyHTTP 503
All render slots are busy.
Retry with backoff, or use async=true.
internal_errorHTTP 500
Something unexpected failed.
Retry. If it persists, send the X-Capture-Id to support.