π¨ The ultimate agentic social media scheduling tool π€
TypeScript nextjsopen-sourceopen-source-social-media-scheduling-toolosspostiz-cloudpostiz-hostedredisscheduling-toolsocial-media-scheduling-tooltypescript
fix(x): readable message when Too Many Requests retries are exhausted
Gilad Resisi1ae4a3b78e0a
diff --git a/libraries/nestjs-libraries/src/integrations/social/x.provider.ts b/libraries/nestjs-libraries/src/integrations/social/x.provider.tsindex 51512fbdf..3dad17040 100644--- a/libraries/nestjs-libraries/src/integrations/social/x.provider.ts+++ b/libraries/nestjs-libraries/src/integrations/social/x.provider.ts@@ -161,6 +161,12 @@ export class XProvider extends SocialAbstract implements SocialProvider {value: 'X is currently unavailable, please try again later',};}+ if (body.includes('Too Many Requests')) {+ return {+ type: 'retry',+ value: 'X rate limit reached, please try again later',+ };+ }if (body.includes('maximum of one cashtag')) {return {type: 'bad-body',