Skip to main content

LiumRentOutcomeUnknownError

from lium.sdk import LiumRentOutcomeUnknownError

Defined in lium.sdk.exceptions.

up() could not confirm a rent's result; check ps() before renting again, a pod may be billing.

Raised when the first request got no answer (a timeout, a dropped connection, a 5xx) or was rate-limited, and the repeat got no answer or failed too; or when the API answered without a pod id. No new pod was listed yet, but the server may still be completing a request, so a pod may exist and bill. idempotency_key is the key the requests carried.

LiumRentOutcomeUnknownError(
message: str,
*,
idempotency_key: str | None = None,
pod_name: str | None = None,
executor_id: str | None = None,
candidates: list[str] | None = None,
endpoint: str | None = None,
payload: dict | None = None,
code: str | None = None,
hint: str | None = None,
request_id: str | None = None
)

Catching it​

LiumRentOutcomeUnknownError subclasses LiumError → Exception, so a handler for any of those also catches it.

from lium.sdk import LiumRentOutcomeUnknownError

try:
... # any SDK call
except LiumRentOutcomeUnknownError as e:
print(e, e.code, e.hint, e.request_id)
FieldMeaning
codemachine-readable error code from the API, when it sent one
hintwhat to try next, when the API suggested something
request_idthe API request id; quote it when you contact support

Attributes​

NameTypeDescription
idempotency_key
pod_name
executor_id
candidates
endpoint
payload