Skip to content

Not able to send images or documents #2469

@javatechgroup

Description

@javatechgroup

Description

[Description of the bug, When Issue Happens]

Environment

  • **Wppconnect-server version(s):**2.8.11
  • Browser: Chrome
  • OS: Window 11
  • Node version: 20
  • WhatsApp version: [e.g. 2.2126.14]
  • MultiDevice (BETA): yes/no
  • config.json: [Your src/config.json file content]

Steps to Reproduce

Login and try to send image/file

Log Output

error: 2026-02-22T10:38:48.365Z Runtime.callFunctionOn timed out. Increase the 'protocolTimeout' setting in launch/connect calls for a higher timeout if needed. - ProtocolError: Runtime.callFunctionOn timed out. Increase the 'protocolTimeout' setting in launch/connect calls for a higher timeout if needed.
at <instance_members_initializer> (E:\WPP\wppconnect-server\node_modules\puppeteer-core\lib\cjs\puppeteer\common\CallbackRegistry.js:103:14)
at new Callback (E:\WPP\wppconnect-server\node_modules\puppeteer-core\lib\cjs\puppeteer\common\CallbackRegistry.js:107:16)
at CallbackRegistry.create (E:\WPP\wppconnect-server\node_modules\puppeteer-core\lib\cjs\puppeteer\common\CallbackRegistry.js:25:26)
at Connection._rawSend (E:\WPP\wppconnect-server\node_modules\puppeteer-core\lib\cjs\puppeteer\cdp\Connection.js:108:26)
at CdpCDPSession.send (E:\WPP\wppconnect-server\node_modules\puppeteer-core\lib\cjs\puppeteer\cdp\CdpSession.js:74:33)
at #evaluate (E:\WPP\wppconnect-server\node_modules\puppeteer-core\lib\cjs\puppeteer\cdp\ExecutionContext.js:363:50)
at ExecutionContext.evaluate (E:\WPP\wppconnect-server\node_modules\puppeteer-core\lib\cjs\puppeteer\cdp\ExecutionContext.js:277:36)
at IsolatedWorld.evaluate (E:\WPP\wppconnect-server\node_modules\puppeteer-core\lib\cjs\puppeteer\cdp\IsolatedWorld.js:100:30)
at CdpFrame.evaluate (E:\WPP\wppconnect-server\node_modules\puppeteer-core\lib\cjs\puppeteer\api\Frame.js:362:43)
at CdpFrame. (E:\WPP\wppconnect-server\node_modules\puppeteer-core\lib\cjs\puppeteer\util\decorators.js:109:27)
at CdpPage.evaluate (E:\WPP\wppconnect-server\node_modules\puppeteer-core\lib\cjs\puppeteer\api\Page.js:830:43)
at E:\WPP\wppconnect-server\node_modules@wppconnect-team\wppconnect\dist\api\helpers\evaluate-and-return.js:99:56
at step (E:\WPP\wppconnect-server\node_modules@wppconnect-team\wppconnect\dist\api\helpers\evaluate-and-return.js:49:23)
at Object.next (E:\WPP\wppconnect-server\node_modules@wppconnect-team\wppconnect\dist\api\helpers\evaluate-and-return.js:30:53)
at E:\WPP\wppconnect-server\node_modules@wppconnect-team\wppconnect\dist\api\helpers\evaluate-and-return.js:24:71
at new Promise ()

Your Code

curl -X 'POST'
'http://localhost:21465/api/PAN/send-file-base64'
-H 'accept: /'
-H 'Authorization: Bearer $2b$10$h5VFSSn8cwv3NvLqbNt.O.dHJ8ZmbbPfCjX30Xn7H7hCCpVlUAh_2'
-H 'Content-Type: application/json'
-d '{
"phone": "7011544725",
"isGroup": false,
"isNewsletter": false,
"isLid": false,
"filename": "test.txt",
"caption": "caption for my file",
"base64": "data:application/text;base64,SGVsbG8gUGFua2Fq"
}'

Additional context / Screenshot

Working fine for text messages

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions