الإصدار · patch

v2026.10.1 October 2026: resource failures answer by their cause

Storage failures for strict fonts and image assets return a retryable API-504, oversized image assets return API-007, and image assets resolve by their format.

أبرز التغييرات
  • A strict font or an image asset whose storage does not answer returns API-504 with a message that says temporarily unavailable; retry the request.
  • An image asset whose stored files all exceed the per-image byte limit returns API-007, like an inline image, instead of API-506.
  • Fonts in prefer and auto mode still fall back, and missing fonts and images keep API-002 and API-506.
  • An extension-less image asset key resolves by its format, so two formats of one key no longer share one cached image.

كل التغييرات

  • fixed A transient storage or network failure while loading a font that a strict style names returns API-504 (HTTP 500, Font temporarily unavailable) instead of API-002 (HTTP 400).
  • fixed A transient storage failure for an image asset returns API-504 (Image temporarily unavailable) instead of API-506 Image not found; both are HTTP 500.
  • fixed An image asset whose stored candidates all exceed the per-image byte limit returns API-007 (HTTP 400) instead of API-506 (HTTP 500), after the key's other candidates are tried, and is no longer remembered as missing.
  • fixed An extension-less image asset key is cached by key and format, so a request with format jpg no longer receives the PNG another request loaded for the same key.
  • fixed A transient storage failure of a higher-priority stored variant answers API-504 instead of letting a lower-priority variant, such as the PNG of a key requested as jpg, answer and stay cached.
  • fixed On the native and Wasmer servers, a font_family that no font source can hold, such as one with a space, falls back in prefer mode and answers API-002 in strict mode instead of API-505, and an image file that cannot be read answers API-504 instead of API-506.
  • improved A template that is activated after a failed lookup is served within 30 seconds instead of up to 15 minutes.
  • improved The API reference documents API-506, the retryable API-504 message, and how an asset key resolves; the API-007 advice no longer suggests switching to an asset, which has the same limit.
  • fixed The documentation no longer describes a Console font upload: custom fonts are added by the gPdf operator on request.

What’s new

Resource failures now answer by their cause, so a client can tell a request it must change from one it can retry.

Retry a temporary storage failure

When gPdf cannot read a font that a strict style names, or an image asset, because its storage did not answer, the request returns API-504 with HTTP 500 and a message such as Font temporarily unavailable: <face> (storage or network failure; retry the request) or Image temporarily unavailable: <key> (...). Retry the unchanged request with backoff. Before, the font case returned the strict coverage error API-002 with HTTP 400, and the image case returned API-506 “Image not found”.

A font in prefer or auto mode still falls back through the bundled families when it cannot be loaded, and returns API-504 only when nothing covers the text.

Image assets follow the per-image byte limit

An image asset has the same per-image byte limit as an inline image: 32 KiB for raster images and 256 KiB for SVG. When every stored file of an asset key exceeds it, the request returns API-007 with HTTP 400, after gPdf tries the key’s other candidates. Before, it returned API-506 with HTTP 500, and the key stayed “not found” for 10 minutes even after a smaller file was stored.

Unchanged

A font that a strict style names and that is not stored still returns API-002. An image asset that is not stored still returns API-506, and gPdf remembers that for up to 10 minutes per runtime instance.

Image asset keys and formats

An asset key without an extension is looked up as the bare key and with each supported extension, the format’s first. When a stored variant’s storage does not answer, the request answers API-504 instead of serving a lower-priority variant. gPdf now caches the result by key and format, so two requests that name the same key with different formats each get the stored image their format finds first.

Compatibility

Requests that load their fonts and images successfully render as before. Clients can retry an API-504 whose message says temporarily unavailable; an API-504 for exhausted font fallback, an API-002 and an API-007 need a changed request, so downscale an oversized asset instead of retrying it. See the error codes and the API reference changelog.