sulla icon indicating copy to clipboard operation
sulla copied to clipboard

error when restarting the instance (Authenticate to continue) infinite

Open ev4ndropc opened this issue 4 years ago • 23 comments

Then create the instance and read the qr work normally, but when I close the server and open it again it is in "Authenticate to continue" and does not start.

ev4ndropc avatar Apr 24 '20 20:04 ev4ndropc

i need help too

best-tech avatar Apr 24 '20 21:04 best-tech

https://github.com/danielcardeenas/sulla#closing-saving-sessions

Close the session properly to ensure the session is saved for the next time you log in (So it wont ask for QR scan again). So instead of CTRL+C,

// Catch ctrl+C process.on('SIGINT', function() { client.close(); });

// Try-catch close try { ... } catch (error) { client.close(); }

thiagoamarante avatar Apr 24 '20 22:04 thiagoamarante

I think it's something else. It stopped working a few hours ago. Previously, close() was saved correctly and started again

best-tech avatar Apr 24 '20 22:04 best-tech

client.close();

not work

ev4ndropc avatar Apr 24 '20 23:04 ev4ndropc

Yes i have this problem too

ocracy avatar Apr 25 '20 10:04 ocracy

I too can confirm I am having this issue.

pselibas avatar Apr 25 '20 18:04 pselibas

Limpe o diretório "session\Default\Cache" antes de executar o Create.

it dosnt help

image

best-tech avatar Apr 25 '20 19:04 best-tech

Sugestão: Consegui sucesso removendo o arquivo "\session\Default\Service Worker\Database\MANIFEST-000001" antes do create.

image

arthur2weber avatar Apr 25 '20 20:04 arthur2weber

that's true! deleting the "\session\Default\Service Worker\Database\MANIFEST-000001" file is working again!

thiagoamarante avatar Apr 26 '20 02:04 thiagoamarante

for now, deleting the "\session\Default\Service Worker\Database\MANIFEST-000001" file is working again!

thiagoamarante avatar Apr 26 '20 16:04 thiagoamarante

Use headless:false

On 26 Apr 2020 Sun at 19:34 Thiago Amarante [email protected] wrote:

for now, deleting the "\session\Default\Service Worker\Database\MANIFEST-000001" file is working again!

You are receiving this because you commented. Reply to this email directly, view it on GitHub https://github.com/danielcardeenas/sulla/issues/299#issuecomment-619581155, or unsubscribe https://github.com/notifications/unsubscribe-auth/AAIDQGSTE6LDYPNVXAFXKB3RORPCDANCNFSM4MQMSKMA .

ocracy avatar Apr 26 '20 17:04 ocracy

If I use headless:false, it works, otherwise not. Does anyone have an explanation for this? Or better a workaround?

EDIT: Thanks, with iAnton's code it's working now.

AlexanderXIV avatar Apr 26 '20 21:04 AlexanderXIV

Works to me

  const fse = require("fs-extra");
  
  fse
    .remove("./session/Default/Service Worker/Database/MANIFEST-000001")
    .then(() => {
      sulla.create().then((client) => start(client));
    });

iAnton avatar Apr 26 '20 22:04 iAnton

Still working @iAnton ? I'm using Sulla wiht Express in Kubernetes, but everytime when I restart the container I lost the session with WhatsApp.

willianmaria avatar May 06 '20 14:05 willianmaria

Same here... Looks like WhatsApp is asking to update Google Chrome. :P

kaykyr avatar May 18 '20 22:05 kaykyr

Above suggested solution still working fine for me. Note that in the solution by @iAnton you should replace ./session/ in the path with the actual name of your session.

roelandp avatar May 18 '20 22:05 roelandp

Above suggested solution still working fine for me. Note that in the solution by @iAnton you should replace ./session/ in the path with the actual name of your session.

Mais conhecido como gambiarra.

kaykyr avatar May 18 '20 22:05 kaykyr

I think it has to do with whether you already have Chrome (the regular browser) running on your machine actually. If you don't have it running and you start fresh, I think it just works, restart after restart. However there is some conflict when you already have regular browsers running, as far as I can tell.

roelandp avatar May 18 '20 23:05 roelandp

I think it has to do with whether you already have Chrome (the regular browser) running on your machine actually. If you don't have it running and you start fresh, I think it just works, restart after restart. However there is some conflict when you already have regular browsers running, as far as I can tell.

I don't know... Because wa-automate lib is working fine here... It's a bug, for sure.

kaykyr avatar May 18 '20 23:05 kaykyr

I used this parameters to create a session and is working

const options = {
    headless: true, // Headless chrome
    useChrome: false, // If false will use Chromium instance
    debug: false, // Opens a debug session
    logQR: true, // Logs QR automatically in terminal
};

andresilvagomez avatar May 26 '20 03:05 andresilvagomez

I used this parameters to create a session and is working

const options = {
    headless: true, // Headless chrome
    useChrome: false, // If false will use Chromium instance
    debug: false, // Opens a debug session
    logQR: true, // Logs QR automatically in terminal
};

how to do???

3cubos avatar Jun 05 '20 02:06 3cubos

I used this parameters to create a session and is working

const options = {
    headless: true, // Headless chrome
    useChrome: false, // If false will use Chromium instance
    debug: false, // Opens a debug session
    logQR: true, // Logs QR automatically in terminal
};

how to do???

Their is an issue with the current state of Sulla available on NPM: Here are fixes: #375

roelandp avatar Jun 05 '20 03:06 roelandp