Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

SendMp4AsSticker() errors "AxiosError: Request failed with status code 550" when attempting to send a mp4-file or DataURL #3261

Open
1 task done
TVARecordings opened this issue Dec 27, 2024 · 0 comments

Comments

@TVARecordings
Copy link

Are you using the latest version of the library?

  • I have checked and am using the latest version of the library.

What type of session are you experiencing this issue on?

Multi-device and I have set multiDevice to true in my config OR am using the --multi-device flag

What type of host account are you experiencing this issue on?

Business account

Mode

EASY API/CLI

Current Behavior

When attempting to SendMp4AsSticker() as follows:
(Example code below error)

await client.sendMp4AsSticker(from, dataUrl, {
crop: false,
startTime: '00:00:00.0',
endTime: '00:00:10.0',
fps: 25,
logs: true,
loop: 0,
square: '512',
}, {
author: `🤖 Ameca ${day}/${month}/${year}`,
pack: `📱 www.tva-community.chat`,
cropPosition: 'center',
keepScale: true,
});

and as:

await client.sendMp4AsSticker(from, compressedFilepath, {
crop: false,
startTime: '00:00:00.0',
endTime: '00:00:10.0',
fps: 25,
logs: true,
loop: 0,
square: '512',
}, {
author: `🤖 Ameca ${day}/${month}/${year}`,
pack: `📱 www.tva-community.chat`,
cropPosition: 'center',
keepScale: true,
});

Axios returns the error: AxiosError: Request failed with status code 550

Full error:

550 VIDEO PROCESSING ERROR
Error during compression or sending sticker: AxiosError: Request failed with status code 550
at settle (E:\AmecaCore\node_modules\axios\dist\node\axios.cjs:2019:12)
at IncomingMessage.handleStreamEnd (E:\AmecaCore\node_modules\axios\dist\node\axios.cjs:3135:11)
at IncomingMessage.emit (node:events:536:35)
at endReadableNT (node:internal/streams/readable:1698:12)
at process.processTicksAndRejections (node:internal/process/task_queues:90:21)
at Axios.request (E:\AmecaCore\node_modules\axios\dist\node\axios.cjs:4287:41)
at process.processTicksAndRejections (node:internal/process/task_queues:105:5) {
code: 'ERR_BAD_RESPONSE',
config: {
transitional: {
silentJSONParsing: true,
forcedJSONParsing: true,
clarifyTimeoutError: false
},
adapter: [ 'xhr', 'http', 'fetch' ],
transformRequest: [ [Function: transformRequest] ],
transformResponse: [ [Function: transformResponse] ],
timeout: 0,
xsrfCookieName: 'XSRF-TOKEN',
xsrfHeaderName: 'X-XSRF-TOKEN',
maxContentLength: 1500000,
maxBodyLength: 20000000,
env: { FormData: [Function], Blob: [class Blob] },
validateStatus: [Function: validateStatus],
headers: Object [AxiosHeaders] {
Accept: 'application/json, text/plain, /',
'Content-Type': 'application/json',
'User-Agent': 'axios/1.7.7',
'Content-Length': '413392',
'Accept-Encoding': 'gzip, compress, deflate, br'
},
method: 'post',
url: 'https://sticker-api.openwa.dev/convertMp4BufferToWebpDataUrl',
data: '{"file":"data:video/mp4;base64,AAAAIGZ0eXBpc29tAAACAGlzb21pc28yYXZjMW1wNDEAAAAIZnJlZQAErhBtZGF0AAAC9wYF///z3EXpvebZSLeWLNgg2SPu73gyNjQgLSBjb3JlIDE2NCByMzE5OCBkYTE0ZGY1IC0gSC4yNjQvTVBFRy00IEFWQyBjb2RlYyAtIENvcHlsZWZ0IDIwMDMtMjAyNCAtIGh0dHA6Ly93d3cudmlkZW9sYW4ub3JnL3gyNjQuaHRtbCAtIG9wdGlvbnM6IGNhYmFjPTEgcmVmPTUgZGVibG9jaz0xOjA6MCBhbmFseXNlPTB4MzoweDExMyBtZT1oZXggc3VibWU9OCBwc3k9MSBwc3lfcmQ9MS4wMDowLjAwIG1peGVkX3JlZj0xIG1lX3JhbmdlPTE2IGNocm9tYV9tZT0xIHRyZWxsaXM9MiA4eDhkY3Q9MSBjcW09MCBkZWFkem9uZT0yMSwxMSBmYXN0X3Bza2lwPTEgY2hyb21hX3FwX29mZnNldD0tMiB0aHJlYWRzPTI4IGxvb2thaGVhZF90aHJlYWRzPTQgc2xpY2VkX3RocmVhZHM9MCBucj0wIGRlY2ltYXRlPTEgaW50ZXJsYWNlZD0wIGJsdXJheV9jb21wYXQ9MCBj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+Zi3RPiqx9bkLs8CWCLPjGQoEaUZuEQSPHl1GjBeoBnGGzueE5That/2Rx0PO/FVpWx2Jlzp51Wt2qi4b99rQbZFugMDT+9nUv1vIuxtBfk2YwpNghlszMDkGf9+IR5EuxaU33uT1pGejFXcDbKsLE/MrdBUTREAuOlMRVx5Nd9mLE0l09sasXNfQJ9DRJnJHx5BLhuClWv0AD2M4LmQxqBAiTbdYZQamXoAWCBoBkiXxBJeB/0kpaH+ZqJWS6e5pI8YG4yalEx/JapM6TJk9SfFC1LEPHAZReuW+6Y32fGX/dZ1xVqMAtAqm9jOHZc2/1T0pyXkktowmimKm8ohDzcveyhzUmyJJRcny8oys6eFRIGPGt8U8JM0GgBtAfsr0Wi7PkBIL80LiXIaqPg4ttNCvHVlAR4w0niANFNfZo2CQgX9abbsJkdt9HJTeRN4Lgin+TMHsYzVpW8vYbLzGZHysvwbflHxSqKJ0qJnPbuYfdY60EK+ceGfAQF0ydSgQTHXCB9BDYJIWPE+yrAuKAQkts9z6RuukmDjEc4NBsj//n6SX7JqzcvSpfjrJcFJnw0gRmsxwkGw30rUFW+f/VFV1HexPcgDzHaT1SoU2BnRNp4yjcFseSArv3lA9DxVCc+Rv1D+GDefu7FSI+OBKWqW5oSsCgktnSPsDK7m7nI0nSX3NumTfcIaAiOjUJMnpu9OP+Q1+YWbD'... 403388 more characters
},
request: <ref *1> ClientRequest {
_events: [Object: null prototype] {
abort: [Function (anonymous)],
aborted: [Function (anonymous)],
connect: [Function (anonymous)],
error: [Function (anonymous)],
socket: [Function (anonymous)],
timeout: [Function (anonymous)],
finish: [Function: requestOnFinish]
},
_eventsCount: 7,
_maxListeners: undefined,
outputData: [],
outputSize: 0,
writable: true,
destroyed: true,
_last: false,
chunkedEncoding: false,
shouldKeepAlive: true,
maxRequestsOnConnectionReached: false,
_defaultKeepAlive: true,
useChunkedEncodingByDefault: true,
sendDate: false,
_removedConnection: false,
_removedContLen: false,
_removedTE: false,
strictContentLength: false,
_contentLength: '413392',
_hasBody: true,
_trailer: '',
finished: true,
_headerSent: true,
_closed: true,
_header: 'POST /convertMp4BufferToWebpDataUrl HTTP/1.1\r\n' +
'Accept: application/json, text/plain, /\r\n' +
'Content-Type: application/json\r\n' +
'User-Agent: axios/1.7.7\r\n' +
'Content-Length: 413392\r\n' +
'Accept-Encoding: gzip, compress, deflate, br\r\n' +
'Host: sticker-api.openwa.dev\r\n' +
'Connection: keep-alive\r\n' +
'\r\n',
_keepAliveTimeout: 0,
_onPendingData: [Function: nop],
agent: Agent {
_events: [Object: null prototype],
_eventsCount: 2,
_maxListeners: undefined,
defaultPort: 443,
protocol: 'https:',
options: [Object: null prototype],
requests: [Object: null prototype] {},
sockets: [Object: null prototype] {},
freeSockets: [Object: null prototype],
keepAliveMsecs: 1000,
keepAlive: true,
maxSockets: Infinity,
maxFreeSockets: 256,
scheduling: 'lifo',
maxTotalSockets: Infinity,
totalSocketCount: 3,
maxCachedSessions: 100,
_sessionCache: [Object],
[Symbol(shapeMode)]: false,
[Symbol(kCapture)]: false
},
socketPath: undefined,
method: 'POST',
maxHeaderSize: undefined,
insecureHTTPParser: undefined,
joinDuplicateHeaders: undefined,
path: '/convertMp4BufferToWebpDataUrl',
_ended: true,
res: IncomingMessage {
_events: [Object],
_readableState: [ReadableState],
_maxListeners: undefined,
socket: null,
httpVersionMajor: 1,
httpVersionMinor: 1,
httpVersion: '1.1',
complete: true,
rawHeaders: [Array],
rawTrailers: [],
joinDuplicateHeaders: undefined,
aborted: false,
upgrade: false,
url: '',
method: null,
statusCode: 550,
statusMessage: '',
client: [TLSSocket],
_consuming: true,
_dumped: false,
req: [Circular *1],
_eventsCount: 4,
responseUrl: 'https://sticker-api.openwa.dev/convertMp4BufferToWebpDataUrl',
redirects: [],
[Symbol(shapeMode)]: true,
[Symbol(kCapture)]: false,
[Symbol(kHeaders)]: [Object],
[Symbol(kHeadersCount)]: 24,
[Symbol(kTrailers)]: null,
[Symbol(kTrailersCount)]: 0
},
aborted: false,
timeoutCb: null,
upgradeOrConnect: false,
parser: null,
maxHeadersCount: null,
reusedSocket: false,
host: 'sticker-api.openwa.dev',
protocol: 'https:',
_redirectable: Writable {
_events: [Object],
_writableState: [WritableState],
_maxListeners: undefined,
_options: [Object],
_ended: true,
_ending: true,
_redirectCount: 0,
_redirects: [],
_requestBodyLength: 413392,
_requestBodyBuffers: [],
_eventsCount: 3,
_onNativeResponse: [Function (anonymous)],
_currentRequest: [Circular *1],
_currentUrl: 'https://sticker-api.openwa.dev/convertMp4BufferToWebpDataUrl',
[Symbol(shapeMode)]: true,
[Symbol(kCapture)]: false
},
[Symbol(shapeMode)]: false,
[Symbol(kCapture)]: false,
[Symbol(kBytesWritten)]: 0,
[Symbol(kNeedDrain)]: false,
[Symbol(corked)]: 0,
[Symbol(kChunkedBuffer)]: [],
[Symbol(kChunkedLength)]: 0,
[Symbol(kSocket)]: TLSSocket {
_tlsOptions: [Object],
_secureEstablished: true,
_securePending: false,
_newSessionPending: false,
_controlReleased: true,
secureConnecting: false,
_SNICallback: null,
servername: 'sticker-api.openwa.dev',
alpnProtocol: false,
authorized: true,
authorizationError: null,
encrypted: true,
_events: [Object: null prototype],
_eventsCount: 9,
connecting: false,
_hadError: false,
_parent: null,
_host: 'sticker-api.openwa.dev',
_closeAfterHandlingError: false,
_readableState: [ReadableState],
_writableState: [WritableState],
allowHalfOpen: false,
_maxListeners: undefined,
_sockname: null,
_pendingData: null,
_pendingEncoding: '',
server: undefined,
_server: null,
ssl: [TLSWrap],
_requestCert: true,
_rejectUnauthorized: true,
timeout: 5000,
parser: null,
_httpMessage: null,
[Symbol(alpncallback)]: null,
[Symbol(res)]: [TLSWrap],
[Symbol(verified)]: true,
[Symbol(pendingSession)]: null,
[Symbol(async_id_symbol)]: -1,
[Symbol(kHandle)]: [TLSWrap],
[Symbol(lastWriteQueueSize)]: 0,
[Symbol(timeout)]: Timeout {
_idleTimeout: 5000,
_idlePrev: [TimersList],
_idleNext: [Timeout],
_idleStart: 24086,
_onTimeout: [Function: bound ],
_timerArgs: undefined,
_repeat: null,
_destroyed: false,
[Symbol(refed)]: false,
[Symbol(kHasPrimitive)]: false,
[Symbol(asyncId)]: 5038,
[Symbol(triggerId)]: 5036,
[Symbol(kAsyncContextFrame)]: undefined
},
[Symbol(kBuffer)]: null,
[Symbol(kBufferCb)]: null,
[Symbol(kBufferGen)]: null,
[Symbol(shapeMode)]: true,
[Symbol(kCapture)]: false,
[Symbol(kSetNoDelay)]: false,
[Symbol(kSetKeepAlive)]: true,
[Symbol(kSetKeepAliveInitialDelay)]: 1,
[Symbol(kBytesRead)]: 0,
[Symbol(kBytesWritten)]: 0,
[Symbol(connect-options)]: [Object]
},
[Symbol(kOutHeaders)]: [Object: null prototype] {
accept: [Array],
'content-type': [Array],
'user-agent': [Array],
'content-length': [Array],
'accept-encoding': [Array],
host: [Array]
},
[Symbol(errored)]: null,
[Symbol(kHighWaterMark)]: 16384,
[Symbol(kRejectNonStandardBodyWrites)]: false,
[Symbol(kUniqueHeaders)]: null
},
response: {
status: 550,
statusText: '',
headers: Object [AxiosHeaders] {
date: 'Fri, 27 Dec 2024 16:35:43 GMT',
'content-type': 'text/html; charset=utf-8',
'transfer-encoding': 'chunked',
connection: 'keep-alive',
'x-powered-by': 'Express',
'cf-cache-status': 'DYNAMIC',
'report-to': '{"endpoints":[{"url":"https:\/\/a.nel.cloudflare.com\/report\/v4?s=kqTGFL5F2lSyH8xKxvS%2Bh5yB0QTAxPVVQ3oQEKndKcXdPLYRcG%2FoWWgy2nGwtKZEgOUlLMG8TuacNmUFkM%2FjylA7o5FTgE3alAd327LBUCAC4xa0qx1YM%2Fv2qevrAAMoTxqYWYMPwA3SDlXVl%2BBxzKw4OU84"}],"group":"cf-nel","max_age":604800}',
nel: '{"success_fraction":0,"report_to":"cf-nel","max_age":604800}',
server: 'cloudflare',
'cf-ray': '8f8ab9b29a470e37-AMS',
'alt-svc': 'h3=":443"; ma=86400',
'server-timing': 'cfL4;desc="?proto=TCP&rtt=8114&min_rtt=6380&rtt_var=3213&sent=22&recv=309&lost=0&retrans=0&sent_bytes=2822&recv_bytes=414696&delivery_rate=426332&cwnd=252&unsent_bytes=0&cid=60cad6e11a468da4&ts=721&x=0"'
},
config: {
transitional: [Object],
adapter: [Array],
transformRequest: [Array],
transformResponse: [Array],
timeout: 0,
xsrfCookieName: 'XSRF-TOKEN',
xsrfHeaderName: 'X-XSRF-TOKEN',
maxContentLength: 1500000,
maxBodyLength: 20000000,
env: [Object],
validateStatus: [Function: validateStatus],
headers: [Object [AxiosHeaders]],
method: 'post',
url: 'https://sticker-api.openwa.dev/convertMp4BufferToWebpDataUrl',
data: '{"file":"data:video/mp4;base64,AAAAIGZ0eXBpc29tAAACAGlzb21pc28yYXZjMW1wNDEAAAAIZnJlZQAErhBtZGF0AAAC9wYF///z3EXpvebZSLeWLNgg2SPu73gyNjQgLSBjb3JlIDE2NCByMzE5OCBkYTE0ZGY1IC0gSC4yNjQvTVBFRy00IEFWQyBjb2RlYyAtIENvcHlsZWZ0IDIwMDMtMjAyNCAtIGh0dHA6Ly93d3cudmlkZW9sYW4ub3JnL3gyNjQuaHRtbCAtIG9wdGlvbnM6IGNhYmFjPTEgcmVmPTUgZGVibG9jaz0xOjA6MCBhbmFseXNlPTB4MzoweDExMyBtZT1oZXggc3VibWU9OCBwc3k9MSBwc3lfcmQ9MS4wMDowLjAwIG1peGVkX3JlZj0xIG1lX3JhbmdlPTE2IGNocm9tYV9tZT0xIHRyZWxsaXM9MiA4eDhkY3Q9MSBjcW09MCBkZWFkem9uZT0yMSwxMSBmYXN0X3Bza2lwPTEgY2hyb21hX3FwX29mZnNldD0tMiB0aHJlYWRzPTI4IGxvb2thaGVhZF90aHJlYWRzPTQgc2xpY2VkX3RocmVhZHM9MCBucj0wIGRlY2ltYXRlPTEgaW50ZXJsYWNlZD0wIGJsdXJheV9jb21wYXQ9MCBjb25zdHJhaW5lZF9pbnRyYT0wIGJmcmFtZXM9MyBiX3B5cmFtaWQ9MiBiX2FkYXB0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Wx2Jlzp51Wt2qi4b99rQbZFugMDT+9nUv1vIuxtBfk2YwpNghlszMDkGf9+IR5EuxaU33uT1pGejFXcDbKsLE/MrdBUTREAuOlMRVx5Nd9mLE0l09sasXNfQJ9DRJnJHx5BLhuClWv0AD2M4LmQxqBAiTbdYZQamXoAWCBoBkiXxBJeB/0kpaH+ZqJWS6e5pI8YG4yalEx/JapM6TJk9SfFC1LEPHAZReuW+6Y32fGX/dZ1xVqMAtAqm9jOHZc2/1T0pyXkktowmimKm8ohDzcveyhzUmyJJRcny8oys6eFRIGPGt8U8JM0GgBtAfsr0Wi7PkBIL80LiXIaqPg4ttNCvHVlAR4w0niANFNfZo2CQgX9abbsJkdt9HJTeRN4Lgin+TMHsYzVpW8vYbLzGZHysvwbflHxSqKJ0qJnPbuYfdY60EK+ceGfAQF0ydSgQTHXCB9BDYJIWPE+yrAuKAQkts9z6RuukmDjEc4NBsj//n6SX7JqzcvSpfjrJcFJnw0gRmsxwkGw30rUFW+f/VFV1HexPcgDzHaT1SoU2BnRNp4yjcFseSArv3lA9DxVCc+Rv1D+GDefu7FSI+OBKWqW5oSsCgktnSPsDK7m7nI0nSX3NumTfcIaAiOjUJMnpu9OP+Q1+YWbD'... 403388 more characters
},
request: <ref *1> ClientRequest {
_events: [Object: null prototype],
_eventsCount: 7,
_maxListeners: undefined,
outputData: [],
outputSize: 0,
writable: true,
destroyed: true,
_last: false,
chunkedEncoding: false,
shouldKeepAlive: true,
maxRequestsOnConnectionReached: false,
_defaultKeepAlive: true,
useChunkedEncodingByDefault: true,
sendDate: false,
_removedConnection: false,
_removedContLen: false,
_removedTE: false,
strictContentLength: false,
_contentLength: '413392',
_hasBody: true,
_trailer: '',
finished: true,
_headerSent: true,
_closed: true,
_header: 'POST /convertMp4BufferToWebpDataUrl HTTP/1.1\r\n' +
'Accept: application/json, text/plain, /\r\n' +
'Content-Type: application/json\r\n' +
'User-Agent: axios/1.7.7\r\n' +
'Content-Length: 413392\r\n' +
'Accept-Encoding: gzip, compress, deflate, br\r\n' +
'Host: sticker-api.openwa.dev\r\n' +
'Connection: keep-alive\r\n' +
'\r\n',
_keepAliveTimeout: 0,
_onPendingData: [Function: nop],
agent: [Agent],
socketPath: undefined,
method: 'POST',
maxHeaderSize: undefined,
insecureHTTPParser: undefined,
joinDuplicateHeaders: undefined,
path: '/convertMp4BufferToWebpDataUrl',
_ended: true,
res: [IncomingMessage],
aborted: false,
timeoutCb: null,
upgradeOrConnect: false,
parser: null,
maxHeadersCount: null,
reusedSocket: false,
host: 'sticker-api.openwa.dev',
protocol: 'https:',
_redirectable: [Writable],
[Symbol(shapeMode)]: false,
[Symbol(kCapture)]: false,
[Symbol(kBytesWritten)]: 0,
[Symbol(kNeedDrain)]: false,
[Symbol(corked)]: 0,
[Symbol(kChunkedBuffer)]: [],
[Symbol(kChunkedLength)]: 0,
[Symbol(kSocket)]: [TLSSocket],
[Symbol(kOutHeaders)]: [Object: null prototype],
[Symbol(errored)]: null,
[Symbol(kHighWaterMark)]: 16384,
[Symbol(kRejectNonStandardBodyWrites)]: false,
[Symbol(kUniqueHeaders)]: null
},
data: 'VIDEO PROCESSING ERROR'
},
status: 550
}

