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
{ "success": false, "error": { "name": "ProtocolError", "message": "Please set arguments in request json body, not in params. Protocol error (Runtime.callFunctionOn): Promise was collected" } }
And I see this in the logs
middleware -> error ProtocolError: Protocol error (Runtime.callFunctionOn): Promise was collected
at <instance_members_initializer> (/usr/src/app/node_modules/puppeteer-core/lib/cjs/puppeteer/common/CallbackRegistry.js:94:14)
at new Callback (/usr/src/app/node_modules/puppeteer-core/lib/cjs/puppeteer/common/CallbackRegistry.js:98:16)
at CallbackRegistry.create (/usr/src/app/node_modules/puppeteer-core/lib/cjs/puppeteer/common/CallbackRegistry.js:23:26)
at Connection._rawSend (/usr/src/app/node_modules/puppeteer-core/lib/cjs/puppeteer/cdp/Connection.js:90:26)
at CdpCDPSession.send (/usr/src/app/node_modules/puppeteer-core/lib/cjs/puppeteer/cdp/CDPSession.js:66:33)
at #evaluate (/usr/src/app/node_modules/puppeteer-core/lib/cjs/puppeteer/cdp/ExecutionContext.js:360:50)
at ExecutionContext.evaluate (/usr/src/app/node_modules/puppeteer-core/lib/cjs/puppeteer/cdp/ExecutionContext.js:275:36)
at IsolatedWorld.evaluate (/usr/src/app/node_modules/puppeteer-core/lib/cjs/puppeteer/cdp/IsolatedWorld.js:100 :30)
at CdpFrame.evaluate (/usr/src/app/node_modules/puppeteer-core/lib/cjs/puppeteer/api/Frame.js:341:43)
at CdpFrame. (/usr/src/app/node_modules/puppeteer-core/lib/cjs/puppeteer/util/decorators.js:104:27)
Although the text is going out (good) it is breaking because it returns an error and no reference to the sent message.
Expected Behavior
Send actually works, but ALSO reports that it works so as not to break any downstream use of the wa-automate. Currently completely unusable.
Are you 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
/sendText { "to": "[email protected]", "content": "Hello World!" }
*I receive the text
but.... the response is this:
{ "success": false, "error": { "name": "ProtocolError", "message": "Please set arguments in request json body, not in params. Protocol error (Runtime.callFunctionOn): Promise was collected" } }
And I see this in the logs
middleware -> error ProtocolError: Protocol error (Runtime.callFunctionOn): Promise was collected
at <instance_members_initializer> (/usr/src/app/node_modules/puppeteer-core/lib/cjs/puppeteer/common/CallbackRegistry.js:94:14)
at new Callback (/usr/src/app/node_modules/puppeteer-core/lib/cjs/puppeteer/common/CallbackRegistry.js:98:16)
at CallbackRegistry.create (/usr/src/app/node_modules/puppeteer-core/lib/cjs/puppeteer/common/CallbackRegistry.js:23:26)
at Connection._rawSend (/usr/src/app/node_modules/puppeteer-core/lib/cjs/puppeteer/cdp/Connection.js:90:26)
at CdpCDPSession.send (/usr/src/app/node_modules/puppeteer-core/lib/cjs/puppeteer/cdp/CDPSession.js:66:33)
at #evaluate (/usr/src/app/node_modules/puppeteer-core/lib/cjs/puppeteer/cdp/ExecutionContext.js:360:50)
at ExecutionContext.evaluate (/usr/src/app/node_modules/puppeteer-core/lib/cjs/puppeteer/cdp/ExecutionContext.js:275:36)
at IsolatedWorld.evaluate (/usr/src/app/node_modules/puppeteer-core/lib/cjs/puppeteer/cdp/IsolatedWorld.js:100 :30)
at CdpFrame.evaluate (/usr/src/app/node_modules/puppeteer-core/lib/cjs/puppeteer/api/Frame.js:341:43)
at CdpFrame. (/usr/src/app/node_modules/puppeteer-core/lib/cjs/puppeteer/util/decorators.js:104:27)
Although the text is going out (good) it is breaking because it returns an error and no reference to the sent message.
Expected Behavior
Send actually works, but ALSO reports that it works so as not to break any downstream use of the wa-automate. Currently completely unusable.
Steps To Reproduce
Compose file
version: "3"
services:
owa:
image: openwa/wa-automate:latest
hostname: owa
init: true
restart: on-failure
tty: true
stdin_open: true
volumes:
- "sessions:/sessions"
ports:
- "8085:8085"
- "8002:8002"
- "7000:7000"
environment:
WA_DISABLE_SPINS: 'true'
WA_LICENSE_KEY: 'my licence'
WA_WEBHOOK: 'http://mywebhook.com'
WA_PORT: 8085
volumes:
sessions:
Run it, send as above.
create() code OR full CLI command + CONFIG
No response
DEBUG INFO
Environment
Screenshots/Logs
No response
Anything else?
No response
The text was updated successfully, but these errors were encountered: