Intenté subir un video a Twitter a través de Carga fragmentada usando la biblioteca Twit npmm https://www.npmjs.com/package/twit y todo lo que recibo es este error:
allErrors: [ { código: 324, mensaje: 'No se ha realizado preprocesamiento para este video' } ]
Aquí está mi código:
let T = new Twit({ consumer_key: oAuthConsumerKey, consumer_secret: oAuthConsumerSecret, access_token: access_token, access_token_secret: access_token_secret, timeout_ms: 60 * 1000, strictSSL: true, }); let filePath =...; T.postMediaChunked({ file_path: filePath }, function (err, data, response) { fs.unlink(filePath, () => { }); //Delete File if (data) { let mediaIdString = data['media_id_string']; let { error } = await T.post('media/metadata/create', metaPrams); if (error) { throw error; } //If we got here, then no errors.Cool let mediaIds = []; mediaIds.push(mediaIds); //And then I post the status here let params = { status: bodyText }; params['media_ids'] = mediaIds; let { error, data } = await T.post('statuses/update', params); //The error I keep getting back is this allErrors: [ { code: 324, message: 'Pre-processing has not been done for this video' } ] } if (err) { throw err; } });Por favor, ¿qué puedo hacer para solucionar esto? Gracias.