No idea why but it randomly quits my node process with no error warning or way to catch it. Only happens once in 50 or something which makes it impossible to debug why.
const proxyAgent = new HttpsProxyAgent(`http://${proxy.proxyUsername}:${proxy.proxyPassword}@${proxy.proxy}`)
let res = await googleTrends.interestOverTime({
keyword: ['something', 'something else'],
geo: 'FR',
startTime: new Date(getDaysAgoTimestamps(365)),
agent: proxyAgent
})
debug({res})
No idea why but it randomly quits my node process with no error warning or way to catch it. Only happens once in 50 or something which makes it impossible to debug why.