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
createGroup created groups with easyAPI
default approval mode: Require admin approval.
-- URL: http://xxxx:8085/setGroupApprovalMode
-- Data: {"args":{"groupId":"xxxxx@g.us","requireApproval":false}}
Set group approval mode response: {"success":true}
BUT
This does NOT change the admin approval mode. Instead it changes 'EDIT GROUP SETTINGS' permission (retureApproval=True sets editSettings to False and vice versa)
Expected Behavior
GroupApprovalMode permission should be set correctly
Steps To Reproduce
- in docker container
- using licenced version
- -- URL: http://xxx/setGroupApprovalMode
-- Data: {"args":{"groupId":"xxxxxx@g.us","requireApproval":true}}
-- Response: {"success":true}
but as described above, a different permission flag is toggled
create() code OR full CLI command + CONFIG
No response
DEBUG INFO
{
"WA_VERSION": "2.3000.1016015341",
"WA_AUTOMATE_VERSION": "4.72.1",
"BROWSER_VERSION": "HeadlessChrome/125.0.6422.141",
"START_TS": 1724828627164,
"RAM_INFO": "Total: 3.88 GB | Free: 2.81 GB",
"PPTR_VERSION": "19.11.1",
"LATEST_VERSION": true,
"CLI": true
}
Environment
- OS: Linux 5.13
- Node: 22.2.0
- npm: 10.8.1
Screenshots/Logs
Not sure if this console error is related
middleware -> error ProtocolError: Protocol error (Runtime.callFunctionOn): Promise was collected
at Callback (/usr/src/app/node_modules/puppeteer-core/lib/cjs/puppeteer/common/Connection.js:61:35)
at CallbackRegistry.create (/usr/src/app/node_modules/puppeteer-core/lib/cjs/puppeteer/common/Connection.js:106:26)
at Connection._rawSend (/usr/src/app/node_modules/puppeteer-core/lib/cjs/puppeteer/common/Connection.js:216:26)
at CDPSessionImpl.send (/usr/src/app/node_modules/puppeteer-core/lib/cjs/puppeteer/common/Connection.js:425:78)
at ExecutionContext._ExecutionContext_evaluate (/usr/src/app/node_modules/puppeteer-core/lib/cjs/puppeteer/common/ExecutionContext.js:240:46)
at process.processTicksAndRejections (node:internal/process/task_queues:95:5)
at async ExecutionContext.evaluate (/usr/src/app/node_modules/puppeteer-core/lib/cjs/puppeteer/common/ExecutionContext.js:146:16)
Anything else?
No response
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
createGroup created groups with easyAPI
default approval mode: Require admin approval.
-- URL: http://xxxx:8085/setGroupApprovalMode
-- Data: {"args":{"groupId":"xxxxx@g.us","requireApproval":false}}
Set group approval mode response: {"success":true}
BUT
This does NOT change the admin approval mode. Instead it changes 'EDIT GROUP SETTINGS' permission (retureApproval=True sets editSettings to False and vice versa)
Expected Behavior
GroupApprovalMode permission should be set correctly
Steps To Reproduce
-- Data: {"args":{"groupId":"xxxxxx@g.us","requireApproval":true}}
-- Response: {"success":true}
but as described above, a different permission flag is toggled
create() code OR full CLI command + CONFIG
No response
DEBUG INFO
{ "WA_VERSION": "2.3000.1016015341", "WA_AUTOMATE_VERSION": "4.72.1", "BROWSER_VERSION": "HeadlessChrome/125.0.6422.141", "START_TS": 1724828627164, "RAM_INFO": "Total: 3.88 GB | Free: 2.81 GB", "PPTR_VERSION": "19.11.1", "LATEST_VERSION": true, "CLI": true }Environment
Screenshots/Logs
Not sure if this console error is related
middleware -> error ProtocolError: Protocol error (Runtime.callFunctionOn): Promise was collected
at Callback (/usr/src/app/node_modules/puppeteer-core/lib/cjs/puppeteer/common/Connection.js:61:35)
at CallbackRegistry.create (/usr/src/app/node_modules/puppeteer-core/lib/cjs/puppeteer/common/Connection.js:106:26)
at Connection._rawSend (/usr/src/app/node_modules/puppeteer-core/lib/cjs/puppeteer/common/Connection.js:216:26)
at CDPSessionImpl.send (/usr/src/app/node_modules/puppeteer-core/lib/cjs/puppeteer/common/Connection.js:425:78)
at ExecutionContext._ExecutionContext_evaluate (/usr/src/app/node_modules/puppeteer-core/lib/cjs/puppeteer/common/ExecutionContext.js:240:46)
at process.processTicksAndRejections (node:internal/process/task_queues:95:5)
at async ExecutionContext.evaluate (/usr/src/app/node_modules/puppeteer-core/lib/cjs/puppeteer/common/ExecutionContext.js:146:16)
Anything else?
No response