I trying to make a page that recommends TV Shows based on ID
I successfully made a details page but when I tried to make a recommendations page it is showing error
the console output for the details page => https://api.themoviedb.org/3/tv/237480?language=en-US&api_key
I was able to successfully made a recommendation page for the movies but failed for tv_shows
api that I am using ->https://api.themoviedb.org/3/tv/${id}/recommendations?language=en-US&api_key=${publicKey}
console output => https://api.themoviedb.org/3/tv/undefined/recommendations?language=en-US
Etkö löydä elokuvaa tai TV-ohjelmaa? Kirjaudu sisään lisätäksesi se.
Haluatko pisteyttää vai lisätä tämän nimikkeen listaan?
Ei rekisteröitynyt jäsen?
Vastaus käyttäjältä ticao2 🇧🇷 pt-BR
14 elokuu 2024 klo 11:20AM
Considering the "undefined" in the console output, I assume there must be some problem with the Series ID placement.
If that's the case, I don't know how to help you.
It seems you didn't enter the Series ID.
Vastaus käyttäjältä Jay Joshi
17 elokuu 2024 klo 11:16AM
👆This is the one I am using for tv details but this is working fine
👆 This is the I am using for Movies but this is showing error
The one for movies is adding undefined to every id name
When I posted this ques atleast this one was working but now it is also broken 😭😭😭
Vastaus käyttäjältä superboy97
17 elokuu 2024 klo 11:41AM
When you get "undefined" in the request, that means that the variable ${id} hasn't been initialised in your code.
Vastaus käyttäjältä Jay Joshi
17 elokuu 2024 klo 12:24PM
Vastaus käyttäjältä superboy97
17 elokuu 2024 klo 12:28PM
Sorry, but we do not debug user code.
Vastaus käyttäjältä Jay Joshi
17 elokuu 2024 klo 12:31PM
OK