Missing or broken book images
Resolve book images that fail to load or whose blob is missing.
Trigger / Symptom & Blast Radius
A book cover image returns HTTP 403 or 404 in Storefront or Backoffice, or Catalog APIServicev1.0.0Catalog APIInternal HTTP and gRPC service for Catalog product management, hybrid
discovery, and authoritative book metadata.
PublishesBookUpdatedRatingFailedIntegrationEventSubscribesCreatePublisher, UpdatePublisher +24APIsOpenAPI, AsyncAPIOwnercatalog-experience-teamDiagramRepositoryOpen docs logs URN resolution errors. Catalog APIServicev1.0.0Catalog APIInternal HTTP and gRPC service for Catalog product management, hybrid
discovery, and authoritative book metadata.
PublishesBookUpdatedRatingFailedIntegrationEventSubscribesCreatePublisher, UpdatePublisher +24APIsOpenAPI, AsyncAPIOwnercatalog-experience-teamDiagramRepositoryOpen docs stores an internal URN in Catalog DatabaseContainerv1.0.0Catalog DatabaseAuthoritative PostgreSQL system of record owned by the Catalog bounded context for books, authors, categories, publisher...Ownercatalog-experience-teamDiagramOpen docs and signs short-lived, read-only SAS URLs (1-hour default) for Catalog Blob StorageContainerv1.0.0Catalog Blob StorageAuthoritative Azure Blob Storage container owned by the Catalog bounded context for binary book cover images and media a...Ownercatalog-experience-teamDiagramOpen docs. Blast radius is limited to cover image rendering; catalog metadata and checkout remain unaffected.
Do not hand-edit the image column in Catalog DatabaseContainerv1.0.0Catalog DatabaseAuthoritative PostgreSQL system of record owned by the Catalog bounded context for books, authors, categories, publisher...Ownercatalog-experience-teamDiagramOpen docs unless executing an approved
migration remediation. Manual edits bypass URN validation and can orphan blobs in
Catalog Blob StorageContainerv1.0.0Catalog Blob StorageAuthoritative Azure Blob Storage container owned by the Catalog bounded context for binary book cover images and media a...Ownercatalog-experience-teamDiagramOpen docs.
Pre-Flight Check
Fetch a fresh book payload to rule out a client-cached expired SAS URL, and inspect the stored URN in Catalog DatabaseContainerv1.0.0Catalog DatabaseAuthoritative PostgreSQL system of record owned by the Catalog bounded context for books, authors, categories, publisher...Ownercatalog-experience-teamDiagramOpen docs:
IMAGE_URL=$(curl -sS "https://<GATEWAY_HOST>/catalog/api/v1/books/<BOOK_ID>" | jq -r '.imageUrl')curl -I "$IMAGE_URL"SELECT id, name, image, is_deleted FROM books WHERE id = '<BOOK_ID>';Quick Recovery Procedure
Verify whether the blob exists in Azure Blob Storage
Extract
<BLOB_NAME>(the fourth colon-delimited segment of the stored URN) and check Catalog Blob StorageContainerv1.0.0Catalog Blob StorageAuthoritative Azure Blob Storage container owned by the Catalog bounded context for binary book cover images and media a...Ownercatalog-experience-teamDiagramOpen docs:Terminal window az storage blob exists \--account-name <STORAGE_ACCOUNT> \--container-name catalog-blob \--name <BLOB_NAME> \--auth-mode loginCheck Managed Identity RBAC if SAS returns 403 immediately
If a freshly generated SAS URL returns
403, confirm the Catalog APIServicev1.0.0Catalog APIInternal HTTP and gRPC service for Catalog product management, hybrid discovery, and authoritative book metadata. PublishesBookUpdatedRatingFailedIntegrationEventSubscribesCreatePublisher, UpdatePublisher +24APIsOpenAPI, AsyncAPIOwnercatalog-experience-teamDiagramRepositoryOpen docs Managed Identity holdsStorage Blob Data ContributorandStorage Blob Delegatorroles on<STORAGE_ACCOUNT>.Restore or replace the missing blob
Backup available: Restore the blob to the exact same
<STORAGE_ACCOUNT>,catalog-blobcontainer, and<BLOB_NAME>so the existing URN works without database changes.Blob unrecoverable: Upload a replacement cover (
image/jpeg,image/png, orimage/webp) through Backoffice orPUT /catalog/api/v1/booksso Catalog APIServicev1.0.0Catalog APIInternal HTTP and gRPC service for Catalog product management, hybrid discovery, and authoritative book metadata. PublishesBookUpdatedRatingFailedIntegrationEventSubscribesCreatePublisher, UpdatePublisher +24APIsOpenAPI, AsyncAPIOwnercatalog-experience-teamDiagramRepositoryOpen docs writes a new blob and updates the URN atomically.
Verification
Re-fetch the book through the API Gateway and confirm the signed SAS URL returns HTTP 200 OK:
IMAGE_URL=$(curl -sS "https://<GATEWAY_HOST>/catalog/api/v1/books/<BOOK_ID>" | jq -r '.imageUrl')curl -I "$IMAGE_URL"Expected output:
HTTP/2 200content-type: image/webpRollback / Escalation
- Rollback: Re-uploading through Catalog APIServicev1.0.0Catalog APIInternal HTTP and gRPC service for Catalog product management, hybrid discovery, and authoritative book metadata. PublishesBookUpdatedRatingFailedIntegrationEventSubscribesCreatePublisher, UpdatePublisher +24APIsOpenAPI, AsyncAPIOwnercatalog-experience-teamDiagramRepositoryOpen docs is atomic; retain the previous image file if reverting a cover change.
- Escalation: Escalate storage RBAC or cross-environment URN mismatch issues to Platform Engineering TeamTeamPlatform Engineering TeamPlatform team providing BookWorm's thinnest viable platform—orchestration, messaging fabric, scheduling, notifications, ...Open docs.
| Symptom | Cause | Fix |
|---|---|---|
Image URL returns 403 after 1 hour | Client cached a short-lived SAS URL past expiry | Re-fetch the book from Catalog APIServicev1.0.0Catalog APIInternal HTTP and gRPC service for Catalog product management, hybrid discovery, and authoritative book metadata. PublishesBookUpdatedRatingFailedIntegrationEventSubscribesCreatePublisher, UpdatePublisher +24APIsOpenAPI, AsyncAPIOwnercatalog-experience-teamDiagramRepositoryOpen docs; fix client caching |
403 immediately after generation | Managed Identity lacks User Delegation Key RBAC | Grant Storage Blob Delegator and Storage Blob Data Contributor |
UrnException in Catalog APIServicev1.0.0Catalog APIInternal HTTP and gRPC service for Catalog product management, hybrid
discovery, and authoritative book metadata.
PublishesBookUpdatedRatingFailedIntegrationEventSubscribesCreatePublisher, UpdatePublisher +24APIsOpenAPI, AsyncAPIOwnercatalog-experience-teamDiagramRepositoryOpen docs logs | Database restored from another environment’s storage account | Align blobs and update URNs via approved remediation |
Related documentation
- ADR-005: Store book images in Blob Storage and persist only the URNDecision Recordv1.0.0ADR-005: Store book images in Blob Storage and persist only the URNImage bytes live in Blob Storage; the database keeps a stable URN and fresh access URLs are resolved on read.Ownercatalog-experience-teamOpen docs — URN storage model and short-lived SAS design.