Files
photoreport/apps/api
paula-alves beed509956
ci / rust (pull_request) Successful in 3m56s
ci / typescript (pull_request) Successful in 8m2s
fix(sports): stop retrying an FPA headshot that will never decode (BIT-31903)
saveHeadshot threw past its callers whenever sharp couldn't decode the
fetched bytes (corrupt/truncated source, or a non-image body). The
catch in personFromFpaAssociate/personFromFpaLicence just logged and
moved on, but referenceKey stayed null, so the same bad photo was
refetched and re-thrown on every weekly FPA refresh forever.

Mark the person's referenceStatus FAILED when sharp can't decode the
downloaded bytes, and skip those people on later refreshes — a decode
failure is permanent for that URL, unlike a transient fetch error.
2026-11-05 14:07:40 +00:00
..