Hello guys, when I try to post request to remove item from a custom v4 list i got this in console: success: true and status code: 1 but I also got Array error[1] where the error is "media has already been taken" but the item was not removed from my list by any means on the website
Not sure whats the problem, below is a piece of my code for delete movies or tvs:
const options = { method: 'POST', headers: { accept: 'application/json', 'content-type': 'application/json', Authorization: 'Bearer ' + sessionStore.requestToken, }, body: JSON.stringify({items: [ {media_type: media, media_id: movieid}, ]}) };
fetch(`https://api.themoviedb.org/4/list/${list.id}/items`, options)
.then(response => response.json())
.then(response => {
console.log(response);
this.fetchFavoriteMovies();
})
.catch(err => console.error(err));
}
},
찾으시는 영화나 TV 프로그램이 없나요? 로그인 하셔서 직접 만들어주세요.
Want to rate or add this item to a list?
Not a member?
thinhd464님의 댓글
5월 15, 2024 at 7:03 오후
i solved it guys method should be Delete lmaoo
Travis Bell님의 댓글
5월 16, 2024 at 10:22 오전
Yup, that would do it!