whatsapp-api icon indicating copy to clipboard operation
whatsapp-api copied to clipboard

Session dissonects after docker restart

Open t0mer opened this issue 3 months ago • 6 comments

Hi, I'm using the docker version of your amazing work. It's been a while since i used it and now, after the first run everything works but when I restart the container is stops working and the following error appears in the logs:

Server running on port 3000
existing session detected tklein
/usr/src/app/node_modules/whatsapp-web.js/src/webCache/LocalWebCache.js:34
        const version = indexHtml.match(/manifest-([\d\\.]+)\.json/)[1];
                                                                    ^

TypeError: Cannot read properties of null (reading '1')
    at LocalWebCache.persist (/usr/src/app/node_modules/whatsapp-web.js/src/webCache/LocalWebCache.js:34:69)
    at /usr/src/app/node_modules/whatsapp-web.js/src/Client.js:771:36
    at process.processTicksAndRejections (node:internal/process/task_queues:95:5)

Node.js v20.11.1

I have permissions to the sessions folder and it seems that all files are there and have write permissions.

Thanks

t0mer avatar Mar 10 '24 14:03 t0mer