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);
}
}
};
찾으시는 영화나 TV 프로그램이 없나요? 로그인 하셔서 직접 만들어주세요.
Want to rate or add this item to a list?
Not a member?
Travis Bell님의 댓글
2월 2, 2021 at 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.