Skip to content

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

feat: instagram better error

Nevo Davide3b3b82faee0
diff --git a/libraries/nestjs-libraries/src/integrations/social/instagram.provider.ts b/libraries/nestjs-libraries/src/integrations/social/instagram.provider.ts
index 6fc04acb0..cc7f095f6 100644
--- a/libraries/nestjs-libraries/src/integrations/social/instagram.provider.ts
+++ b/libraries/nestjs-libraries/src/integrations/social/instagram.provider.ts
@@ -95,7 +95,7 @@ export class InstagramProvider
if (body.toLowerCase().indexOf('session has been invalidated') > -1) {
return {
type: 'refresh-token' as const,
- value: 'Please re-authenticate your Instagram account',
+ value: 'You session has been invalidated, this can usually happen from frequent posting, please re-authenticate, and wait 1-2 days before posting again',
};
}
@@ -316,14 +316,6 @@ export class InstagramProvider
};
}
- if (status === 401) {
- return {
- type: 'bad-body' as const,
- value:
- 'An unknown error occurred, please try again later or contact support',
- };
- }
-
return undefined;
}