Error 404 is showing while I am trying to fetch the Details page of any TV show or movie. { status_code: 34 status_message: "The resource you requested could not be found." success: false }
Un film, une émission télévisée ou un artiste est introuvable ? Connectez-vous afin de créer une nouvelle fiche.
Vous souhaitez évaluer ou ajouter cet élément à une liste ?
Pas encore membre ?
Réponse de robbie3999
le 1 août 2023 à 12h34
Hi @mumar64, this usually means your url is incorrect. Post the url you are using here so we can figure out what the problem is. Change your private api key to a string like KEY or xxx.
Réponse de mumar64
le 1 août 2023 à 12h37
BASE_URL = "https://api.themoviedb.org/3" movie/298618 : and this is the end point I am hitting while trying to fetch the details page of a particular movie
Réponse de robbie3999
le 1 août 2023 à 12h44
Hard to tell but it looks like you are saying you are using "https://api.themoviedb.org/3" + "movie/298618". This would seem to indicate that you are missing a "/" between the two parts. Total string should be "https://api.themoviedb.org/3/movie/298618".
Réponse de mumar64
le 1 août 2023 à 13h05
i just mistyped... there is a slash (/) in between. yet the problem persists
Réponse de robbie3999
le 1 août 2023 à 13h24
We will need to see the full url that you are using, or the code segment where you are creating and using the url. For example, I don't see any authentication information.
A general troubleshooting tip is to see if you can print out the string you are using as the url when you use it, that might help you spot what is going wrong.
Réponse de mumar64
le 1 août 2023 à 13h42
My query is resolved. I was actually using useParams() hook without the parentheses() which was making my parameters inaccessible. Now it is good to go. Thanks.