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
Update actor.js
Marek Trunkáte15bf5c699a0
diff --git a/src/actor.js b/src/actor.jsindex 90501d091..bef4c56c5 100644--- a/src/actor.js+++ b/src/actor.js@@ -60,7 +60,11 @@ const waitForRunToFinish = async ({ actId, runId, token, waitSecs, taskId }) =>throw new ApifyCallError({ id: runId, actId }, 'Apify.call() failed, cannot fetch actor run details from the server');}const { status } = updatedRun;- if (status !== ACT_JOB_STATUSES.SUCCEEDED && (status !== ACT_JOB_STATUSES.RUNNING && status !== ACT_JOB_STATUSES.READY)) {+ if (+ status !== ACT_JOB_STATUSES.SUCCEEDED+ && status !== ACT_JOB_STATUSES.RUNNING+ && status !== ACT_JOB_STATUSES.READY+ ) {const message = taskId? `The actor task ${taskId} invoked by Apify.call() did not succeed`: `The actor ${actId} invoked by Apify.call() did not succeed`;