{"record":{"id":"670a3d946717f50b","repo":"BerriAI/litellm","slug":"request-failed-e","errorCode":null,"errorMessage":"Request failed: {e}","messagePattern":"Request failed: (.+?)","errorType":"exception","errorClass":"BlackForestLabsError","httpStatus":500,"severity":"error","filePath":"litellm/llms/black_forest_labs/image_edit/handler.py","lineNumber":160,"sourceCode":"            input=prompt,\n            api_key=\"\",\n            additional_args={\n                \"complete_input_dict\": data,\n                \"api_base\": complete_url,\n                \"headers\": headers,\n            },\n        )\n\n        # Make initial request\n        try:\n            response: Final = sync_client.post(\n                url=complete_url,\n                headers=headers,\n                json=data,\n                timeout=timeout,\n            )\n        except Exception as e:\n            raise BlackForestLabsError(\n                status_code=500,\n                message=f\"Request failed: {e}\",\n            )\n\n        # Poll for result\n        final_response: Final = self._poll_for_result_sync(\n            initial_response=response,\n            headers=headers,\n            sync_client=sync_client,\n        )\n\n        # Transform response\n        return self.config.transform_image_edit_response(\n            model=model,\n            raw_response=final_response,\n            logging_obj=logging_obj,\n        )\n","sourceCodeStart":142,"sourceCodeEnd":178,"githubUrl":"https://github.com/BerriAI/litellm/blob/6c2dcb801bf2b75c18f1bb24140e7cf57465cc4d/litellm/llms/black_forest_labs/image_edit/handler.py#L142-L178","documentation":"Error \"Request failed: {e}\" thrown in BerriAI/litellm.","triggerScenarios":"Thrown at litellm/llms/black_forest_labs/image_edit/handler.py:160 when the library encounters an invalid state.","commonSituations":"See trigger scenarios.","solutions":["Check network connectivity to the BFL API; see the wrapped exception."],"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"}