Hi, i'm in trouble with the rate request, i try to create a guest_session like
https://api.themoviedb.org/3/authentication/guest_session/new?api_key=${myApiKey}
and it's work well, but when i try to rate with this guest session:
axios.post(`https://api.themoviedb.org/3/movie/${movie_id}/rating?api_key=${myApiKey}&guest_session_id=${guest_session_id}`, {"value": 8})
this return me a 404 with:
{
"success": false,
"status_code": 34,
"status_message": "The resource you requested could not be found."
}
can someone told me what do i do wrong ?
Can't find a movie or TV show? Login to create it.
Want to rate or add this item to a list?
Not a member?
Reply by VladislavLeushin
on June 26, 2021 at 4:39 PM
У меня с помощью гостевой сессии все работает. Использую JSON.stringify для {"value": 8}. Попробуй так:
Reply by tyronkadoche
on June 27, 2021 at 9:07 AM
Thanks for ur reply, i try ur code but it gave me:
i try to change the body to:
from:
the result is the same, i think that the probleme is not the body, have u done something special with ur guest session id ?
Reply by VladislavLeushin
on June 27, 2021 at 2:32 PM
1.Может у тебя проблемы с получением guest_session_id? Я делаю запрос и получаю в ответ от сервера следующие данные:
Я понимаю так, что сервер принял твои данные, но не смог их обработать. Headers указываешь? Скинь сюда весь свой код запроса, а то в первом сообщении ты как минимум заголовки не указал.
Reply by tyronkadoche
on June 28, 2021 at 5:40 AM
there is all my code:
my request to get a guest_session_id is working well and my movieId and rate are well setted too like my api key :/
Reply by VladislavLeushin
on June 28, 2021 at 8:28 AM
На первый взгляд все верно, попробуй проверить свои данные в момент отправки запроса. Даже не знаю чем помочь. :( Для получения оценки фильмов в будущем использую это: https://developers.themoviedb.org/3/guest-sessions/get-guest-session-rated-movies
Reply by karolarizadev
on October 12, 2022 at 6:07 PM
Hello! how did you get it at the end? I have the same problem