The Movie Database Support

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 svar (på sida 1 av 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.

Kan du inte hitta en film eller tv-serie? Logga in för att skapa den.

Globala

s fokus på sökrutan
p öppna profilmenyn
esc stäng ett öppet fönster
? öppna tangentbordsgenväg fönstret

På mediasidor

b gå tillbaka (eller till förälder när det är tillämpligt)
e gå till redigerings sidan

På tv-säsongssidor

(höger pil) gå till nästa säsong
(vänster pil) gå till den föregående säsongen

På tv-avsnittssidor

(höger pil) gå till nästa avsnitt
(vänster pil) gå till föregående avsnitt

På alla bildsidor

a öppna lägg till bild fönstret

På alla redigeringssidor

t öppna översättnings väljaren
ctrl+ s skicka förmulär

På diskussionssidor

n skapa ny diskussion
w växla sedd-status
p växla offentligt/privat
c växla stäng/öppna
a öppna aktivitet
r svara på diskussionen
l gå till det senaste svaret
ctrl+ enter skicka ditt meddelande
(höger pil) nästa sida
(vänster pil) föregående sida

Inställningar

Vill du betygsätta denna artikel eller lägga till den i en lista?

Logga in