Skip to content
shotsmith
Features Docs Guides Pricing Changelog Sign inStart free

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_required

HTTP 401

No access key was sent.

Add access_key to the query string or send the X-Access-Key header.

access_key_invalid

HTTP 401

The key doesn’t exist or was revoked.

Copy a current key from API keys in the dashboard.

signature_required

HTTP 403

The key only accepts signed requests.

Add a signature parameter.

signature_is_not_valid

HTTP 403

The signature doesn’t match the query.

Sign the exact query string, minus signature, with HMAC-SHA256 and your secret key.

ip_not_allowed

HTTP 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_allowed

HTTP 403

The target host isn’t on the key’s allowed domains.

Add the domain to the key or use another key.

account_suspended

HTTP 403

The account is suspended.

Contact support.

plan_limit

HTTP 403

The option needs a higher plan.

Upgrade in Billing.

blocked_by_bot_protection

HTTP 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_parameters

HTTP 400

An option is unknown, malformed or conflicts with another.

Read error_message and error_details; each problem is listed by option name.

quota_exceeded

HTTP 402

The monthly quota is used up.

Upgrade, or turn on extra usage in Billing.

key_quota_exceeded

HTTP 402

This key reached its own monthly limit.

Raise or clear the key’s limit.

not_found

HTTP 404

The capture, monitor, webhook or endpoint doesn’t exist, or belongs to another team.

Check the id and the path.

method_not_allowed

HTTP 405

The endpoint doesn’t accept this HTTP method.

Use the method named in error_message and the Allow header.

too_many_requests

HTTP 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_reached

HTTP 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_allowed

HTTP 400

The target resolves to a private or reserved address.

Only public addresses can be captured.

name_not_resolved

HTTP 400

The host name doesn’t resolve.

Check the URL for typos.

network_error

HTTP 424

The site couldn’t be reached.

Check the site is up. If you sent a proxy, check its address and credentials.

host_returned_error

HTTP 400

The site answered 4xx or 5xx.

Set ignore_host_errors=true to capture it anyway.

timeout_error

HTTP 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_found

HTTP 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_found

HTTP 400

The click target is missing.

Fix the selector or set error_on_click_selector_not_found=false.

hover_selector_not_found

HTTP 400

The hover target is missing.

Fix the selector or set error_on_hover_selector_not_found=false.

content_contains_specified_string

HTTP 400

fail_if_content_contains matched.

Expected behaviour; the render isn’t billed.

content_missing

HTTP 400

fail_if_content_missing didn’t find the text.

Expected behaviour; the render isn’t billed.

request_failed

HTTP 400

A request matching fail_if_request_failed failed.

Expected behaviour; the render isn’t billed.

script_error

HTTP 400

Your scripts threw.

The message includes the JavaScript error.

unsupported_format

HTTP 400

The worker can’t encode that format.

Pick another format.

image_too_large

HTTP 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_failed

HTTP 424

Uploading to your bucket failed.

Check the bucket, credentials and region under Storage.

vision_failed

HTTP 424

The vision provider rejected the request.

Check the provider key and prompt.

worker_busy

HTTP 503

All render slots are busy.

Retry with backoff, or use async=true.

worker_unavailable

HTTP 503

The rendering service is unreachable.

Retry shortly; see the status page.

internal_error

HTTP 500

Something unexpected failed.

Retry. If it persists, send the X-Capture-Id to support.