π¨ The ultimate agentic social media scheduling tool π€
TypeScript nextjsopen-sourceopen-source-social-media-scheduling-toolosspostiz-cloudpostiz-hostedredisscheduling-toolsocial-media-scheduling-tooltypescript
feat: better tiktok error
Nevo Davidee76490a9a9e
diff --git a/libraries/nestjs-libraries/src/integrations/social/tiktok.provider.ts b/libraries/nestjs-libraries/src/integrations/social/tiktok.provider.tsindex 0f26a51f7..aadeb3910 100644--- a/libraries/nestjs-libraries/src/integrations/social/tiktok.provider.ts+++ b/libraries/nestjs-libraries/src/integrations/social/tiktok.provider.ts@@ -194,7 +194,7 @@ export class TiktokProvider extends SocialAbstract implements SocialProvider {if (body.indexOf('picture_size_check_failed') > -1) {return {type: 'bad-body' as const,- value: 'Picture size is invalid',+ value: 'Picture / Video size is invalid',};}@@ -393,10 +393,12 @@ export class TiktokProvider extends SocialAbstract implements SocialProvider {}if (status === 'FAILED') {+ const handleError = this.handleErrors(JSON.stringify(post));throw new BadBody('titok-error-upload',JSON.stringify(post),- Buffer.from(JSON.stringify(post))+ Buffer.from(JSON.stringify(post)),+ handleError?.value || '',);}