The Movie Database -tuki

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 vastausta (sivulla 1, sivuja yhteensä 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.

Etkö löydä elokuvaa tai TV-ohjelmaa? Kirjaudu sisään lisätäksesi se.

Koko sivustolla

s keskitä hakukenttään
p avaa profiilivalikko
esc sulje avoin ikkuna
? avaa pikanäppäinikkuna

Mediasivuilla

b palaa takaisin (tai hakemistoon mikäli mahdollista)
e siirry editoimaan sivua

TV-sarjan kausien sivuilla

(oikea nuolinäppäin) siirry seuraavaan kauteen
(vasen nuolinäppäin) siirry edelliseen kauteen

TV-sarjan jaksojen sivuilla

(oikea nuolinäppäin) siirry seuraavaan jaksoon
(vasen nuolinäppäin) siirry edelliseen jaksoon

Kaikilla kuvasivustoilla

a avaa "lisää kuva" ikkuna

Kaikilla muokkaus-sivuilla

t avaa kielivalinta
ctrl+ s Lähetä lomake

Keskustelu sivuilla

n luo uusi keskustelu
w vaihda seurannan asetus
p vaihda julkinen/yksityinen asetus
c vaihda avaa/sulje asetus
a avaa viimeaikainen toiminta
r vastaa keskusteluun
l siirry viimeisimpään vastaukseen
ctrl+ enter Lähetä viesti
(oikea nuolinäppäin) seuraava sivu
(vasen nuolinäppäin) edellinen sivu

Asetukset

Haluatko pisteyttää vai lisätä tämän nimikkeen listaan?

Kirjaudu

Ei rekisteröitynyt jäsen?

Rekisteröidy ja liity mukaan yhteisöön