i am unable to fetch data from the api getting error----Fetch failed: Error: HTTP error! status: 401 please help me out with this
Nie mo偶esz znale藕膰 filmu lub serialu? Zaloguj si臋, aby go utworzy膰.
Want to rate or add this item to a list?
Not a member?
Odpowied藕 u偶ytkownika ticao2 馃嚙馃嚪 pt-BR
3 lipca 2024 o godz. 6:01PM
Can you tell us which of these errors is occurring?
See the list of TMDb server error warnings here.
https://www.themoviedb.org/documentation/api/status-codes
In your case:
Odpowied藕 u偶ytkownika _nswadhina
4 lipca 2024 o godz. 4:12AM
API_KEY: undefined Request URL: https://api.themoviedb.org/3/trending/all/week?api_key=undefined&language=en-US&page=1 Fetch failed: TypeError: fetch failed actually i tested this api in postman it is working perfectly but when i am trying to fetch day through my code it is showing the above error
this is my api key--- NEXT_PUBLIC_API_KEY=9615f4f99d********
Odpowied藕 u偶ytkownika Travis Bell
4 lipca 2024 o godz. 12:16PM
Well, in the text you pasted above:
You can see that your API key variable is not working properly. The URL that is getting created has the API key as
undefined
.