{"record":{"id":"d916f79371630b19","repo":"BerriAI/litellm","slug":"failed-to-sign-request-with-provided-oci-signer","errorCode":null,"errorMessage":"Failed to sign request with provided oci_signer: {e}. The signer must implement the OCI SDK Signer interface with a do_request_sign(request, enforce_content_headers=True) method. See: https://docs.oracle.com/en-us/iaas/tools/python/latest/api/signing.html","messagePattern":"Failed to sign request with provided oci_signer: (.+?)\\. The signer must implement the OCI SDK Signer interface with a do_request_sign\\(request, enforce_content_headers=True\\) method\\. See: https://docs\\.oracle\\.com/en-us/iaas/tools/python/latest/api/signing\\.html","errorType":"exception","errorClass":"OCIError","httpStatus":500,"severity":"error","filePath":"litellm/llms/oci/common_utils.py","lineNumber":232,"sourceCode":"    body: Final = json.dumps(request_data).encode(\"utf-8\")\n    method: Final = str(optional_params.get(\"method\", \"POST\")).upper()\n\n    if method not in {\"POST\", \"GET\", \"PUT\", \"DELETE\", \"PATCH\"}:\n        raise ValueError(f\"Unsupported HTTP method: {method}\")\n\n    prepared_headers: Final = {**headers}\n    prepared_headers.setdefault(\"content-type\", \"application/json\")\n    prepared_headers.setdefault(\"content-length\", str(len(body)))\n\n    request_wrapper: Final = OCIRequestWrapper(method=method, url=api_base, headers=prepared_headers, body=body)\n\n    if oci_signer is None:\n        raise ValueError(\"oci_signer cannot be None when calling sign_with_oci_signer\")\n\n    try:\n        oci_signer.do_request_sign(request_wrapper, enforce_content_headers=True)\n    except Exception as e:\n        raise OCIError(\n            status_code=500,\n            message=(\n                f\"Failed to sign request with provided oci_signer: {e}. \"\n                \"The signer must implement the OCI SDK Signer interface with a \"\n                \"do_request_sign(request, enforce_content_headers=True) method. \"\n                \"See: https://docs.oracle.com/en-us/iaas/tools/python/latest/api/signing.html\"\n            ),\n        ) from e\n\n    headers.update(request_wrapper.headers)\n    return headers, body\n\n\ndef sign_with_manual_credentials(\n    headers: dict,\n    optional_params: dict,\n    request_data: dict,\n    api_base: str,","sourceCodeStart":214,"sourceCodeEnd":250,"githubUrl":"https://github.com/BerriAI/litellm/blob/77b7c6c40c0c5aa5fbcb1d6a1825ac39ca8829b8/litellm/llms/oci/common_utils.py#L214-L250","documentation":"Error \"Failed to sign request with provided oci_signer: {e}. The signer must implement the OCI SDK Signer interface with a do_request_sign(request, enforce_content_headers=True) method. See: https://docs.oracle.com/en-us/iaas/tools/python/latest/api/signing.html\" thrown in BerriAI/litellm.","triggerScenarios":"Thrown at litellm/llms/oci/common_utils.py:232 when the library encounters an invalid state.","commonSituations":"See trigger scenarios.","solutions":["Ensure the provided signer implements the OCI SDK Signer interface with do_request_sign(request, enforce_content_headers=True); see https://docs.oracle.com/en-us/iaas/tools/python/latest/api/signing.html and the wrapped error {e}."],"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"}