Axuda de The Movie Database

status_code: 7 status_message "Invalid API key: You must be granted a valid key. this is the issue i am facing how can i resolve it

3 respostas (na páxina 1 de 1)

Jump to last post

@Palak1 said:
Invalid API key: You must be granted a valid key.
status_code: 7
status_message
"Invalid API key: You must be granted a valid key.
this is the issue i am facing how can i resolve it

By what means are you making the API Request:
1 In a code you are developing/writing
2 Using "Try it!" in Developer Docs
3 Pasting the URL into your computer's browser
4 Another way. (Explain clearly what it is)

Hi, this is my first time posting a question. But I have the same problem, I copied the options object from the developer docs as is, and tried it in my code, but it is giving me the same error. But the Try it! method works fine

@Ragheed said:
Hi, this is my first time posting a question.
But I have the same problem,
I copied the options object from the developer docs as is, and tried it in my code, but it is giving me the same error.
But the Try it! method works fine

If Try it! it works without problems, I can deduce that the error is in your code.
If you are not using TOKEN, but are using your API Key explained in the URL then...

The problem must be in the code that is building your API Request, or something like that,
and is sending the Request to the TMDb Server.

It is very common to find people here with this type of problem.
A little mistake, a copy and paste with an extra space, or less character, an exchange of characters,
a quote left, use a dash when it should be underline, in short a typo and the answer can be that.
Even if the API Key is correct. The Requisition is that it has a little mistake.

I will place 6 API requests here. The first 5 with error.
You can see that the API Key is correct but the answer is Invalid API key or could not be found.

1 https://api.themoviedb.org/3/movie/550&api_key=THE_KEY  
2 https://api.themoviedb.org/3/movie/550/api_key=THE_KEY  
3 https://api.themoviedb.org/3/movie/550?api-key=THE_KEY  
4 https://api.themoviedb.org/3/movie/550? api_key=THE_KEY    
5 https://api.themoviedb.org/3/movie/'550'?api_key=THE_KEY  
6 https://api.themoviedb.org/3/movie/550?api_key=THE_KEY    

My suggestion is to check if there is any way for you to view the API Request that your APP is sending to the TMDb server.
Not the construction of the code, but the requisition built, final.
If possible, post the Request here.
If this is not possible, then you need to check in your code if there is a mistake, like the mistake in the examples above.
The error is usually in this segment of the API Request: ....?api_key=12345....

Non podes atopar unha película ou serie? Inicia sesión para creala.

Global

s amosar a barra de procura
p abrir menú do perfil
esc pechar e abrir xanela
? abrir xanela de atallos do teclado

En páxinas de medios

b atrás (ou á principal se aplica)
e ir a editar páxina

En páxinas de tempadas de televisión

(flecha dereita) ir á tempada seguinte
(flecha esquerda) ir á tempada anterior

En páxinas de episodios de televisión

(flecha dereita) ir ao episodio seguinte
(flecha esquerda) ir ao episodio anterior

En todas as páxinas de imaxe

a abrir a xanela de engadir imaxe

En todas as páxinas de edición

t abrir selector de traducións
ctrl+ s enviar formulario

Nas páxinas de debate

n crear un novo debate
w amosar o estado do seguimento
p mudar público/privado
c mudar abrir/pechar
a abrir actividade
r responder no debate
l ir á última resposta
ctrl+ enter eviar a túa mensaxe
(flecha dereita) páxina seguinte
(flecha esquerda) ir á páxina anterior

Configuración

Queres valorar ou engadir o elemento a unha listaxe?

Iniciar sesión