I built a react app using this api which worked well on the local environment. But I get the this error "Failed to load resource: the server responded with a status of 404 ()" after build. WHat can I do?
Can't find a movie or TV show? Login to create it.
Want to rate or add this item to a list?
Not a member?
Reply by ticao2 š§š· pt-BR
on July 12, 2022 at 7:36 AM
See here: https://www.themoviedb.org/talk/62ab35641dcb77009fcb315c
I think this subject should be in API Support.
So I'm going to move this conversation to API Support.
Reply by lam2000
on July 25, 2022 at 11:07 AM
Hi @maryojo I had a similar issue were the backdrop worked in local but when live, It kept failing to load the backdrop and just showing the** url image.tmdb.org/t/p/original/undefined and the console error Failed to load resource: the server responded with a status of 404 ()**
So what I did to fix this on my project was add this code to stop it grabbing the undefined URL
Just thought I would add this so if it helps you with your problem then great and it not it could help someone else maybe down the line. It got rid of the error in the console and fixed the backdrop issue that I had.
Hope it helps and you get your problem sorted out