Skip to content

πŸ“¨ The ultimate agentic social media scheduling tool πŸ€–

feat: better tiktok errors

Nevo Davidbd82f3e4cafd
diff --git a/libraries/nestjs-libraries/src/integrations/social/tiktok.provider.ts b/libraries/nestjs-libraries/src/integrations/social/tiktok.provider.ts
index e74868b1c..b324a5a1a 100644
--- a/libraries/nestjs-libraries/src/integrations/social/tiktok.provider.ts
+++ b/libraries/nestjs-libraries/src/integrations/social/tiktok.provider.ts
@@ -86,7 +86,8 @@ export class TiktokProvider extends SocialAbstract implements SocialProvider {
if (body.indexOf('app_version_check_failed') > -1) {
return {
type: 'bad-body' as const,
- value: 'In order to use the TikTok upload feature, you have to update your app to the latest version',
+ value:
+ 'In order to use the TikTok upload feature, you have to update your app to the latest version',
};
}
@@ -141,6 +142,14 @@ export class TiktokProvider extends SocialAbstract implements SocialProvider {
};
}
+ if (body.indexOf('spam_risk_too_many_pending_share') > -1) {
+ return {
+ type: 'bad-body' as const,
+ value:
+ 'TikTok limit the maximum of pending posts to 5, please check your TikTok inbox at your TikTok mobile app',
+ };
+ }
+
if (body.indexOf('spam_risk_user_banned_from_posting') > -1) {
return {
type: 'bad-body' as const,