Skip to content

[Bug fix] JS SDK v2: forward ignoreRobotsTxt in crawl payload - #5473

Open
Ratanlavate wants to merge 1 commit into
firecrawl:mainfrom
Ratanlavate:bounty-39471-js-sdk-crawl-ignore-robotstxt
Open

Ratanlavate wants to merge 1 commit into
firecrawl:mainfrom
Ratanlavate:bounty-39471-js-sdk-crawl-ignore-robotstxt

Conversation

@Ratanlavate

@Ratanlavate Ratanlavate commented Oct 30, 2026 •

Copy link
Copy Markdown

Summary

The Firecrawl JS SDK v2 crawl() silently drops the ignoreRobotsTxt option.

CrawlOptions (in apps/js-sdk/firecrawl/src/v2/types.ts) declares:

ignoreRobotsTxt?: boolean;
robotsUserAgent?: string | null;

but prepareCrawlPayload() in apps/js-sdk/firecrawl/src/v2/methods/crawl.ts builds the request body from a hand-rolled whitelist of options and never forwards ignoreRobotsTxt. So a caller setting ignoreRobotsTxt: true gets server-side default robots behaviour anyway — the client-side flag is accepted in the type, then discarded, and the documented behaviour diverges from reality.

Changes

  • apps/js-sdk/firecrawl/src/v2/methods/crawl.ts — forward request.ignoreRobotsTxt into the /v2/crawl payload when set.

Testing

  • Local: git apply --check against pristine main passes (patch is minimal, single-line addition).
  • Not run: no local TS toolchain / SDK runtime available in this environment, so the behavioural assertion has not been executed here.

Fixes #3940


Summary by cubic

Fixes the JS SDK v2 crawl() silently dropping the ignoreRobotsTxt option. Previously the flag was accepted in the CrawlOptions type but never forwarded to the request body, so callers got server-side default robots behavior; now ignoreRobotsTxt is included in the /v2/crawl payload when set.

Written for commit 059aae8. Summary will update on new commits.

View guided diff

@cubic-dev-ai cubic-dev-ai Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

No issues found across 1 file

Confidence score: 5/5

  • Automated review surfaced no issues in the provided summaries.
  • No files require special attention.

View guided diff | Re-trigger cubic

This branch has not been deployed

No deployments
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[Bug] JS SDK v2 crawl() silently drops ignoreRobotsTxt option

1 participant