Paperbase Docs

PB_ASSET_TIMEOUT

An image or external asset failed to load within the 10-second timeout.

Severitywarning
Categoryasset
Agent-repairableYes

What happened

An image or external asset failed to load within the 10-second timeout. The PDF was rendered, but the asset is missing or replaced with a placeholder.

How to fix

Check the failing URL (returned in warning.location.url). If the asset is a signed URL that expired, regenerate it before calling Paperbase. If the asset is a third-party URL with intermittent availability, consider base64-inlining it via options.inline_assets: true.

const result = await paperbase.pdf.generate({
  input: { type: "html", content: html },
  template: "report",
  options: { inline_assets: true }, // Paperbase fetches and inlines assets
});

Notes

  • The timeout is 10 seconds per asset.
  • options.inline_assets: true fetches and inlines all <img src> values before rendering, avoiding timeout errors at render time. Use this for assets hosted behind authentication or signed URLs.

On this page