The Movie Database Support

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.

2 replies (on page 1 of 1)

Jump to last post

const base_url = "https://image.tmbd.org/t/p/original/";

function VideoCard({ movie }) { return (
<img src={`${base_url}${movie.backdrop_path || movie.poster_path}`} alt="movie poster"/>

Has your base_url changed?

@enelbbs9@gmail.com said:
Movie poster is not loading
const base_url = "https://image.tmbd.org/t/p/original/";

function VideoCard({ movie }) { return (

Has your base_url changed?

No, the Base URL has not changed.
https://image.tmdb.org/t/p/original/8UlWHLMpgZm9bx6QYh0NFoq67TZ.jpg

It throws 2 errors: Failed to load resource: ERR_CONNECTION_CLOSED and 404 Not Found.

Perhaps the poster you are looking for has been deleted.

Can't find a movie or TV show? Login to create it.

Global

s focus the search bar
p open profile menu
esc close an open window
? open keyboard shortcut window

On media pages

b go back (or to parent when applicable)
e go to edit page

On TV season pages

(right arrow) go to next season
(left arrow) go to previous season

On TV episode pages

(right arrow) go to next episode
(left arrow) go to previous episode

On all image pages

a open add image window

On all edit pages

t open translation selector
ctrl+ s submit form

On discussion pages

n create new discussion
w toggle watching status
p toggle public/private
c toggle close/open
a open activity
r reply to discussion
l go to last reply
ctrl+ enter submit your message
(right arrow) next page
(left arrow) previous page

Settings

Want to rate or add this item to a list?

Login