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.
¿No encuentras una película o serie? Inicia sesión para crearla:
¿Quieres puntuar o añadir este elemento a una lista?
¿No eres miembro?
Contestado por enelbbs9@gmail.com
el 5 de mayo de 2021 a las 15:40
Has your base_url changed?
Contestado por ticao2 🇧🇷 pt-BR
el 5 de mayo de 2021 a las 18: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.