0
Google Analytics API에 요청하고 있습니다. 나는 Passport.js를 사용하여 사용자를 인증하고 this library은 요청을합니다.node.js로 Google API에 http 요청하기
Google에서 좋은 repsonse를 얻지 만 제 문제는 repsonse를받은 후에도 요청이 시간 초과 될 때까지 계속됩니다. 내가 요청할 때까지 요청은 실행되지 않습니다.
내가 뭘 잘못하고 있니? 당신은 아마 당신이하고있는 전화 얻을 HTTP에서 뭔가를 반환하지 않는
request('https://www.googleapis.com/analytics/v3/management/accounts?access_token=' + access_token, function (error, response, body) {
if(error){
console.log(error);
}else{
console.log(repsonse);
}
});
는 반드시 본을 요구하고있다 true로 평가하지 않는 경우
당신은 HTTP 200을 다시 보낼 필요가? –
@materik 다음을 따르지 않으면 문맥에 따라 무엇을 의미합니까? – Ismailp