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 }
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 robbie3999
on August 1, 2023 at 12:34 PM
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.
Reply by mumar64
on August 1, 2023 at 12:37 PM
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
Reply by robbie3999
on August 1, 2023 at 12:44 PM
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".
Reply by mumar64
on August 1, 2023 at 1:05 PM
i just mistyped... there is a slash (/) in between. yet the problem persists
Reply by robbie3999
on August 1, 2023 at 1:24 PM
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.
Reply by mumar64
on August 1, 2023 at 1:42 PM
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.