Skip to content

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.

Update actor.js

Marek Trunkáte15bf5c699a0
diff --git a/src/actor.js b/src/actor.js
index 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`;