EXAMPLE CODE:

const decryptedMedia = await decryptMedia(message.id)

// File path
const filename = `media_${Date.now()}.mp4`;
const filepath = `E:/AmecaCore/media/sendMp4AsSticker/${filename}`;
const compressedFilename = `compressed_${Date.now()}.mp4`;
const compressedFilepath = `E:/AmecaCore/media/sendMp4AsSticker/${compressedFilename}`;

// Save the decrypted file
fs.writeFileSync(filepath, decryptedMedia, 'base64');
await sleep(2500);
console.log(`Original file saved as: ${filepath}`);

try {
  // Get video metadata using execSync and ffprobe
  const ffprobePath = `E:/AmecaCore/ffmpeg-full_build/bin/ffprobe.exe`;
  const command = `"${ffprobePath}" -v quiet -print_format json -show_format -show_streams "${filepath}"`;

  const metadataJson = execSync(command).toString();
  const metadata = JSON.parse(metadataJson);

  if (!metadata || !metadata.format || !metadata.format.duration) {
    console.error('Error retrieving metadata:', metadataJson);
    return;
  }

  const duration = parseFloat(metadata.format.duration); // Duration in seconds
  const maxFileSizeBytes = 1 * 1024 * 1024; // Max size in bytes = 1 MB
  const maxBitrate = Math.floor((maxFileSizeBytes * 8) / duration); // Max bitrate in bps
  console.log(`Maximum bitrate: ${maxBitrate} bps (${(maxBitrate / 1000).toFixed(2)} kbps)`);

  // Set the ffmpeg command with dynamic bitrate and no audio
  const ffmpegPath = `E:/AmecaCore/ffmpeg-full_build/bin/ffmpeg.exe`;
  const ffmpegCommand = `${ffmpegPath} -i "${filepath}" -vf "scale='if(gt(iw,ih),-1,512):if(gt(iw,ih),512,-1)'" -c:v libx264 -preset slow -b:v ${maxBitrate} -maxrate 1M -bufsize 2M -an -loglevel error "${compressedFilepath}"`;
  console.log(`Executing: ${ffmpegCommand}`);

  execSync(ffmpegCommand);
  console.log(`Compression completed. File saved as: ${compressedFilepath}`);

  // Read the compressed file into buffer and convert to base64
  const fileBuffer = fs.readFileSync(compressedFilepath);
  const base64File = fileBuffer.toString('base64');

  // Create a DataURL from the base64 file
  const dataUrl = `data:video/mp4;base64,${base64File}`;

  // Send the file as a sticker via DataURL
  await client.sendMp4AsSticker(from, dataUrl, {
    crop: false,
    startTime: '00:00:00.0',
    endTime: '00:00:10.0',
    fps: 25,
    logs: true,
    loop: 0,
    square: '512',
  }, {
    author: `🤖 Ameca ${day}/${month}/${year}`,
    pack: `📱 www.tva-community.chat`,
    cropPosition: 'center',
    keepScale: true,
  });

} catch (error) {
  console.error('Error during compression or sending sticker:', error);
  // Send the file as a sticker via DataURL
  await client.sendMp4AsSticker(from, decryptedMedia, {
    crop: false,
    startTime: '00:00:00.0',
    endTime: '00:00:10.0',
    fps: 25,
    logs: true,
    loop: 0,
    square: '512',
  }, {
    author: `🤖 Ameca ${day}/${month}/${year}`,
    pack: `📱 www.tva-community.chat`,
    cropPosition: 'center',
    keepScale: true,
  });
}

