You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When I use the function client.sendFile(to, pathOrBase64, options?) to send a PDF file in base64, passing the "type" property as "document" in the options object, the file is not sent.
Before, I used the client.setLimit('maxFileSize',900857600) function to change the maximum file size to 900mb.
However, if I send a file larger than +-60mb, an error is returned and the file is not sent.
Maybe this is not an application error, if so, please forgive me and if you can, indicate the solution.
Environment
WPPConnect version(s): 1.35.1
WA-JS version(s): 3.14.0
Browser: Chrome 127.0.6533.119
OS: Linux Ubuntu 24.04.5 LTS
Node version: 18.20.4
WhatsApp version: 2.3000.1017390231
MultiDevice (BETA): no
Error returned
ProtocolError: Runtime.callFunctionOn timed out. Increase the 'protocolTimeout' setting in launch/connect calls for a higher timeout if needed.
at <instance_members_initializer> (/app/node_modules/puppeteer-core/lib/cjs/puppeteer/common/CallbackRegistry.js:94:14)
at new Callback (/app/node_modules/puppeteer-core/lib/cjs/puppeteer/common/CallbackRegistry.js:98:16)
at CallbackRegistry.create (/app/node_modules/puppeteer-core/lib/cjs/puppeteer/common/CallbackRegistry.js:23:26)
at Connection._rawSend (/app/node_modules/puppeteer-core/lib/cjs/puppeteer/cdp/Connection.js:90:26)
at CdpCDPSession.send (/app/node_modules/puppeteer-core/lib/cjs/puppeteer/cdp/CDPSession.js:66:33)
at #evaluate (/app/node_modules/puppeteer-core/lib/cjs/puppeteer/cdp/ExecutionContext.js:363:50)
at ExecutionContext.evaluate (/app/node_modules/puppeteer-core/lib/cjs/puppeteer/cdp/ExecutionContext.js:278:36)
at IsolatedWorld.evaluate (/app/node_modules/puppeteer-core/lib/cjs/puppeteer/cdp/IsolatedWorld.js:100:30)
at CdpFrame.evaluate (/app/node_modules/puppeteer-core/lib/cjs/puppeteer/api/Frame.js:346:43)
at CdpFrame.<anonymous> (/app/node_modules/puppeteer-core/lib/cjs/puppeteer/util/decorators.js:109:27)
Description
When I use the function client.sendFile(to, pathOrBase64, options?) to send a PDF file in base64, passing the "type" property as "document" in the options object, the file is not sent.
Before, I used the client.setLimit('maxFileSize',900857600) function to change the maximum file size to 900mb.
However, if I send a file larger than +-60mb, an error is returned and the file is not sent.
Maybe this is not an application error, if so, please forgive me and if you can, indicate the solution.
Environment
Error returned
Code used to set the maximum file upload limit
client.setLimit('maxFileSize', 900857600);
Code used to send the file
The text was updated successfully, but these errors were encountered: