pub enum ErrorKind {
Show 20 variants
InvalidInput,
AuthMissing,
AuthExpired,
HydraExpired,
CdpUnavailable,
UrlNotAllowed,
OrderingDisabled,
ConfirmationRequired,
QuoteChanged,
CartInvalid,
AddressMissing,
NotFound,
RateLimited,
OtpInvalid,
CaptchaRequired,
LoginExpired,
Api,
Network,
Io,
Parse,
}Expand description
Stable error categories. The snake_case names are part of the CLI’s
public interface: don’t rename them.
Variants§
InvalidInput
Bad arguments or input files.
AuthMissing
No session saved yet: run grab auth import.
AuthExpired
Grab rejected the session cookies (401) or they expired.
HydraExpired
The hydra device JWT is missing, expired or rejected and could not be re-minted.
The Chrome DevTools endpoint could not be reached or misbehaved.
UrlNotAllowed
A request URL was not on the allowlist.
OrderingDisabled
Ordering is disabled in config (allow_ordering = false).
ConfirmationRequired
An order needs an interactive confirmation or --yes <quote-id>.
QuoteChanged
The fresh quote differs from the one the user confirmed.
CartInvalid
The local cart is empty or invalid against the menu.
AddressMissing
No saved delivery address (location cookie) in the session.
NotFound
Something requested does not exist (merchant, item, order, voucher).
RateLimited
Grab answered 429.
OtpInvalid
grab auth login --otp: the code was wrong or already used.
CaptchaRequired
The login page demanded an interactive captcha a headless tab can’t do.
LoginExpired
The pending grab auth login expired (or none was started).
Api
Grab answered with an error we don’t map more precisely.
Network
Network / TLS / timeout.
Io
Local file system error.
Parse
A response or file didn’t have the expected shape.