{"record":{"id":"3f4ae515c907195b","repo":"BerriAI/litellm","slug":"invalid-azure-blob-storage-url-format-storage-ur","errorCode":null,"errorMessage":"Invalid Azure Blob Storage URL format: {storage_url}","messagePattern":"Invalid Azure Blob Storage URL format: (.+?)","errorType":"exception","errorClass":"ValueError","httpStatus":null,"severity":"error","filePath":"litellm/llms/base_llm/files/azure_blob_storage_backend.py","lineNumber":242,"sourceCode":"        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:\n        \"\"\"Download file using Azure SDK with account key.\"\"\"\n        # Reuse the logger's service client method\n        service_client: Final = await self.get_service_client()\n        file_system_client: Final = service_client.get_file_system_client(file_system=self.azure_storage_file_system)\n        # Ensure filesystem exists (should already exist, but check for safety)","sourceCodeStart":224,"sourceCodeEnd":260,"githubUrl":"https://github.com/BerriAI/litellm/blob/77b7c6c40c0c5aa5fbcb1d6a1825ac39ca8829b8/litellm/llms/base_llm/files/azure_blob_storage_backend.py#L224-L260","documentation":"Error \"Invalid Azure Blob Storage URL format: {storage_url}\" thrown in BerriAI/litellm.","triggerScenarios":"Thrown at litellm/llms/base_llm/files/azure_blob_storage_backend.py:242 when the library encounters an invalid state.","commonSituations":"See trigger scenarios.","solutions":["Fix the Azure Blob Storage URL format; it must match the expected account/container/blob pattern."],"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"}