π¨ The ultimate agentic social media scheduling tool π€
TypeScript nextjsopen-sourceopen-source-social-media-scheduling-toolosspostiz-cloudpostiz-hostedredisscheduling-toolsocial-media-scheduling-tooltypescript
fix(instagram): map the Trial Reel publish limit error to a readable message
Gilad Resisi66d210186deb
diff --git a/libraries/nestjs-libraries/src/integrations/social/instagram.provider.ts b/libraries/nestjs-libraries/src/integrations/social/instagram.provider.tsindex dbfea721e..098eb25a6 100644--- a/libraries/nestjs-libraries/src/integrations/social/instagram.provider.ts+++ b/libraries/nestjs-libraries/src/integrations/social/instagram.provider.ts@@ -120,6 +120,13 @@ export class InstagramProvidervalue: "This account doesn't support Trial Reels",};}+ if (body.indexOf('2207078') > -1) {+ return {+ type: 'bad-body' as const,+ value:+ 'Instagram Trial Reel publish limit reached for this account, please try again later or publish the post as a regular Reel',+ };+ }if (body.indexOf('REVOKED_ACCESS_TOKEN') > -1 ||