Assistance de TMDB

Hey, I'm having problems with API v4, both from my code and from "Try it out" on the website. First I can't figure out why it requesting a String as account id since it should be a Number (maybe my fault, but I couldn't find a String id for accounts). Second I'm receiving a 500 error as I said in the title, I tried both with a String and with a Number, but I got the same result. I'm correctly authorizing my token and I thinks that's not the problem, since in that way it should return a 401 error.

If it could help, here is my library on GitHub: Repo.

Thank you. Davide.

5 réponses (sur la page 1 sur 1)

Jump to last post

What's the request you are making that is throwing the 500 error?

@travisbell said:

What's the request you are making that is throwing the 500 error?

All the requests I've tried for API v4, probably I'm mistaking the token Auth, I'm not very experienced ad that. With API v3, when the user allow the request the redirect uri include a new token, instead the API v4 should return an uri without params and must use the same token just created, right?

You can use this little demo script I made to follow each step, 1, 2 & 3 to create a valid access token. It works correctly and allows you to inspect the responses. You can also inspect the code, it's all just client side JS.

Here's another little script that will let you get some of your account lists once you have a access token.

@travisbell said:

You can use this little demo script I made to follow each step, 1, 2 & 3 to create a valid access token. It works correctly and allows you to inspect the responses. You can also inspect the code, it's all just client side JS.

Here's another little script that will let you get some of your account lists once you have a access token.

Got it, is about the accountId, I though it was my personal account ID (which is an integer ), I will let you know asap, I'm on smartphone now, thanks so much for now.

@travisbell sorry for the late answer, but it's a personal project I'm running in spare time, anyway it was my fault, you can close it 😊

Un film, une émission télévisée ou un artiste est introuvable ? Connectez-vous afin de créer une nouvelle fiche.

Général

s Mettre le curseur dans la barre de recherche
p Ouvrir le menu du profil
esc Fermer une fenêtre ouverte
? Ouvrir la fenêtre des raccourcis clavier

Sur les pages des médias

b Retour (ou vers le parent si faisable)
e Afficher la page de modification

Sur les pages des saisons des émissions télévisées

Afficher la saison suivante (flèche droite)
Afficher la saison précédente (flèche gauche)

Sur les pages des épisodes des émissions télévisées

Afficher l'épisode suivant (flèche droite)
Afficher l'épisode précédent (flèche gauche)

Sur toutes les pages des images / photos

a Ouvrir la fenêtre d'ajout d'image / photo

Sur toutes les pages de modifications

t Ouvrir le sélecteur de traduction
ctrl+ s Envoyer le formulaire

Sur les pages des discussions

n Créer une nouvelle discussion
w Basculer le statut de suivi
p Basculer publique / privée
c Basculer fermer / ouvrir
a Ouvrir l'activité
r Répondre à la discussion
l Afficher la dernière réponse
ctrl+ enter Envoyer votre message
Page suivante (flèche droite)
Page précédente (flèche gauche)

Paramètres

Vous souhaitez évaluer ou ajouter cet élément à une liste ?

Connexion