{"record":{"id":"7d0df89fd9cc6a00","repo":"BerriAI/litellm","slug":"invalid-azure-blob-storage-url-storage-url","errorCode":null,"errorMessage":"Invalid Azure Blob Storage URL: {storage_url}","messagePattern":"Invalid Azure Blob Storage URL: (.+?)","errorType":"exception","errorClass":"ValueError","httpStatus":null,"severity":"error","filePath":"litellm/llms/base_llm/files/azure_blob_storage_backend.py","lineNumber":237,"sourceCode":"        )\n        response.raise_for_status()\n\n    async def download_file(self, storage_url: str) -> bytes:\n        \"\"\"\n        Download a file from Azure Blob Storage.\n\n        Args:\n            storage_url: Blob URL in format: https://{account}.blob.{endpoint_suffix}/{container}/{path}\n\n        Returns:\n            bytes: File content\n        \"\"\"\n        try:\n            # Parse blob URL to extract path\n            # URL format: https://{account}.blob.{endpoint_suffix}/{container}/{path}\n            parsed_url: Final = urlparse(storage_url)\n            if \".blob.\" not in (parsed_url.hostname or \"\"):\n                raise ValueError(f\"Invalid Azure Blob Storage URL: {storage_url}\")\n\n            # Extract path after container name\n            _, _, file_path = parsed_url.path.lstrip(\"/\").partition(\"/\")\n            if not file_path:\n                raise ValueError(f\"Invalid Azure Blob Storage URL format: {storage_url}\")\n\n            if self.azure_storage_account_key:\n                # Use Azure SDK (reuse logger's service client)\n                return await self._download_file_with_account_key(file_path)\n            else:\n                # Use REST API (reuse logger's token management)\n                return await self._download_file_with_azure_ad(file_path)\n\n        except Exception as e:\n            verbose_logger.exception(\"Error downloading file from Azure Blob Storage: %s\", e)\n            raise\n\n    async def _download_file_with_account_key(self, file_path: str) -> bytes:","sourceCodeStart":219,"sourceCodeEnd":255,"githubUrl":"https://github.com/BerriAI/litellm/blob/77b7c6c40c0c5aa5fbcb1d6a1825ac39ca8829b8/litellm/llms/base_llm/files/azure_blob_storage_backend.py#L219-L255","documentation":"Error \"Invalid Azure Blob Storage URL: {storage_url}\" thrown in BerriAI/litellm.","triggerScenarios":"Thrown at litellm/llms/base_llm/files/azure_blob_storage_backend.py:237 when the library encounters an invalid state.","commonSituations":"See trigger scenarios.","solutions":["Use a valid Azure Blob Storage URL (https://<account>.blob.core.windows.net/...)."],"exampleFix":null,"handlingStrategy":null,"validationCode":null,"typeGuard":null,"tryCatchPattern":null,"preventionTips":[],"tags":[],"backgroundTag":null,"analyzedSha":"77b7c6c40c0c5aa5fbcb1d6a1825ac39ca8829b8","analyzedAt":"2026-08-18T11:44:31.656Z","contentChangedAt":null,"schemaVersion":2},"datasetVersion":"2026-09-23T08:17:48.524Z"}