I try to Fetch MovieList with Code Generator(Official Doc), but it gives 401 error. Code Generator :https://developer.themoviedb.org/reference/collection-details
In my production, same error is occurred. Please help me.
const fetch = require('node-fetch');
const url = 'https://api.themoviedb.org/3/collection/collection_id?language=ja';
const options = {
method: 'GET',
headers: {
accept: 'application/json',
Authorization: 'Bearer cfe5c0a677a38bcfd0f00a92852cf5fc'
}
};
fetch(url, options)
.then(res => res.json())
.then(json => console.log(json))
.catch(err => console.error('error:' + err));
Nu găsiți un film sau un serial? Autentificați-vă pentru a-l crea.
Doriți să evaluați sau să adăugați acest articol într-o listă?
Nu sunteți membru?
Răspuns de nats24
pe data de 16 martie 2024 la ora 7:16 PM
I regenerate API key and try this test. But I keep receive following message... {"status_code":7,"status_message":"Invalid API key: You must be granted a valid key.","success":false}
Please help me.I want to use this API by next weekend.
How long should I wait for your response?
Răspuns de Travis Bell
pe data de 17 martie 2024 la ora 11:38 AM
See my reply to another user here: https://www.themoviedb.org/talk/65f25b962fe2fa0185edbe7a#65f3109006f98400c9428485