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.
Non podes atopar unha película ou serie? Inicia sesión para creala.
Queres valorar ou engadir o elemento a unha listaxe?
Non es membro?
Resposta de enelbbs9@gmail.com
no 5 de maio do 2021 ás 3:40PM
Has your base_url changed?
Resposta de ticao2 🇧🇷 pt-BR
no 5 de maio do 2021 ás 6:04PM
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.