Skip to main content

LiumRentOutcomeUnknownError

from lium.sdk import LiumRentOutcomeUnknownError

Defined in lium.sdk.exceptions.

A rent was posted, its answer was lost, no pod was found, and the repeat of the POST was refused (a 409 "still processing" or a 400 from the executor lock): the first request may still create a pod. Run ps() before renting again.

LiumRentOutcomeUnknownError(
message: str = '',
*,
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