I use the following to display a movie poster in render method:
const base_url = "https://image.tmbd.org/t/p/original/";
function VideoCard({ movie }) {
return (
<div className="videoCard">
<img src={`${base_url}${movie.backdrop_path || movie.poster_path}`} alt="movie poster"/>
It throws 2 errors: Failed to load resource: ERR_CONNECTION_CLOSED and 404 Not Found.
Could you help figuring out why it's not working properly.
لم تجد الفلم أو المسلسل ؟ سجل دخولك و انشئها
هل تريد تقييم او اضافة هذا العنصر للقائمة؟
لست عضو؟
رد بواسطة enelbbs9@gmail.com
بتاريخ مايو 5, 2021 في 3:40 مساءا
Has your base_url changed?
رد بواسطة ticao2 🇧🇷 pt-BR
بتاريخ مايو 5, 2021 في 6:04 مساءا
No, the Base URL has not changed.
https://image.tmdb.org/t/p/original/8UlWHLMpgZm9bx6QYh0NFoq67TZ.jpg
Perhaps the poster you are looking for has been deleted.