Closed alexduca closed 3 months ago
come on! i have been working so hard to find this problem, i try with documentations, i try to search online problems, i wrote on Discord with a ticket and in the general and hoped to receive a notification with a lead for a solution and i get this... the web is big, it is not easy to search... probably the problem is me...
Is there an existing issue for this?
Describe the bug
I have a server.js file that manages my whatsapp sessions by starting and closing a dedicated terminal (running a app.js file) based on active/deactivated sessions. This all works and also manages the creation of directories. When I activate a session, a 6-digit numeric id is generated that is used to identify the session and from the main
/wweb/sessions
folder, the following directories are created:/wweb/sessions/479717
for project files (this folder is deleted when you turn off the session)/wweb/sessions/cache/session-479717
to save the session with LocalAuth()The problem is really in the
LocalAuth()
function that gives this error when it has to save the session:This is my client:
I would like to understand where I am going wrong... I have already tried giving privileges to the local account
alberto
with the following commands:sudo chmod -R 777 /wweb/sessions
sudo chown -R alberto:alberto /wweb/sessions
Expected behavior
I would like to resolve this error and for the QR Code to come up for me to connect to Whatsapp Web as expected. I specify that if I disable authentication in the configuration everything works fine.
Steps to Reproduce the Bug or Issue
Relevant Code
sudo please don't ignore me
Browser Type
Chromium
WhatsApp Account Type
Standard
Does your WhatsApp account have multidevice enabled?
Yes, I am using Multi Device
Environment
Additional context
Question: if by “Does your WhatsApp account have multidevice enabled?” you mean multiple devices on a single script then my answer is “NO”... if, on the other hand, you mean that my account connected to the project is also associated with other devices then my answer is “YES”