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.
Can't find a movie or TV show? Login to create it.
Want to rate or add this item to a list?
Not a member?
Reply by enelbbs9@gmail.com
on May 5, 2021 at 3:40 PM
Has your base_url changed?
Reply by ticao2 š§š· pt-BR
on May 5, 2021 at 6:04 PM
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.