{"record":{"id":"7753f03187727178","repo":"unclecode/crawl4ai","slug":"self-class-name-object-has-no-attribute","errorCode":null,"errorMessage":"{self.__class__.__name__} object has no attribute '{attr}'","messagePattern":"(.+?) object has no attribute '(.+?)'","errorType":"exception","errorClass":"AttributeError","httpStatus":null,"severity":"error","filePath":"crawl4ai/models.py","lineNumber":315,"sourceCode":"\n    def __iter__(self):\n        return iter(self._results)\n\n    async def __aiter__(self):\n        for item in self._results:\n            yield item\n\n    def __getitem__(self, index):\n        return self._results[index]\n\n    def __len__(self):\n        return len(self._results)\n\n    def __getattr__(self, attr):\n        # Delegate attribute access to the first element.\n        if self._results:\n            return getattr(self._results[0], attr)\n        raise AttributeError(f\"{self.__class__.__name__} object has no attribute '{attr}'\")\n\n    def __repr__(self):\n        return f\"{self.__class__.__name__}({self._results!r})\"\n\nRunManyReturn = Union[\n    CrawlResultContainer[CrawlResultT],\n    AsyncGenerator[CrawlResultT, None]\n]\n\n\n# END of backward compatibility code for markdown/markdown_v2.\n# When removing this code in the future, make sure to:\n# 1. Replace the private attribute and property with a standard field\n# 2. Update any serialization logic that might depend on the current behavior\n\nclass AsyncCrawlResponse(BaseModel):\n    html: str\n    response_headers: Dict[str, str]","sourceCodeStart":297,"sourceCodeEnd":333,"githubUrl":"https://github.com/unclecode/crawl4ai/blob/7e801521428ee12509994d39151006f64055ebe3/crawl4ai/models.py#L297-L333","documentation":"Error \"{self.__class__.__name__} object has no attribute '{attr}'\" thrown in unclecode/crawl4ai.","triggerScenarios":"Thrown at crawl4ai/models.py:315 when the library encounters an invalid state.","commonSituations":"See trigger scenarios.","solutions":["Check the attribute name for typos against the model's defined fields.","Upgrade code that references removed/renamed attributes to the current model API."],"exampleFix":"getattr(result, 'markdown')  # use a valid attribute","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"}