π¨ The ultimate agentic social media scheduling tool π€
TypeScript nextjsopen-sourceopen-source-social-media-scheduling-toolosspostiz-cloudpostiz-hostedredisscheduling-toolsocial-media-scheduling-tooltypescript
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.tsindex 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 PinterestProvidervalue: '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,