chrishubert / whatsapp-api

This project is a REST API wrapper for the whatsapp-web.js library, providing an easy-to-use interface to interact with the WhatsApp Web platform.

Home Page:https://www.christophehubert.com

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Cache error when starting the session

kaua-alves-queiros opened this issue · comments

when I run the API container, it works perfectly, but when I create the session at /sessions/start/sessionId, it says the session already exists and gives an error when trying to load the session cache.

I've already destroyed the container, deleted the volume, and cleared the contents of /sessions. I've also deleted all project files, cloned it again, and set up everything from scratch, but the problem persists

image
image
image
image

same happen here with me

pedroslopez/whatsapp-web.js#2789

I read the issue but couldn't solve it. Could you help me to resolve it? I believe that, since English is not my native language, I might have missed something.

pedroslopez/whatsapp-web.js#2789

I read the issue but couldn't solve it. Could you help me to resolve it? I believe that, since English is not my native language, I might have missed something.

Change followings to this in .env

WEB_VERSION=2.3000.1012536975-alpha # OPTIONAL, THE VERSION OF WHATSAPP WEB TO USE
WEB_VERSION_CACHE_TYPE=REMOTE # OPTIONAL, DETERMINTES WHERE TO GET THE WHATSAPP WEB VERSION(local, remote or none), DEFAULT 'none'

and then use this package in package.json:

"whatsapp-web.js": "pedroslopez/whatsapp-web.js#webpack-exodus"

before you run npm i make a cleanup ( delete node-modules, and maybe package-lock.json)
With this workaround you will be able to run locally

pedroslopez/whatsapp-web.js#2789

I read the issue but couldn't solve it. Could you help me to resolve it? I believe that, since English is not my native language, I might have missed something.

Change followings to this in .env

WEB_VERSION=2.3000.1012536975-alpha # OPTIONAL, THE VERSION OF WHATSAPP WEB TO USE WEB_VERSION_CACHE_TYPE=REMOTE # OPTIONAL, DETERMINTES WHERE TO GET THE WHATSAPP WEB VERSION(local, remote or none), DEFAULT 'none'

and then use this package in package.json:

"whatsapp-web.js": "pedroslopez/whatsapp-web.js#webpack-exodus"

before you run npm i make a cleanup ( delete node-modules, and maybe package-lock.json) With this workaround you will be able to run locally

It wasn't working for me, but after I tried running it directly on my PC instead of trying to run it through Docker, it worked. I checked and the compose file doesn't use the .env file; it has the variables defined inside it. So, for anyone using it via Docker, they should make the exact same change, but in the docker-compose.yaml file. Thank you very much for your help!