hello. i'm trying to send a request with nodejs server and it gives me connect etimedout 10.10.34.36:443 error. if i send the request from fron-end it works fine.
my code:
const fetch = require("node-fetch");
module.exports = {
async home() {
try {
const response = await fetch(
"https://api.themoviedb.org/3/tv/popular?api_key=********&language=en-US&page=1"
);
const responseData = await response.json();
console.log(responseData);
} catch (error) {
throw new Error(error);
}
}
};
Un film, une émission télévisée ou un artiste est introuvable ? Connectez-vous afin de créer une nouvelle fiche.
Vous souhaitez évaluer ou ajouter cet élément à une liste ?
Pas encore membre ?
Réponse de Travis Bell
le 2 février 2021 à 10h54
Hi @mohammad-tn,
10.10.34.36
is a private IP (an IP address on your LAN). We can't help with that. If you're seeing an error connecting to the public service let us know.