{"record":{"id":"d062957d039230d7","repo":"unclecode/crawl4ai","slug":"unsupported-chunking-strategy","errorCode":null,"errorMessage":"Unsupported chunking strategy","messagePattern":"Unsupported chunking strategy","errorType":"exception","errorClass":"ValueError","httpStatus":null,"severity":"error","filePath":"crawl4ai/legacy/web_crawler.py","lineNumber":140,"sourceCode":"        self,\n        url: str,\n        word_count_threshold=MIN_WORD_THRESHOLD,\n        extraction_strategy: ExtractionStrategy = None,\n        chunking_strategy: ChunkingStrategy = RegexChunking(),\n        bypass_cache: bool = False,\n        css_selector: str = None,\n        screenshot: bool = False,\n        user_agent: str = None,\n        verbose=True,\n        **kwargs,\n    ) -> CrawlResult:\n        try:\n            extraction_strategy = extraction_strategy or NoExtractionStrategy()\n            extraction_strategy.verbose = verbose\n            if not isinstance(extraction_strategy, ExtractionStrategy):\n                raise ValueError(\"Unsupported extraction strategy\")\n            if not isinstance(chunking_strategy, ChunkingStrategy):\n                raise ValueError(\"Unsupported chunking strategy\")\n\n            word_count_threshold = max(word_count_threshold, MIN_WORD_THRESHOLD)\n\n            cached = None\n            screenshot_data = None\n            extracted_content = None\n            if not bypass_cache and not self.always_by_pass_cache:\n                cached = get_cached_url(url)\n\n            if kwargs.get(\"warmup\", True) and not self.ready:\n                return None\n\n            if cached:\n                html = sanitize_input_encode(cached[1])\n                extracted_content = sanitize_input_encode(cached[4])\n                if screenshot:\n                    screenshot_data = cached[9]\n                    if not screenshot_data:","sourceCodeStart":122,"sourceCodeEnd":158,"githubUrl":"https://github.com/unclecode/crawl4ai/blob/7e801521428ee12509994d39151006f64055ebe3/crawl4ai/legacy/web_crawler.py#L122-L158","documentation":"Error \"Unsupported chunking strategy\" thrown in unclecode/crawl4ai.","triggerScenarios":"Thrown at crawl4ai/legacy/web_crawler.py:140 when the library encounters an invalid state.","commonSituations":"See trigger scenarios.","solutions":["Use a supported chunking strategy such as RegexChunking or SlidingWindowChunking.","Pass a ChunkingStrategy instance to the crawler call."],"exampleFix":"crawler.run(url, chunking_strategy=RegexChunking())","handlingStrategy":null,"validationCode":null,"typeGuard":null,"tryCatchPattern":null,"preventionTips":[],"tags":[],"backgroundTag":null,"analyzedSha":"7e801521428ee12509994d39151006f64055ebe3","analyzedAt":"2026-08-14T20:46:20.673Z","schemaVersion":2},"datasetVersion":"2026-08-15T22:17:37.221Z"}