Supporto The Movie Database

Hello,

I have completed the 2 steps of Create a token and Ask the user for permission. When I try to make my request with create session (with login), I receive this error message:

status_code: 32
status_message"Email not verified: Your email address has not been verified."
success: false

API_KEY and REQUEST_TOKEN are transmitted correctly.

I don't understand what's not working. How do I get the email verified? Thanks for help :)

This is what my request looks like :

try {
      const response = await axios.post(
        `https://api.themoviedb.org/3/authentication/token/validate_with_login?api_key=${API_KEY}&request_token=${REQUEST_TOKEN}`,
        {
          username: username,
          email: email,
          password: password,
        },
        {
          headers: {
            Authorization: `Bearer ${token}`,
          },
        }
      );
      setIsLoading(false);
    } catch (error) {
      console.error(error.message);
    }
  };

3 risposte (nella pagina 1 di 1)

Jump to last post

Hi @chocmax, according to the documentation, the json body should be

{
  "username": "your_username",
  "password": "your_password",
  "request_token": "your_request_token"
}

So, I'm not sure why you get that particular error message but it might have something to do with the "email" parameter that shouldn't be there. The "request_token" passed in the URL is probably getting ignored. And you don't need the Authorization header because you are passing the api_key in the URL.

@robbie3999 said:

Hi @chocmax, according to the documentation, the json body should be

{
  "username": "your_username",
  "password": "your_password",
  "request_token": "your_request_token"
}

So, I'm not sure why you get that particular error message but it might have something to do with the "email" parameter that shouldn't be there. The "request_token" passed in the URL is probably getting ignored. And you don't need the Authorization header because you are passing the api_key in the URL.

thanks for your answer, i try with body :

 {
  "username": "xxxxx",
   "password": "xxxxx",
   "request_token": "xxxxx"
}

i have the same error, email not verified :/ .

I don't know what is going wrong, perhaps someone writing similar code will be able to help out.

Non riesci a trovare un film o una serie Tv? Accedi per crearlo.

Globale

s focalizza la barra di ricerca
p apri menu profilo
esc chiudi una finestra aperta
? apri finestra scorciatoia tastiera

Su tutte le pagine di media

b torna indietro (o al precedente quando applicabile)
e vai alla pagina di modifica

Nelle pagine delle stagioni TV

(freccia destra) vai alla stagione successiva
(freccia sinistra) vai alla stagione precedente

Nelle pagine degli episodi TV

(freccia destra) vai all'episodio successivo
(freccia sinistra) vai all'episodio precedente

Su tutte le pagine di immagini

a apri finestra aggiungi immagine

Su tutte le pagine di modifica

t apri selettore traduzione
ctrl+ s invia modulo

Sulle pagine di discussione

n crea nuova discussione
w segna come visto/non visto
p cambia publico/privato
c cambia chiuso/aperto
a apri attivita
r rispondi alla discussione
l vai all'ultima risposta
ctrl+ enter invia il tuo messaggio
(freccia destra) pagina successiva
(freccia sinistra) pagina precedente

Impostazioni

Vuoi valutare o aggiungere quest'elemento a una lista?

Accedi