BerriAI/litellm · error · OCIError
Failed to sign request with provided oci_signer
Error message
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 What it means
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.
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}.
When it happens
Trigger: Thrown at litellm/llms/oci/common_utils.py:232 when the library encounters an invalid state.
Common situations: See trigger scenarios.
AI-assisted analysis of BerriAI/litellm@77b7c6c40c (2026-08-18).
Data as JSON: /api/errors/d916f79371630b19.
Report an issue: GitHub.
Appendix: source
Thrown at litellm/llms/oci/common_utils.py:232
body: Final = json.dumps(request_data).encode("utf-8")
method: Final = str(optional_params.get("method", "POST")).upper()
if method not in {"POST", "GET", "PUT", "DELETE", "PATCH"}:
raise ValueError(f"Unsupported HTTP method: {method}")
prepared_headers: Final = {**headers}
prepared_headers.setdefault("content-type", "application/json")
prepared_headers.setdefault("content-length", str(len(body)))
request_wrapper: Final = OCIRequestWrapper(method=method, url=api_base, headers=prepared_headers, body=body)
if oci_signer is None:
raise ValueError("oci_signer cannot be None when calling sign_with_oci_signer")
try:
oci_signer.do_request_sign(request_wrapper, enforce_content_headers=True)
except Exception as e:
raise OCIError(
status_code=500,
message=(
f"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"
),
) from e
headers.update(request_wrapper.headers)
return headers, body
def sign_with_manual_credentials(
headers: dict,
optional_params: dict,
request_data: dict,
api_base: str,View on GitHub (pinned to 77b7c6c40c)