Upstash Ratelimit Error
Raised when the rate limit is reached in UpstashRatelimitHandler
UpstashRatelimitError(
self,
message: str,
type: Literal['token', 'request'],
limit: Optional[int] = None,
reset: Optional[float] = None
)| Name | Type | Description |
|---|---|---|
message* | str | error message |
type* | str | The kind of the limit which was reached. One of "token" or "request" |
limit | Optional[int] | Default: NoneThe limit which was reached. Passed when type is request |
reset | Optional[int] | Default: Noneunix timestamp in milliseconds when the limits are reset. Passed when type is request |