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 }
Kan ’n rolprent of TV-program nie vind nie? Teken aan om dit te skep.
Wil u hierdie item gradeer of tot ’n lys toevoeg?
Nie ’n lid nie?
Antwoord deur robbie3999
op 1 Augustus 2023 om 12:34 NM
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.
Antwoord deur mumar64
op 1 Augustus 2023 om 12:37 NM
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
Antwoord deur robbie3999
op 1 Augustus 2023 om 12:44 NM
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".
Antwoord deur mumar64
op 1 Augustus 2023 om 1:05 NM
i just mistyped... there is a slash (/) in between. yet the problem persists
Antwoord deur robbie3999
op 1 Augustus 2023 om 1:24 NM
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.
Antwoord deur mumar64
op 1 Augustus 2023 om 1:42 NM
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.