Skip to content

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

fix(instagram): report untaggable collaborators instead of "Unknown Error"

Gilad Resisic1fd5cffbe8a
diff --git a/libraries/nestjs-libraries/src/integrations/social/instagram.provider.ts b/libraries/nestjs-libraries/src/integrations/social/instagram.provider.ts
index 4f049fa47..19e59ebab 100644
--- a/libraries/nestjs-libraries/src/integrations/social/instagram.provider.ts
+++ b/libraries/nestjs-libraries/src/integrations/social/instagram.provider.ts
@@ -428,6 +428,14 @@ export class InstagramProvider
};
}
+ if (body.indexOf('2207018') > -1) {
+ return {
+ type: 'bad-body' as const,
+ value:
+ "One of the collaborators could not be tagged, please check the username is correct, the account is public, and that it allows collaborator invites",
+ };
+ }
+
if (body.indexOf('param collaborators is not allowed') > -1) {
return {
type: 'bad-body' as const,