Crawlee—A web scraping and browser automation library for Node.js to build reliable crawlers. In JavaScript and TypeScript. Extract data for AI, LLMs, RAG, or GPTs. Download HTML, PDF, JPG, PNG, and other files from websites. Works with Puppeteer, Playwright, Cheerio, JSDOM, and raw HTTP. Both headful and headless mode. With proxy rotation.
TypeScript apifyautomationcrawlercrawlingheadlessheadless-chromejavascriptnodejsnpmplaywrightpuppeteerscraperscrapingtypescriptweb-crawlerweb-crawlingweb-scraping
Fix waitForFinish parameter (#979)
Lukáš Křivka8607d1fa8f63
diff --git a/src/utils.js b/src/utils.jsindex 19b717132..c35bf935b 100644--- a/src/utils.js+++ b/src/utils.js@@ -707,7 +707,7 @@ export const waitForRunToFinish = async (options) => {? Math.round(waitSecs - (Date.now() - startedAt) / 1000): 999999;- run = await apifyClient.run(runId, actorId).waitForFinish({ waitForFinish }); // TODO waitForFinish+ run = await apifyClient.run(runId, actorId).waitForFinish({ waitSecs: waitForFinish }); // TODO waitForFinish// It might take some time for database replicas to get up-to-date,// so getRun() might return null. Wait a little bit and try it again.