feat: map more errors, rate limits

This commit is contained in:
Nevo David 2026-02-11 20:31:14 +07:00
parent 7f7c336939
commit d929c96792
2 changed files with 10 additions and 3 deletions

View file

@ -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,

View file

@ -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() {