Skip to content

Get stuck when sending a message, timeout error despite of a connected session #108

@AKhateeb

Description

@AKhateeb

Hi,

I have a working instance of the recent release of this repo (pulled container from Docker Hub). Yesterday at 2:00 PM GMT, the container started getting issues. When I tried to restart it, and after fully connecting the session (or reloading it from the cache), the following error was noticed (the container seems crashed)

> wwebjs-api@1.0.0 start
> node server.js

{"level":30,"time":1771567413205,"pid":20,"hostname":"cd3038ae44b9","msg":"Server running on port 3000"}
{"level":30,"time":1771567413206,"pid":20,"hostname":"cd3038ae44b9","msg":"Starting all sessions"}
{"level":40,"time":1771567413207,"pid":20,"hostname":"cd3038ae44b9","sessionId":"support2","msg":"Existing session detected"}
{"level":30,"time":1771567413208,"pid":20,"hostname":"cd3038ae44b9","sessionId":"support2","msg":"Session is being initiated"}
{"level":40,"time":1771567413209,"pid":20,"hostname":"cd3038ae44b9","sessionId":"support2","msg":"Browser lock file exists, removing"}
{"level":30,"time":1771567431815,"pid":20,"hostname":"cd3038ae44b9","sessionId":"support2","msg":"Destroying session"}
{"level":30,"time":1771567450347,"pid":20,"hostname":"cd3038ae44b9","sessionId":"support","msg":"Session is being initiated"}
/usr/src/app/node_modules/puppeteer-core/lib/cjs/puppeteer/common/CallbackRegistry.js:103
    #error = new Errors_js_1.ProtocolError();
             ^

ProtocolError: Protocol error (Network.getResponseBody): No data found for resource with given identifier
    at <instance_members_initializer> (/usr/src/app/node_modules/puppeteer-core/lib/cjs/puppeteer/common/CallbackRegistry.js:103:14)
    at new Callback (/usr/src/app/node_modules/puppeteer-core/lib/cjs/puppeteer/common/CallbackRegistry.js:107:16)
    at CallbackRegistry.create (/usr/src/app/node_modules/puppeteer-core/lib/cjs/puppeteer/common/CallbackRegistry.js:25:26)
    at Connection._rawSend (/usr/src/app/node_modules/puppeteer-core/lib/cjs/puppeteer/cdp/Connection.js:108:26)
    at CdpCDPSession.send (/usr/src/app/node_modules/puppeteer-core/lib/cjs/puppeteer/cdp/CdpSession.js:74:33)
    at /usr/src/app/node_modules/puppeteer-core/lib/cjs/puppeteer/cdp/HTTPResponse.js:99:65
    at async CdpHTTPResponse.text (/usr/src/app/node_modules/puppeteer-core/lib/cjs/puppeteer/api/HTTPResponse.js:39:25)
    at async /usr/src/app/node_modules/whatsapp-web.js/src/Client.js:868:39

Node.js v22.22.0
npm notice
npm notice New major version of npm available! 10.9.4 -> 11.10.1
npm notice Changelog: https://github.com/npm/cli/releases/tag/v11.10.1
npm notice To update run: npm install -g npm@11.10.1
npm notice

I tried old versions, clean sessions, increased memory, etc., all in vain. The container is still not working (my node version used is v22, I even tried v20, but with no luck)

Can anyone please help me!

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions