Skip to content

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

feat: map more errors, rate limits

Nevo Davidd929c96792cc
diff --git a/libraries/nestjs-libraries/src/integrations/social/instagram.provider.ts b/libraries/nestjs-libraries/src/integrations/social/instagram.provider.ts
index 42aa7303f..111a36163 100644
--- a/libraries/nestjs-libraries/src/integrations/social/instagram.provider.ts
+++ b/libraries/nestjs-libraries/src/integrations/social/instagram.provider.ts
@@ -33,7 +33,7 @@ export class InstagramProvider
'instagram_manage_comments',
'instagram_manage_insights',
];
- override maxConcurrentJob = 200;
+ override maxConcurrentJob = 400;
editor = 'normal' as const;
dto = InstagramDto;
maxLength() {
@@ -67,7 +67,7 @@ export class InstagramProvider
if (body.indexOf('2207081') > -1) {
return {
type: 'bad-body' as const,
- value: 'This account doesn\'t support Trial Reels',
+ value: "This account doesn't support Trial Reels",
};
}
@@ -269,6 +269,13 @@ export class InstagramProvider
};
}
+ if (body.indexOf('190,') > -1) {
+ return {
+ type: 'bad-body' as const,
+ value: 'The account is missing some permissions to perform this action, please re-add the account and allow all permissions',
+ };
+ }
+
if (body.indexOf('36001') > -1) {
return {
type: 'bad-body' as const,
diff --git a/libraries/nestjs-libraries/src/integrations/social/tiktok.provider.ts b/libraries/nestjs-libraries/src/integrations/social/tiktok.provider.ts
index 032ee1dbe..f21f88bc9 100644
--- a/libraries/nestjs-libraries/src/integrations/social/tiktok.provider.ts
+++ b/libraries/nestjs-libraries/src/integrations/social/tiktok.provider.ts
@@ -31,7 +31,7 @@ export class TiktokProvider extends SocialAbstract implements SocialProvider {
'user.info.profile',
'user.info.stats',
];
- override maxConcurrentJob = 1; // TikTok has strict video upload limits
+ override maxConcurrentJob = 300;
dto = TikTokDto;
editor = 'normal' as const;
maxLength() {