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);
}
}
};
.לא מצאת סרט או סדרה? היכנס כדי ליצור אותם
?רוצה לדרג או להוסיף פריט אל רשימה
?לא חבר אתר
תגובה מאת Travis Bell
ב-פברואר 2, 2021 ב-10:54לפני חצות יום
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.