Hi there, I have an issue with my API Key. If I search a "top rated" with basicFetch(/trending/all/week?language=pt-BR&api_key${API_KEY}
)
but, receive "items: {status_code: 7, status_message: "Invalid API key: You must be granted a valid key.", success: false"
someone can help me?
¿No encuentras una película o serie? Inicia sesión para crearla:
¿Quieres puntuar o añadir este elemento a una lista?
¿No eres miembro?
Contestado por yacine717
el 27 de agosto de 2021 a las 14:08
same problem
Contestado por Travis Bell
el 27 de agosto de 2021 a las 17:54
Assuming you aren't putting an
=
in yourAPI_KEY
var (which seems unlikely), you're missing the HTML delimiter:Would be what you're looking for.
Contestado por Kaimzr
el 28 de agosto de 2021 a las 10:16
Travis, Thanks for your reply, however the persistent error. and yes, i have a const with my api_key.
Contestado por Travis Bell
el 28 de agosto de 2021 a las 10:23
What’s is the full request that isn’t working?
Contestado por Kaimzr
el 28 de agosto de 2021 a las 10:30
Follow my code;
all requests return me, error 401 and 404, and say my api key is invalid.
Contestado por ticao2 🇧🇷 pt-BR
el 29 de agosto de 2021 a las 11:40
I believe there are some characters missing from your Requests.
Always put your API Key after the " ? "
Try building your API Request with this other sequence:
title: 'Originais do Netflix',
https://api.themoviedb.org/3/discover/tv?with_network=213&language=pt-BRapi_key=${API_KEY}`)
https://api.themoviedb.org/3/discover/tv?api_key=THE_KEY&language=pt-BR&with_networks=213
You forgot the & character before with_network=
title: 'recomendados para Você',
https://api.themoviedb.org/3/trending/all/week?language=pt-BR&api_key=${API_KEY}`)
https://api.themoviedb.org/3/trending/all/week?api_key=THE_KEY
In trending it is not possible to specify the language (pt-BR).
title: 'em alta',
https://api.themoviedb.org/3/movie/top_rated?language=pt-BR&api_key=${API_KEY}`)
https://api.themoviedb.org/3/movie/top_rated?api_key=THE_KEY&language=pt-BR
You forgot the & character before language=
title: 'terror',
https://api.themoviedb.org/3/discover/movi?with_genres=27&language=pt-BR&api_key=${API_KEY}`)
https://api.themoviedb.org/3/discover/movie?api_key=THE_KEY&language=pt-BR&with_genres=27
In this case you wrote movi, that is, movie without the " e " character at the end.
There are probably some other minor errors. :-)
Contestado por ticao2 🇧🇷 pt-BR
el 1 de septiembre de 2021 a las 08:15
See this case similar to yours
https://www.themoviedb.org/talk/612cded1d04d1a0065e8d135?page=1#612f6b53c1ffbd00630de02a
Contestado por bukqueiroz
el 1 de septiembre de 2021 a las 21:57
tnx man
Contestado por ticao2 🇧🇷 pt-BR
el 8 de septiembre de 2021 a las 22:26
A curiosity of mine, I speak pt-BR.
You are the 4 user who speaks pt-BR that comes here in the last 10 days with the same problem.
Are you taking any code programming course that uses API?
Is it a school or online?
Can you say the name of the course, where it is, etc...?
Contestado por ticao2 🇧🇷 pt-BR
el 8 de septiembre de 2021 a las 22:27
A curiosity of mine, I speak pt-BR.
You are the 4 user who speaks pt-BR that comes here in the last 10 days with the same problem.
Are you taking any code programming course that uses API?
Is it a school or online?
Can you say the name of the course, where it is, etc...?