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
Не можете да откриете филм или сериал? Влезте, за да го създадете.
Искате ли да го оцените или добавите към списък?
Нямате профил?
Отговор от ticao2 🇧🇷 pt-BR
на 14 август 2024 в 11:20 AM
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.
Отговор от Jay Joshi
на 17 август 2024 в 11:16 AM
👆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 😭😭😭
Отговор от superboy97
на 17 август 2024 в 11:41 AM
When you get "undefined" in the request, that means that the variable ${id} hasn't been initialised in your code.
Отговор от Jay Joshi
на 17 август 2024 в 12:24 PM
Отговор от superboy97
на 17 август 2024 в 12:28 PM
Sorry, but we do not debug user code.
Отговор от Jay Joshi
на 17 август 2024 в 12:31 PM
OK