Assistance de TMDB

i deployed my website on netlify through github and i putted my api key in env file and i think i got blocked, so can you help me ?

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

Jump to last post

@Abdelrahman14 said:
api block 401
i deployed my website on netlify through github and i putted my api key in env file and i think i got blocked, so can you help me ?

Maybe it's not a TMDb error response.
See the list of TMDb server error warnings here.
https://www.themoviedb.org/documentation/api/status-codes
In your case:

Code    HTTP    Message  
3       401     Authentication failed: You do not have permissions to access the service.
7       401     Invalid API key: You must be granted a valid key.
10      401     Suspended API key: Access to your account has been suspended, contact TMDb.
14      401     Authentication failed.
16      401     Device denied.
17      401     Session denied.
30      401     Invalid username and/or password: You did not provide a valid login.
31      401     Account disabled: Your account is no longer active. Contact TMDb if this is an error.
32      401     Email not verified: Your email address has not been verified.
33      401     Invalid request token: The request token is either expired or invalid.
34      401     The resource you requested could not be found.
35      401     Invalid token.
36      401     This token hasn't been granted write permission by the user.
38      401     You don't have permission to edit this resource.
39      401     This resource is private.  

Can you let us know which of these error responses you received?

it's give me either (Status code: 401) only or (Status code: 401 internal redirect)
here is the whole response
Request URL: https://api.themoviedb.org/3/discover/tv?api_key=MY_API_KEY&with_networks=213
Request Method: GET
Status Code: 401 Internal Redirect

@Abdelrahman14 said:
it's give me either (Status code: 401) only or (Status code: 401 internal redirect)
here is the whole response
Request URL: https://api.themoviedb.org/3/discover/tv?api_key=MY_API_KEY&with_networks=213
Request Method: GET
Status Code: 401 Internal Redirect

This API Request of yours is working smoothly for me.
https://api.themoviedb.org/3/discover/tv?api_key=THE_KEY&with_networks=213

total_pages 84
total_results   1673

I believe that whoever is sending this error response is not the TMDb server.
It must probably be your installed Netlify.
So you should ask for help on their website.
https://www.netlify.com/

hey i try to Authenticate my api_key but it is showing error 401 "status_code": 7, "status_message": "Invalid API key: You must be granted a valid key.", "success": false

Hi @ritkg_05, in order to get help you need to supply more information. What is the exact api URL you are trying to use that gives the error message. Replace your api key with a string like "xxxxxx".

The link i am using is https://api.themoviedb.org/3/genre/movie/list?api_key=THE_KEY

@ritkg_05 said:
The link i am using is https://api.themoviedb.org/3/genre/movie/list?api_key=THE_KEY

I tested your URL in my Firefox browser on my Win11 note and it worked correctly.
Have you tried opening this URL in a new window or tab on your browser?
Preferably do not use a mobile device. Support is not good for them.
And answer here if it worked or didn't work correctly.

PS: I exchanged your API Key for THE_KEY

it's give me either (Status code: 401) here is the whole response Request URL:
https://api.themoviedb.org/3/movie/11?api_key=1097bff1d2323aa07c0086a420ba61d7
{ "status_code": 7, "status_message": "Invalid API key: You must be granted a valid key.", "success": false }

@InflammableBot said:

it's give me either (Status code: 401) here is the whole response Request URL:
https://api.themoviedb.org/3/movie/11?api_key=1097bff1d2323aa07c0086a420ba61d7
{ "status_code": 7, "status_message": "Invalid API key: You must be granted a valid key.", "success": false }

On this page of your profile
https://www.themoviedb.org/settings/api
there is an option in the menu: "Regenerate Key".

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