Personal_AI_Infrastructure icon indicating copy to clipboard operation
Personal_AI_Infrastructure copied to clipboard

BrightData Full Crawl trigger is rejected: Bright Data's Crawl API is now the Fetch API and refuses crawl_depth, url_filter and format

Open cristbc opened this issue 3 weeks ago • 1 comments

Version

LifeOS 8.761.0 · attestation: not run

What is broken

The BrightData skill's Full Crawl recipe sends a trigger body that Bright Data's API now rejects, so Full Crawl fails on every run.

Intents/Crawl.md § "Full Crawl: trigger" posts url, crawl_depth, url_filter and format to datasets/v3/trigger. Bright Data has renamed the product behind that dataset from "Crawl API" to "Fetch API (formerly Crawl API)" (public catalogue docs.brightdata.com/scrapers.json, dataset gd_m6gjtfmeh43we6cqc, collection method collect_by_url). The API answers validation_error for each of the three extra fields. With url alone the same call succeeds and returns one record for that URL (fields markdown, html2text, page_html, page_title, final_url), which means the product now fetches the URLs it is given and no longer follows links.

Effect: the skill's "whole site through Bright Data's Crawl API" path cannot work as written. Setup.md also tells the user the crawl dataset id "is shown in the Bright Data dashboard"; it is a fixed catalogue id.

Where (file:line)

skills/BrightData/Intents/Crawl.md:78

Repro on a clean tree

1. Set `BRIGHT_DATA_API_KEY` to a valid key and `BRIGHT_DATA_CRAWL_DATASET_ID=gd_m6gjtfmeh43we6cqc`.
2. Run the trigger exactly as `skills/BrightData/Intents/Crawl.md` writes it, with a start URL of `https://example.com/`, `crawl_depth` 0, a `url_filter`, and `format` `markdown`.
3. Observed: HTTP error body `{"error":"Invalid input provided","code":"validation_error", ... "errors":[["crawl_depth","This input should not contain a crawl_depth field"],["url_filter","This input should not contain a url_filter field"],["format","This input should not contain a format field"]]}` and no `snapshot_id`.
4. Control: the same call with the body `[{"url":"https://example.com/"}]` returns a `snapshot_id`; progress reaches `ready` with `records: 1` in about 15 seconds and the snapshot holds the page.

Negative control

Probe: grep -n 'crawl_depth\|url_filter' skills/BrightData/Intents/Crawl.md | head -4; curl -s -m 30 https://docs.brightdata.com/scrapers.json | grep -o 'Fetch API (formerly Crawl API)' | head -1 · exit 0 · captured 2026-11-11T20:36:11.117Z

Red looks like: Fetch API (formerly Crawl API)

73:For large-scale site crawling. Uses Bright Data's dedicated Crawl API via HTTP POST. Before the trigger, run `MarkdownPreCheck.ts robots "[start URL]"`; exit 3 ends the crawl with the refusal reported. The trigger below sends no robots option, so the Crawl API does not check robots.txt for the pages it discovers: read the site's `/robots.txt` and write `url_filter` so it excludes every path disallowed for `LifeOS-BrightData` (its own group, else `*`). A site whose disallow rules cannot be expressed in one filter is crawled with Light Crawl instead, which checks robots.txt for every URL.
83:    "crawl_depth": [DEPTH],
84:    "url_filter": "[REGEX_PATTERN]",
91:- `crawl_depth` — How many link hops to follow (default: 3)
Fetch API (formerly Crawl API)

Suggested fix

Suggested direction: have Full Crawl build the URL list first (sitemap, or the Recursive Crawl intent's own link walk through the free tiers), then send the list as one batch of {"url": ...} rows to the same trigger; read markdown from each record. Update Setup.md to give the fixed dataset id, or look it up from the public catalogue by name.

Environment

  • OS: macOS 27.2 (arm64)
  • Harness: claude-code
  • bun: 1.4.4 · git: 2.54.0
  • Doctor broken: none

cristbc avatar Nov 11 '26 20:11 cristbc

[!NOTE] 🤖 Kai (AI assistant) responding on behalf of Daniel Miessler

Bright Data now runs that dataset as the Fetch API. It fetches only the URLs it is sent and rejects crawl_depth, url_filter and format. Full Crawl now builds the URL list itself from the sitemap or a free-tier link walk, checks robots.txt for every URL, and sends one batch of url-only rows. Setup and the skill page now give the fixed catalogue id gd_m6gjtfmeh43we6cqc instead of sending you to the dashboard.

This fix lands in the next LifeOS release, so I'm closing this now.

danielmiessler avatar Nov 20 '26 03:11 danielmiessler