The Movie Database Support

Hi, i opened my proyect and nothing appeared. "to load resource: the server responded with a status of 404 ()" Something happened with de api?

5 replies (on page 1 of 1)

• Jump to last post

Hi @florvelez, what's the request that returned a 404?

These are my variables where i have the api and also api key

const BASE_URL = 'https://api.themoviedb.org/3';  
const url = BASE_URL + '/discover/movie?'+ API_KEY;  
const IMG = 'https://image.tmdb.org/t/p/w500';  
const searchURL = BASE_URL + '/search/movie?'+ API_KEY;  

And then i FETCH the const url.

URL returns 404

That 404 error message could be two things.
See the list of TMDb server error warnings here.
https://www.themoviedb.org/documentation/api/status-codes
In your case:

Code    HTTP    Message  
6       404     Invalid id: The pre-requisite id is invalid or not found.
37      404     The requested session could not be found.

If you're using API v4 maybe it's something related to the TOKEN.

That doesn't show us the request you're making.

You can see here that discover is working fine, so you'll have to play with your code to see what's wrong:

https://api.themoviedb.org/3/discover/movie?api_key=###

I solved it! it was because of the authorization method. Thanks for the support

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

Want to rate or add this item to a list?

Login