Wsparcie The Movie Database

export const getPopularMovies= async()=>{
    const response=await fetch(`${BASE_URL}movie/popular?api_key=${API_KEY}`)
    console.log(response)
    const data=await response.json()
    return data.results
};

2 odpowiedzi (strona 1 z 1)

Jump to last post

If you want help, we don't want to see the code that you have used, but the exact query you have sent to us, as well as the complete answer that you have received.

@SirNiksAlot said:
Im getting an error that says there's no content ( status 204 ), the code ive used is given below
export const getPopularMovies= async()=>{
const response=await fetch(${BASE_URL}movie/popular?api_key=${API_KEY})
console.log(response)
const data=await response.json()
return data.results
};

In our list of errors I don't see one with the number HTTP Status 204.
See the list of TMDb server error warnings here.
https://www.themoviedb.org/documentation/api/status-codes
Maybe it's not a TMDb Server error response.

Nie mo偶esz znale藕膰 filmu lub serialu? Zaloguj si臋, aby go utworzy膰.

Globalny

s zaznacz pasek wyszukiwania
p otw贸rz menu profilu
esc Zamknij otwarte okno
? otw贸rz okno skr贸t贸w klawiszowych

On media pages

b go back (or to parent when applicable)
e przejd藕 do strony edycji

On TV season pages

(prawa strza艂ka) przejd藕 do nast臋pnego sezonu
(lewa strza艂ka) przejd藕 do poprzedniego sezonu

On TV episode pages

(prawa strza艂ka) przejd藕 do nast臋pnego odcinka
(lewa strza艂ka) przejd藕 do poprzedniego odcinka

On all image pages

a otw贸rz okno dodawania obrazu

On all edit pages

t open translation selector
ctrl+ s prze艣lij formularz

On discussion pages

n otw贸rz now膮 dyskusj臋
w toggle watching status
p toggle public/private
c toggle close/open
a open activity
r odpowiedz na dyskusj臋
l przejd藕 do ostatniej odpowiedzi
ctrl+ enter wy艣lij swoj膮 wiadomo艣膰
(prawa strza艂ka) nast臋pna strona
(lewa strza艂ka) poprzednia strona

Ustawienia

Want to rate or add this item to a list?

Zaloguj