{"record":{"id":"54f68dcfe852c897","repo":"BerriAI/litellm","slug":"replicateexception-original-exception-message","errorCode":null,"errorMessage":"ReplicateException - {original_exception.message}","messagePattern":"ReplicateException - (.+?)","errorType":"exception","errorClass":"AuthenticationError","httpStatus":401,"severity":"error","filePath":"litellm/litellm_core_utils/exception_mapping_utils.py","lineNumber":647,"sourceCode":"            response=getattr(original_exception, \"response\", None),\n        )\n    elif exception_type == \"ModelError\":\n        raise BadRequestError(\n            message=f\"ReplicateException - {error_str}\",\n            model=model,\n            llm_provider=\"replicate\",\n            response=getattr(original_exception, \"response\", None),\n        )\n    elif \"Request was throttled\" in error_str:\n        raise RateLimitError(\n            message=f\"ReplicateException - {error_str}\",\n            llm_provider=\"replicate\",\n            model=model,\n            response=getattr(original_exception, \"response\", None),\n        )\n    elif hasattr(original_exception, \"status_code\"):\n        if original_exception.status_code == 401:\n            raise AuthenticationError(\n                message=f\"ReplicateException - {original_exception.message}\",\n                llm_provider=\"replicate\",\n                model=model,\n                response=getattr(original_exception, \"response\", None),\n            )\n        elif original_exception.status_code == 400 or original_exception.status_code == 413:\n            raise BadRequestError(\n                message=f\"ReplicateException - {original_exception.message}\",\n                model=model,\n                llm_provider=\"replicate\",\n                response=getattr(original_exception, \"response\", None),\n            )\n        elif original_exception.status_code == 422:\n            raise UnprocessableEntityError(\n                message=f\"ReplicateException - {original_exception.message}\",\n                model=model,\n                llm_provider=\"replicate\",\n                response=getattr(original_exception, \"response\", None),","sourceCodeStart":629,"sourceCodeEnd":665,"githubUrl":"https://github.com/BerriAI/litellm/blob/6c2dcb801bf2b75c18f1bb24140e7cf57465cc4d/litellm/litellm_core_utils/exception_mapping_utils.py#L629-L665","documentation":"Error \"ReplicateException - {original_exception.message}\" thrown in BerriAI/litellm.","triggerScenarios":"Thrown at litellm/litellm_core_utils/exception_mapping_utils.py:647 when the library encounters an invalid state.","commonSituations":"See trigger scenarios.","solutions":["Inspect the Replicate error message; check model version and inputs."],"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-15T17:31:12.345Z"}