{"record":{"id":"58b12748e6073be8","repo":"BerriAI/litellm","slug":"raw-response-text-58b127","errorCode":null,"errorMessage":"raw_response.text","messagePattern":"raw_response\\.text","errorType":"http","errorClass":"OpenAIError","httpStatus":null,"severity":"error","filePath":"litellm/llms/azure_ai/image_edit/mai_transformation.py","lineNumber":166,"sourceCode":"                    self._add_image_to_files(\n                        files_list=files_list,\n                        image=_image,\n                        field_name=\"image\",\n                    )\n                    break\n\n        return data_without_files, files_list\n\n    def transform_image_edit_response(\n        self,\n        model: str,\n        raw_response: httpx.Response,\n        logging_obj: \"LiteLLMLoggingObj\",\n    ) -> ImageResponse:\n        try:\n            response: Final = raw_response.json()\n        except Exception:\n            raise OpenAIError(message=raw_response.text, status_code=raw_response.status_code)\n\n        if \"usage\" in response:\n            response[\"usage\"] = AzureFoundryMAIImageGenerationConfig.normalize_mai_image_usage(response.get(\"usage\"))\n\n        logging_obj.post_call(\n            input=\"\",\n            api_key=\"\",\n            additional_args={\"complete_input_dict\": {}},\n            original_response=response,\n        )\n\n        return convert_to_model_response_object(\n            response_object=response,\n            model_response_object=ImageResponse(),\n            response_type=\"image_generation\",\n        )\n","sourceCodeStart":148,"sourceCodeEnd":183,"githubUrl":"https://github.com/BerriAI/litellm/blob/6c2dcb801bf2b75c18f1bb24140e7cf57465cc4d/litellm/llms/azure_ai/image_edit/mai_transformation.py#L148-L183","documentation":"Error \"raw_response.text\" thrown in BerriAI/litellm.","triggerScenarios":"Thrown at litellm/llms/azure_ai/image_edit/mai_transformation.py:166 when the library encounters an invalid state.","commonSituations":"See trigger scenarios.","solutions":["Inspect the Azure AI error response body for details."],"exampleFix":null,"handlingStrategy":null,"validationCode":null,"typeGuard":null,"tryCatchPattern":null,"preventionTips":[],"tags":[],"backgroundTag":null,"analyzedSha":"6c2dcb801bf2b75c18f1bb24140e7cf57465cc4d","analyzedAt":"2026-08-15T07:12:03.035Z","schemaVersion":2},"datasetVersion":"2026-08-15T22:17:37.221Z"}