Calling an API fails when deployed with Netlify, works fine when served locally and image not loaded

This URL returns a 404 Not Found likely because you have not configured the required redirect for direct links to SPAs to work.

The important bit of this is on the requested resource. Is this requested resource part of your project on Netlify or hosted elsewhere?