Skip to content

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

fix(instagram): reuse the existing 2207082 retry mapping instead of shadowing it

Gilad Resisi94751bb0d349
diff --git a/libraries/nestjs-libraries/src/integrations/social/instagram.provider.ts b/libraries/nestjs-libraries/src/integrations/social/instagram.provider.ts
index 1aae0e7a8..269d53f74 100644
--- a/libraries/nestjs-libraries/src/integrations/social/instagram.provider.ts
+++ b/libraries/nestjs-libraries/src/integrations/social/instagram.provider.ts
@@ -206,14 +206,6 @@ export class InstagramProvider
};
}
- if (body.indexOf('2207082') > -1) {
- return {
- type: 'bad-body' as const,
- value:
- 'Instagram could not process this video. If you attached audio to a video that has no sound track, set the original video volume to 0 and try again',
- };
- }
-
if (body.indexOf('2207023') > -1) {
return {
type: 'bad-body' as const,
@@ -385,8 +377,9 @@ export class InstagramProvider
if (body.indexOf('2207082') > -1) {
return {
type: 'retry' as const,
- value: 'Could not upload your media',
- }
+ value:
+ 'Instagram could not process this video. If you attached audio to a video that has no sound track, set the original video volume to 0 and try again',
+ };
}
if (body.indexOf('2207077') > -1) {