{"record":{"id":"823978c5c39da8a1","repo":"BerriAI/litellm","slug":"missing-required-oci-credentials-oci-user-oci-fi","errorCode":null,"errorMessage":"Missing required OCI credentials: oci_user, oci_fingerprint, oci_tenancy, and at least one of oci_key or oci_key_file. These can also be supplied via environment variables: {_OCI_USER_ENV}, {_OCI_FINGERPRINT_ENV}, {_OCI_TENANCY_ENV}, {_OCI_KEY_ENV} (or {_OCI_KEY_FILE_ENV}). Alternatively, provide an oci_signer object from the OCI SDK.","messagePattern":"Missing required OCI credentials: oci_user, oci_fingerprint, oci_tenancy, and at least one of oci_key or oci_key_file\\. These can also be supplied via environment variables: (.+?), (.+?), (.+?), (.+?) \\(or (.+?)\\)\\. Alternatively, provide an oci_signer object from the OCI SDK\\.","errorType":"exception","errorClass":"OCIError","httpStatus":401,"severity":"error","filePath":"litellm/llms/oci/common_utils.py","lineNumber":261,"sourceCode":"    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,\n) -> tuple[dict, bytes]:\n    \"\"\"Sign a request using manually provided OCI credentials (user/fingerprint/tenancy/key).\"\"\"\n    creds: Final = resolve_oci_credentials(optional_params)\n    oci_user: Final = creds[\"oci_user\"]\n    oci_fingerprint: Final = creds[\"oci_fingerprint\"]\n    oci_tenancy: Final = creds[\"oci_tenancy\"]\n    oci_key: Final = creds[\"oci_key\"]\n    oci_key_file: Final = creds[\"oci_key_file\"]\n\n    if not oci_user or not oci_fingerprint or not oci_tenancy or not (oci_key or oci_key_file):\n        raise OCIError(\n            status_code=401,\n            message=(\n                \"Missing required OCI credentials: oci_user, oci_fingerprint, oci_tenancy, \"\n                \"and at least one of oci_key or oci_key_file. \"\n                \"These can also be supplied via environment variables: \"\n                f\"{_OCI_USER_ENV}, {_OCI_FINGERPRINT_ENV}, {_OCI_TENANCY_ENV}, {_OCI_KEY_ENV} (or {_OCI_KEY_FILE_ENV}). \"\n                \"Alternatively, provide an oci_signer object from the OCI SDK.\"\n            ),\n        )\n\n    method: Final = str(optional_params.get(\"method\", \"POST\")).upper()\n    body: Final = json.dumps(request_data).encode(\"utf-8\")\n    parsed: Final = urlparse(api_base)\n    path: Final = parsed.path or \"/\"\n    host: Final = parsed.netloc\n\n    date: Final = formatdate(usegmt=True)\n    content_type: Final = headers.get(\"content-type\", \"application/json\")","sourceCodeStart":243,"sourceCodeEnd":279,"githubUrl":"https://github.com/BerriAI/litellm/blob/77b7c6c40c0c5aa5fbcb1d6a1825ac39ca8829b8/litellm/llms/oci/common_utils.py#L243-L279","documentation":"Error \"Missing required OCI credentials: oci_user, oci_fingerprint, oci_tenancy, and at least one of oci_key or oci_key_file. These can also be supplied via environment variables: {_OCI_USER_ENV}, {_OCI_FINGERPRINT_ENV}, {_OCI_TENANCY_ENV}, {_OCI_KEY_ENV} (or {_OCI_KEY_FILE_ENV}). Alternatively, provide an oci_signer object from the OCI SDK.\" thrown in BerriAI/litellm.","triggerScenarios":"Thrown at litellm/llms/oci/common_utils.py:261 when the library encounters an invalid state.","commonSituations":"See trigger scenarios.","solutions":["Provide oci_user, oci_fingerprint, oci_tenancy and oci_key or oci_key_file via params or the OCI_* environment variables.","Alternatively pass an oci_signer object from the OCI SDK."],"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"}