VM_STATE_CONFLICT
The sandbox is in a state that doesn't allow that action.
HTTP status: 409
Why this happens
The sandbox's underlying VM is in a state that doesn't allow this action (booting, stopping, errored).
How to recover
Refetch the sandbox; act once status is steady.
Branching on this code
TypeScript
import { ApiError } from "@firecase/sdk";
try {
await firecase.someCall();
} catch (e) {
if (e instanceof ApiError && e.code === "VM_STATE_CONFLICT") {
// recover here
}
throw e;
}