Enum trovo::ErrorStatus
source · [−]#[repr(i16)]
pub enum ErrorStatus {
Show 36 variants
InternalFetch,
InternalTimeout,
InvalidParameters,
InternalUnknown,
Conflict,
InvalidUser,
AuthorizationFailed,
InvalidAuthCode1,
MessageSpam,
InvalidCategory,
Moderated1,
Moderated2,
AccountBlocked,
InvalidHeader,
InvalidScope,
InvalidAccessToken,
RateLimitExceeded,
MissingChatPermission,
InvalidShardValue,
MissingShardTokenPermission,
InvalidAuthCode2,
UsedAuthCode,
RefreshTokenExpired,
InvalidRefreshToken,
AccessTokenExpired,
InvalidGrantType,
InvalidRedirectUri,
InvalidClientSecret,
AccessTokenLimit,
UnauthorizedScope,
BannedInChannel,
SlowMode,
FollowerOnly,
UnauthorizedHyperlink,
ModeratedMessage,
Unknown,
}
Expand description
Error codes returned by the Trovo api
Variants
InternalFetch
Internal service failed to fetch data. Please try again.
InternalTimeout
Internal server error. Try send the request again. In most cases, it is caused by timeout of an internal service.
InvalidParameters
Server received invalid parameters. Please check the params you requested.
InternalUnknown
Unknown or uncategorized internal server error. Please report to developer@trovo.live
Conflict
Conflict. Please try again.
InvalidUser
The user does not exist.
AuthorizationFailed
Authorization failed. Please double check your token or the auth status.
InvalidAuthCode1
Authorization Code doesn’t exist or has expired
MessageSpam
To avoid spam, one user cannot send the same message in 30 sec to a channel, or send more than 1 message in 1 sec across all platforms. Streamers, Mods and Admins does not have this limit. Give your chatbot mod access then you will not get this limit.
InvalidCategory
The category does not exist.
Moderated1
Content conflicts with Trovo moderation rule.
Moderated2
Content conflicts with Trovo moderation rule.
AccountBlocked
The user account has been blocked by Trovo. To unblock the user, please contact us at customer@trovo.live
InvalidHeader
Error in the request header.
InvalidScope
Please try again with a valid scope.
InvalidAccessToken
Double the access token you passed in is valid or not.
RateLimitExceeded
API rate limit exceeded. (You may apply for rate limit increase by contacting Trovo staff)
MissingChatPermission
No permission to send chats to this channel.
InvalidShardValue
Invalid shard value. (Please make sure total_shard > 0 and 0 <= current_shard < total_shard)
MissingShardTokenPermission
No permission to get the sharding token. Get shard token API is currently open to trusted developers only. You may email developer@trovo.live to get whitelisted.
InvalidAuthCode2
Authorization Code doesn’t exist or has expired
UsedAuthCode
Authorization Code has been used
RefreshTokenExpired
Refresh token has expired
InvalidRefreshToken
Invalid refresh token.
AccessTokenExpired
Access token has expired
InvalidGrantType
Invalid grant type
InvalidRedirectUri
Invalid Redirect URI
InvalidClientSecret
Invalid client secret
AccessTokenLimit
Access token num is greater than 50, you should wait for the old access token to expire before you can refresh again.
UnauthorizedScope
Scope is not authorized by the user.
BannedInChannel
The user is banned from chatting in this channel. Please contact the streamer/mods to unban the user.
SlowMode
Channel is currently in slow mode. Please follow the slow mode rule to chat.
FollowerOnly
The streamer has set the channel to be follower only chat. Please follow the channel to chat.
UnauthorizedHyperlink
The user does not have permission to send hyperlinks in this channel. The channel is in block hyperlink mode. Please check the hyperlink mode rules.
ModeratedMessage
Your message was moderated due to conflicts with the channel’s moderation settings.
Unknown
Unknown or uncategorized error. Please report to developer@trovo.live.
Trait Implementations
sourceimpl Debug for ErrorStatus
impl Debug for ErrorStatus
sourceimpl<'de> Deserialize<'de> for ErrorStatus
impl<'de> Deserialize<'de> for ErrorStatus
sourcefn deserialize<D>(deserializer: D) -> Result<Self, D::Error> where
D: Deserializer<'de>,
fn deserialize<D>(deserializer: D) -> Result<Self, D::Error> where
D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
sourceimpl PartialEq<ErrorStatus> for ErrorStatus
impl PartialEq<ErrorStatus> for ErrorStatus
sourceimpl Serialize for ErrorStatus
impl Serialize for ErrorStatus
impl Eq for ErrorStatus
impl StructuralEq for ErrorStatus
impl StructuralPartialEq for ErrorStatus
Auto Trait Implementations
impl RefUnwindSafe for ErrorStatus
impl Send for ErrorStatus
impl Sync for ErrorStatus
impl Unpin for ErrorStatus
impl UnwindSafe for ErrorStatus
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
sourceimpl<Q, K> Equivalent<K> for Q where
Q: Eq + ?Sized,
K: Borrow<Q> + ?Sized,
impl<Q, K> Equivalent<K> for Q where
Q: Eq + ?Sized,
K: Borrow<Q> + ?Sized,
sourcefn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to key
and return true
if they are equal.
sourceimpl<T> Instrument for T
impl<T> Instrument for T
sourcefn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
sourcefn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
impl<V, T> VZip<V> for T where
V: MultiLane<T>,
impl<V, T> VZip<V> for T where
V: MultiLane<T>,
fn vzip(self) -> V
sourceimpl<T> WithSubscriber for T
impl<T> WithSubscriber for T
sourcefn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self> where
S: Into<Dispatch>,
fn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self> where
S: Into<Dispatch>,
Attaches the provided Subscriber
to this type, returning a
WithDispatch
wrapper. Read more
sourcefn with_current_subscriber(self) -> WithDispatch<Self>
fn with_current_subscriber(self) -> WithDispatch<Self>
Attaches the current default Subscriber
to this type, returning a
WithDispatch
wrapper. Read more