π¨ The ultimate agentic social media scheduling tool π€
TypeScript nextjsopen-sourceopen-source-social-media-scheduling-toolosspostiz-cloudpostiz-hostedredisscheduling-toolsocial-media-scheduling-tooltypescript
fix(x): map remaining known error responses to readable messages
Gilad Resisif477777ee008
diff --git a/libraries/nestjs-libraries/src/integrations/social/x.provider.ts b/libraries/nestjs-libraries/src/integrations/social/x.provider.tsindex 51512fbdf..baff596fe 100644--- a/libraries/nestjs-libraries/src/integrations/social/x.provider.ts+++ b/libraries/nestjs-libraries/src/integrations/social/x.provider.ts@@ -232,6 +232,51 @@ export class XProvider extends SocialAbstract implements SocialProvider {'The video you are trying to post is longer than 2 minutes, which is not allowed for this account',};}+ if (+ body.includes(+ 'This user is not allowed to post a video longer than 10 minutes'+ )+ ) {+ return {+ type: 'bad-body',+ value:+ 'The video you are trying to post is longer than 10 minutes, which is not allowed for this account',+ };+ }+ if (body.includes('Your account is temporarily locked')) {+ return {+ type: 'bad-body',+ value:+ 'Your X account is temporarily locked, log in to x.com to unlock it and then try again',+ };+ }+ if (body.includes('Crypto addresses are prohibited')) {+ return {+ type: 'bad-body',+ value:+ 'X does not allow crypto addresses in posts for the first 7 days after connecting the account',+ };+ }+ if (body.includes('Your media IDs are invalid')) {+ return {+ type: 'bad-body',+ value:+ 'X rejected the attached media, please re-upload the media and try again',+ };+ }+ if (body.includes('not authorized to create or publish articles')) {+ return {+ type: 'bad-body',+ value: 'Publishing articles on X requires an X Premium subscription',+ };+ }+ if (body.includes('Please include either text or media in your Tweet')) {+ return {+ type: 'bad-body',+ value:+ 'One of the posts in this thread has no text or media, please add some text or remove it',+ };+ }return undefined;}