PDFCraft
Error reference

extraction_failed

HTTP 422 · not billed

{ "error": {
    "code": "extraction_failed",
    "message": "…",
    "docs_url": "https://pdfcraft.dev/errors#extraction_failed"
} }

When you get it

The PDF parsed but carries no text layer, so there is nothing to extract. Usually a scan or a photo.

The PDF opened and parsed, and carries no text layer to read. Usually a scan or a photograph of a document rather than a document.

How to fix it

Is it billed?

No. A request is billed only when Chromium actually ran. NOT billed, unlike render_failed, and the difference is deliberate: detecting a missing text layer costs about 20 ms a page and returns nothing of value. Charging for a "no" is how a feature earns refund requests.

Reproducing it

curl -i -X POST https://api.pdfcraft.dev/v1/render \
  -H "Authorization: Bearer $PDFCRAFT_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"html":"<h1>hi</h1>"}'

The -i matters: Retry-After and X-Renders-Remaining are headers, and a client that only reads the body throws away the two numbers that tell it what to do next.

Every code

HTTPCodeBilled?
400invalid_requestfree
401invalid_api_keyfree
402payment_requiredfree
404not_foundfree
408render_timeoutfree
422render_failedbilled
429rate_limitedfree
429quota_exceededfree
429demo_busyfree
415unsupported_filefree
422extraction_failedfree
500internal_errorfree