The Movie Database-ondersteuning

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 antwoorde (op blad 1 van 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.

Kan ’n rolprent of TV-program nie vind nie? Teken aan om dit te skep.

Globaal

s fokus op soekbalk
p open profielkieslys
esc sluit ’n oop venster
? open sneltoetsvenster

Op mediablaaie

b gaan terug (na ouer waar van toepassing)
e gaan na wysigblad

Op TV-seisoenblaaie

(regterpyl) gaan na volgende seisoen
(linkerpyl) gaan na vorige seisoen

Op TV-episodeblaaie

(regterpyl) gaan na volgende episode
(linkerpyl) gaan na vorige episode

Op alle beeldblaaie

a open beeldtoevoegvenster

Op alle wysigingsblaaie

t open vertaalkieser
ctrl+ s dien form in

Op besprekingsblaaie

n skep nuwe bespreking
w tokkel kykstatus
p tokkel openbaar/privaat
c tokkel maak oop/toe
a open aktiwiteit
r reageer op bespreking
l gaan na laaste reaksie
ctrl+ enter dien u boodskap in
(regterpyl) volgende blad
(linkerpyl) vorige blad

Instellings

Wil u hierdie item gradeer of tot ’n lys toevoeg?

Teken aan