Sprijin Bază de date filme (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 răspunsuri (pe pagina 1 din 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.

Nu găsiți un film sau un serial? Autentificați-vă pentru a-l crea.

Globale

s focalizează bara de căutare
p deschide meniul profilului
esc închide o fereastră deschisă
? deschide fereastra cu scurtături de la tastatură

Pe paginile media

b mergi înapoi (sau la părinte atunci când este cazul)
e mergi la pagina de editare

Pe paginile sezoanelor filmelor seriale

(săgeată dreapta) mergi la sezonul următor
(săgeată stânga) mergi la sezonul precedent

Pe paginile episoadelor filmelor seriale

(săgeată dreapta) mergi la episodul următor
(săgeată stânga) mergi la episodul precedent

Pe toate paginile de imagini

a deschide fereastra pentru adăugarea de imagini

Pe toate paginile de editare

t deschide selectorul de traduceri
ctrl+ s trimite formularul

Pe paginile de discuții

n crează o discuție nouă
w comută starea de vizionare
p comută publică/privată
c comută închisă/deschisă
a deschide activitatea
r răspunde la discuție
l mergi la ultimul răspuns
ctrl+ enter trimite mesajul
(săgeată dreapta) pagina următoare
(săgeată stânga) pagina precedentă

Setări

Doriți să evaluați sau să adăugați acest articol într-o listă?

Autentificare