Skip to content

Conversation

@emuvente
Copy link
Collaborator

Live loan cards are missing the borrower photo in some cases. We get an error message, Error loading image: Error: Server responded with undefined, but there's a bug in canvas that prevents us from seeing the http status code. It's been fixed, but the fix has not been published.

Whatever the request issue is, we should have a better user experience than a loan card with a blank white space where the image should be. This PR adds retries for failed image loading requests, a fallback image for when the retries fail too, more verbose error logging so we can start to track down the cause of the image loading failures, and this prevents the loan card image from being cached if the borrower image failed to load.

Live loan cards with the fallback image:
fallback-legacy-card-img
fallback-classic-card-img2

@emuvente emuvente requested a review from a team November 19, 2025 17:59
@emuvente emuvente changed the title feat(live-loans): retry borrower image loading or use fallback without caching feat(live-loans): retry borrower image loading or use fallback without caching MP-2268 Nov 19, 2025
Copy link
Collaborator

@dyersituations dyersituations left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks much for the quick fix! Makes sense to start with 2 retries.

@emuvente emuvente merged commit fef5777 into main Nov 19, 2025
6 checks passed
@emuvente emuvente deleted the retry-live-loan-photo branch November 19, 2025 19:29
@kiva-robot
Copy link
Collaborator

🎉 This PR is included in version 3.45.0-rc.2 🎉

The release is available on GitHub release

Your semantic-release bot 📦🚀

@kiva-robot
Copy link
Collaborator

🎉 This PR is included in version 3.45.0 🎉

The release is available on GitHub release

Your semantic-release bot 📦🚀

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants