Answer the question
In order to leave comments, you need to log in
How to fix token error when requesting from JSON?
send()
function send() {
console.log('начало send')
request.get({
url: 'https://google.com'
}, function(err, res, body) {
if (err) {
console.log('ERROR', err);
console.log('Вызвал send, ошибка')
setTimeout(send, 10000)
} else {
let s = '111'
let i = 0
console.log('Запрос успешен')
console.log(JSON.parse(body)['time'])
setTimeout(send, 10000)
}
})
}
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question