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
Set null instead of NaN for invalid memory env var
Ondra Urband833f8d7f07e
diff --git a/src/autoscaling/snapshotter.js b/src/autoscaling/snapshotter.jsindex 297e059d5..71c3c9783 100644--- a/src/autoscaling/snapshotter.js+++ b/src/autoscaling/snapshotter.js@@ -72,7 +72,7 @@ export default class Snapshotter {this.snapshotHistoryMillis = snapshotHistorySecs * 1000;this.maxBlockedMillis = maxBlockedMillis;this.maxUsedMemoryRatio = maxUsedMemoryRatio;- this.maxMemoryBytes = parseInt(process.env[ENV_VARS.MEMORY_MBYTES], 10) * 1024 * 1024;+ this.maxMemoryBytes = (parseInt(process.env[ENV_VARS.MEMORY_MBYTES], 10) * 1024 * 1024) || null;this.cpuSnapshots = [];this.eventLoopSnapshots = [];