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: double tier decrement in tiered proxy (#2468)
Jindřich Bär3a8204ba4179
diff --git a/packages/core/src/proxy_configuration.ts b/packages/core/src/proxy_configuration.tsindex a619afbd6..7a2c06d4d 100644--- a/packages/core/src/proxy_configuration.ts+++ b/packages/core/src/proxy_configuration.ts@@ -142,9 +142,7 @@ class ProxyTierTracker {if (this.histogram[this.currentTier] > Math.min(left, right)) {this.currentTier = left <= right ? this.currentTier - 1 : this.currentTier + 1;- }-- if (this.histogram[this.currentTier] === left) {+ } else if (this.histogram[this.currentTier] === left) {this.currentTier--;}}