Skip to content

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

fix: friendly message when Threads reports an UNKNOWN container error

Gilad Resisie6251b25ead5
diff --git a/libraries/nestjs-libraries/src/integrations/social/threads.provider.ts b/libraries/nestjs-libraries/src/integrations/social/threads.provider.ts
index cac4d40bc..26a4a123e 100644
--- a/libraries/nestjs-libraries/src/integrations/social/threads.provider.ts
+++ b/libraries/nestjs-libraries/src/integrations/social/threads.provider.ts
@@ -193,7 +193,9 @@ export class ThreadsProvider extends SocialAbstract implements SocialProvider {
this.identifier,
JSON.stringify({ status, error_message }),
'{}',
- error_message || 'Threads could not process the media'
+ error_message && error_message !== 'UNKNOWN'
+ ? error_message
+ : 'Threads could not process the media, please check the media format and try again'
);
}