You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Thanks for replying, but the element doesn't appear because puppeteer cluster can't seem to go to a different URL that has that element for the first job. But it can for subsequent jobs.
Hi,
Thanks to anyone who can help me with this, but whenever I run my script, the first job always fails to go to the target page.
The other jobs work fine enough.
I load the jobs based on the values inside a CSV file.
`const inputFilePath = 'PNPresetTemplateIds.csv';
const outputFilePath = 'done.csv';
try {
dataArray = fs.readFileSync(inputFilePath) //prod
//dataArray = fs.readFileSync('staging-ct-id.csv') //staging
.toString('UTF8')
.split(/\r?\n/);
} catch(e) {
console.log('Error:', e.stack);
}`
... //load the tasks from a file dataArray.forEach(presetTemplateId => { cluster.queue(presetTemplateId); });
is running a foreach on the dataArray a code smell?
Any help or information would be greatly appreciated. Thanks.
The text was updated successfully, but these errors were encountered: