Sprijin Bază de date filme (The Movie Database)

Error status code: 404 Error body: {"success":false,"status_code":34,"status_message":"The resource you requested could not be found."}

I can't fetch credits for a movie. get( '${AppConstants.apiBaseKey}movie/$movieId/credits?api_key=${AppConstants.apiKey}' );

Also tried fetching with a hardcoded id , or to fetch from a person endpoint still does not work. Even tho the TRY IT option on site works.

The apiBaseKey and apiKey are fine , because they fetch movies with no problems

2 răspunsuri (pe pagina 1 din 1)

Jump to last post

@Senadin said:
Error 404 on movie/credits
Error status code: 404
Error body: {"success":false,"status_code":34,"status_message":"The resource you requested could not be found."}

I can't fetch credits for a movie.
get( '${AppConstants.apiBaseKey}movie/$movieId/credits?api_key=${AppConstants.apiKey}' );

Also tried fetching with a hardcoded id , or to fetch from a person endpoint still does not work.
Even tho the TRY IT option on site works.

The apiBaseKey and apiKey are fine , because they fetch movies with no problems

It is not finding the ID you specified.
The problem must be in your $movieId parameter.
Check that the API Request sent by your code is correct.
It's normal to have problems because of some small error.
An extra character, a space, etc...

Thanks for the reply! The problem was that i did not use headers , which was working for my movie id request somehow but for credits did not.

Nu găsiți un film sau un serial? Autentificați-vă pentru a-l crea.

Globale

s focalizează bara de căutare
p deschide meniul profilului
esc închide o fereastră deschisă
? deschide fereastra cu scurtături de la tastatură

Pe paginile media

b mergi înapoi (sau la părinte atunci când este cazul)
e mergi la pagina de editare

Pe paginile sezoanelor filmelor seriale

(săgeată dreapta) mergi la sezonul următor
(săgeată stânga) mergi la sezonul precedent

Pe paginile episoadelor filmelor seriale

(săgeată dreapta) mergi la episodul următor
(săgeată stânga) mergi la episodul precedent

Pe toate paginile de imagini

a deschide fereastra pentru adăugarea de imagini

Pe toate paginile de editare

t deschide selectorul de traduceri
ctrl+ s trimite formularul

Pe paginile de discuții

n crează o discuție nouă
w comută starea de vizionare
p comută publică/privată
c comută închisă/deschisă
a deschide activitatea
r răspunde la discuție
l mergi la ultimul răspuns
ctrl+ enter trimite mesajul
(săgeată dreapta) pagina următoare
(săgeată stânga) pagina precedentă

Setări

Doriți să evaluați sau să adăugați acest articol într-o listă?

Autentificare