#4374·firecrawl

[Bug] getCrawlStatus() auto-paginates by default and blocks for the lifetime of an in-progress crawl

Author: ostehostCreated Aug 20, 2026Updated Sep 18, 2026

Summary

getCrawlStatus() defaults to autoPaginate: true. When called against a crawl that is still in progress, it follows next cursors while the crawler is concurrently producing new pages, so a status check turns into a long-blocking call that does not return until the crawl stops growing.

The result is that the single method you need in order to poll a crawl is the method that blocks while the crawl is running.

Root cause

apps/js-sdk/firecrawl/src/v2/methods/crawl.ts:78

typescript
const auto = pagination?.autoPaginate ?? true;
...
const aggregated = await fetchAllPages(http, body.next, initialDocs, pagination);

For a finished crawl, next is a bounded chain and auto-pagination is a convenience. For an in-progress crawl it is a moving target.

Reproduction

Against a self-hosted instance (ghcr.io/firecrawl/firecrawl:2.11.218, default Postgres queue):

javascript
import { Firecrawl } from "firecrawl"; // 4.34.1
const fc = new Firecrawl({ apiUrl: "http://localhost:3002", apiKey: "x" });

const { id } = await fc.startCrawl("https://docs.firecrawl.dev", { limit: 300 });
await new Promise(r => setTimeout(r, 6000)); // let it accumulate pages

console.time("default");
await fc.getCrawlStatus(id);           // does not return while the crawl runs
console.timeEnd("default");

Measurements

Same job, same instance, while status === "scraping":

Call Result
GET /v2/crawl/{id} (raw HTTP, no SDK) 14 ms, 57,745 bytes, HTTP 200
getCrawlStatus(id, { autoPaginate: false }) 211 ms, completed=114, next present
getCrawlStatus(id) (default) still blocked at 120 s, never returned

The server is not slow: the raw endpoint answers the identical request in 14 ms.

Workaround

javascript
await fc.getCrawlStatus(id, { autoPaginate: false });

Poll with autoPaginate: false, then fetch the full document set once the status is terminal. This works reliably and is what we now do.

Why this may be worth reopening two closed reports

This looks like the underlying cause of at least two issues closed as not planned:

  • #2185 — "getCrawlStatus times out on subsequent calls." First call succeeds, later ones time out. That is exactly this behaviour: the first call happens before next exists, and every later call chases pagination against a growing crawl.
  • #3210 — "firecrawl crawl --wait hangs indefinitely on self-hosted instances without --progress." The report speculates a "RabbitMQ LISTEN/NOTIFY vs HTTP polling mismatch", but the two CLI paths differ in how they call status, which fits this cause better than a transport mismatch.

Suggested fix

Default autoPaginate to false when the returned status is non-terminal, or document that getCrawlStatus is not safe to poll with default options and have waitForCrawlCompletion pass autoPaginate: false internally.

A status method that blocks for the duration of the operation it is reporting on is surprising regardless of which fix is chosen.

Environment

  • SDK: [email protected] (also present in @mendable/[email protected])
  • Server: self-hosted ghcr.io/firecrawl/firecrawl:2.11.218, Docker Compose, default Postgres/NuQ queue
  • Node: v24.15.0, macOS arm64