π¨ The ultimate agentic social media scheduling tool π€
TypeScript nextjsopen-sourceopen-source-social-media-scheduling-toolosspostiz-cloudpostiz-hostedredisscheduling-toolsocial-media-scheduling-tooltypescript
fix(threads): retry publish when Threads has not found the container yet (4279009)
Gilad Resisi5536d8a73a9c
diff --git a/libraries/nestjs-libraries/src/integrations/social/threads.provider.ts b/libraries/nestjs-libraries/src/integrations/social/threads.provider.tsindex 4538ea239..cac4d40bc 100644--- a/libraries/nestjs-libraries/src/integrations/social/threads.provider.ts+++ b/libraries/nestjs-libraries/src/integrations/social/threads.provider.ts@@ -40,7 +40,7 @@ export class ThreadsProvider extends SocialAbstract implements SocialProvider {override handleErrors(body: string):| {- type: 'refresh-token' | 'bad-body';+ type: 'refresh-token' | 'bad-body' | 'retry';value: string;}| undefined {@@ -71,6 +71,13 @@ export class ThreadsProvider extends SocialAbstract implements SocialProvider {"One of the media URLs is invalid or inaccessible, make sure it's being uploaded to Postiz first",};}+ if (body.includes('4279009')) {+ return {+ type: 'retry',+ value:+ 'Threads could not find the media container yet, please try again in a few seconds',+ };+ }if (body.includes('text must be at most 500 characters')) {return {type: 'bad-body',