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
Better error text for ApifyCallError (#74)
Jan Čurn4deede18314e
diff --git a/src/errors.js b/src/errors.jsindex 5614ed308..f1d7df970 100644--- a/src/errors.js+++ b/src/errors.js@@ -1,5 +1,4 @@-export const APIFY_CALL_ERROR_NAME = 'APIFY_CALL_ERROR';-export const APIFY_CALL_ERROR_MESSAGE = 'Apify.call() wasn\'t succeed';+export const APIFY_CALL_ERROR_NAME = 'ApifyCallError';/*** @typedef {Object} ApifyCallError@@ -9,7 +8,7 @@ export const APIFY_CALL_ERROR_MESSAGE = 'Apify.call() wasn\'t succeed';*/export class ApifyCallError extends Error {constructor(run) {- super(APIFY_CALL_ERROR_MESSAGE);+ super(`The act run invoked by Apify.call() did not succeed (run ID: ${run.id})`);this.name = APIFY_CALL_ERROR_NAME;this.run = run;