waha icon indicating copy to clipboard operation
waha copied to clipboard

[WEBJS] - /auth/request-code

Open lizaiuu opened this issue 8 months ago • 2 comments

Desc

I'm trying to request an authentication code to log in using a Web.js engine, but I'm getting an error.

Version

Get the WAHA version by calling GET /api/version

{
        "version": "2026.3.1",
        "engine": "WEBJS",
        "tier": "PLUS",
        "browser": "/usr/bin/chromium",
        "platform": "linux/x64",
        "worker": {
            "id": null
        }
}

Responses

{ "statusCode": 500, "timestamp": "2026-03-05T09:15:21.666Z", "exception": { "message": "t", "name": "t", "stack": "t: t\n at #evaluate (/app/node_modules/puppeteer-core/lib/cjs/puppeteer/cdp/ExecutionContext.js:391:56)\n at async ExecutionContext.evaluate (/app/node_modules/puppeteer-core/lib/cjs/puppeteer/cdp/ExecutionContext.js:277:16)\n at async IsolatedWorld.evaluate (/app/node_modules/puppeteer-core/lib/cjs/puppeteer/cdp/IsolatedWorld.js:100:16)\n at async CdpFrame.evaluate (/app/node_modules/puppeteer-core/lib/cjs/puppeteer/api/Frame.js:362:20)\n at async CdpPage.evaluate (/app/node_modules/puppeteer-core/lib/cjs/puppeteer/api/Page.js:818:20)\n at async WPage.evaluate (/app/dist/core/engines/webjs/WPage.js:13:20)\n at async WebjsClientPlus.requestPairingCode (/app/node_modules/whatsapp-web.js/src/Client.js:369:16)\n at async WhatsappSessionWebJSPlus.requestCode (/app/dist/core/engines/webjs/session.webjs.core.js:409:22)" }, "request": { "path": "/api/default_session_1/auth/request-code", "method": "POST", "body": { "phoneNumber": "52***" }, "query": {} }, "version": { "version": "2026.3.1", "engine": "WEBJS", "tier": "PLUS", "browser": "/usr/bin/chromium", "platform": "linux/x64", "worker": { "id": null } } }

lizaiuu avatar Mar 05 '26 07:03 lizaiuu

Try a new WPP engine https://waha.devlike.pro/docs/how-to/engines/

patron:PRO

devlikepro avatar Mar 05 '26 10:03 devlikepro

I am getting the same error in the same tier, could you find a solution?

gabrielsandrade avatar Mar 08 '26 11:03 gabrielsandrade