Skip to content

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

fix(pinterest): retry transient 'Something went wrong on our end' errors

Gilad Resisi18a312b6baee
diff --git a/libraries/nestjs-libraries/src/integrations/social/pinterest.provider.ts b/libraries/nestjs-libraries/src/integrations/social/pinterest.provider.ts
index 5d58cdef6..c0a71e29b 100644
--- a/libraries/nestjs-libraries/src/integrations/social/pinterest.provider.ts
+++ b/libraries/nestjs-libraries/src/integrations/social/pinterest.provider.ts
@@ -121,6 +121,13 @@ export class PinterestProvider
value: 'You can upload a maximum of 5 images per post on Pinterest.',
};
}
+ if (body.indexOf('Something went wrong on our end') > -1) {
+ return {
+ type: 'retry' as const,
+ value:
+ 'Pinterest reported a temporary error on their side. Please try posting again.',
+ };
+ }
if (body.indexOf('Unable to reach the URL') > -1) {
return {
type: 'retry' as const,