Expected Behavior

Expected it to send the mp4, as a sticker; like it used to do in the past (quite a long time ago)

Steps To Reproduce

See "Current Behaviour"

create() code OR full CLI command + CONFIG

const configObject = {
  sessionId: 'AmecaCore',
  authTimeout: 0,
  blockCrashLogs: true, 
  cacheEnabled: true, 
  cachedPatch: true, 
  callTimeout: 3000000,  
  discord: 'mine',
  ezqr: false,
  headless: true,
  logFile: false,
  messagePreprocessor: "AUTO_DECRYPT", //"AUTO_DECRYPT","SCRUB"
  onError: "LOG_AND_FALSE",
  popup: false,
  qrTimeout: 0,
  useChrome: true,
  waitForRipeSessionTimeout: 0,
  killProcessOnBan: true,
  screenshotOnInitializationBrowserError: false,
  timeout: 300000,
};

DEBUG INFO

{
  "WA_VERSION": "2.3000.1019086198",
  "WA_AUTOMATE_VERSION": "4.74.2 UPDATE AVAILABLE: 4.75.0",
  "BROWSER_VERSION": "Chrome/131.0.6778.205",
  "START_TS": 1735317325383,
  "RAM_INFO": "Total: 68.62 GB | Free: 53.38 GB",
  "PPTR_VERSION": "23.6.0",
  "LATEST_VERSION": false,
  "CLI": false,
  "PATCH_HASH": "CACHED-5d443",
  "LAUNCH_TIME_MS": 9497,
  "ACC_TYPE": "BUSINESS",
  "chats": 139,
  "messages": 117,
  "contacts": 14254,
  "isBiz": true,
  "isMd": true,
  "INSTANCE_ID": "36da26f5-6e2d-4c44-87ba-bc58c53f2ef7"
}

Environment

- OS: Windows 10
- Node: 22.12.0
- npm: 10.8.3

Screenshots/Logs

No response

Anything else?

Please fix, it's been broken for a while now.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant