Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Not Connected after read qrcode #375

Closed
joedutra opened this issue Jun 4, 2020 · 21 comments
Closed

Not Connected after read qrcode #375

joedutra opened this issue Jun 4, 2020 · 21 comments

Comments

@joedutra
Copy link

joedutra commented Jun 4, 2020

please help me, after reading the sulla barcode on the connect, it started today in all our scripts

@CollapsedMetal
Copy link

CollapsedMetal commented Jun 4, 2020

Same here...

Maybe related to puppeteer updated to v3.3.0?

@joedutra
Copy link
Author

joedutra commented Jun 4, 2020

waiting .... someone can help?

@thiagoamarante
Copy link

guys, I think it's discontinued here.
I use it, but I'm making all the corrections.
I can't merge

you have 2 options:
1 - use my branch - https://github.com/thiagoamarante/sulla/tree/develop
2 - use open-wa - https://github.com/open-wa/wa-automate-nodejs

@joedutra
Copy link
Author

joedutra commented Jun 4, 2020

guys, I think it's discontinued here.
I use it, but I'm making all the corrections.
I can't merge

you have 2 options:
1 - use my branch - https://github.com/thiagoamarante/sulla/tree/develop
2 - use open-wa - https://github.com/open-wa/wa-automate-nodejs

i will change for your repository, thank you!

@joedutra
Copy link
Author

joedutra commented Jun 4, 2020

It worked!

@diegoacuario
Copy link

Como instalo desde consola amigos ayuda antes lo hacía con npm install –save sulla

@diegoacuario
Copy link

catchQR is not a function

@NabiilahDatabase
Copy link

guys, I think it's discontinued here.
I use it, but I'm making all the corrections.
I can't merge

you have 2 options:
1 - use my branch - https://github.com/thiagoamarante/sulla/tree/develop
2 - use open-wa - https://github.com/open-wa/wa-automate-nodejs

sorry im noob, how to use your branch? to update my sulla

@joedutra
Copy link
Author

joedutra commented Jun 5, 2020

guys, I think it's discontinued here.
I use it, but I'm making all the corrections.
I can't merge
you have 2 options:
1 - use my branch - https://github.com/thiagoamarante/sulla/tree/develop
2 - use open-wa - https://github.com/open-wa/wa-automate-nodejs

sorry im noob, how to use your branch? to update my sulla

download the develop repository in https://github.com/thiagoamarante/sulla/tree/develop, not the master the link already takes to the develop repository, then unzip it on your machine, enter the folder and do an npm install, then run the npm build command, a dist folder will be created, copy the folder DIST, NODE_NODULES, PACKAGE.JSON, and replace it within your project at node_modules / sulla

@joedutra
Copy link
Author

joedutra commented Jun 6, 2020

guys, I think it's discontinued here.
I use it, but I'm making all the corrections.
I can't merge

you have 2 options:
1 - use my branch - https://github.com/thiagoamarante/sulla/tree/develop
2 - use open-wa - https://github.com/open-wa/wa-automate-nodejs
erro return LoginCanceled

@joedutra joedutra reopened this Jun 6, 2020
@joedutra
Copy link
Author

joedutra commented Jun 6, 2020

(node:175080) UnhandledPromiseRejectionWarning: LoginCanceled
(node:175080) UnhandledPromiseRejectionWarning: Unhandled promise rejection. This error originated either by throwing inside of an async function without a catch block, or by rejecting a promise which was not handled with .catch(). (rejection id: 1)
(node:175080) [DEP0018] DeprecationWarning: Unhandled promise rejections are deprecated. In the future, promise rejections that are not handled will terminate the Node.js process with a non-zero exit code.

@NabiilahDatabase
Copy link

thanks for ure help @vmcloudbr

me too, i got an error LoginCanceled, I think the problem was here:

  • src/controllers/initializer.ts
            result = await from(
              waPage
                .waitForFunction(
                  `
                  (document.getElementsByClassName('app')[0] &&
                  document.getElementsByClassName('app')[0].attributes &&
                  !!document.getElementsByClassName('app')[0].attributes.tabindex) || 
                  (document.getElementsByClassName('two')[0] && 
                  document.getElementsByClassName('two')[0].attributes && 
                  !!document.getElementsByClassName('two')[0].attributes.tabindex)
              `,
                  {
                    timeout: 20000,
                  }
                )
                .then(() => true)
                .catch(() => false)
            ).toPromise();

how fo fix it? @thiagoamarante

@brainwares
Copy link

thanks for ure help @vmcloudbr

me too, i got an error LoginCanceled, I think the problem was here:

* src/controllers/initializer.ts
            result = await from(
              waPage
                .waitForFunction(
                  `
                  (document.getElementsByClassName('app')[0] &&
                  document.getElementsByClassName('app')[0].attributes &&
                  !!document.getElementsByClassName('app')[0].attributes.tabindex) || 
                  (document.getElementsByClassName('two')[0] && 
                  document.getElementsByClassName('two')[0].attributes && 
                  !!document.getElementsByClassName('two')[0].attributes.tabindex)
              `,
                  {
                    timeout: 20000,
                  }
                )
                .then(() => true)
                .catch(() => false)
            ).toPromise();

how fo fix it? @thiagoamarante

use the original initializer.d.ts and initializer.js, build from original sulla-master

@joedutra
Copy link
Author

joedutra commented Jun 6, 2020

I managed to fix it, now we are going to open a new project using part of this one with more support the name of the repo will be Smile tomorrow so search

@joedutra joedutra closed this as completed Jun 6, 2020
@chr0nu5
Copy link

chr0nu5 commented Jun 6, 2020

Hey guys, to fix it, you have to use a mix of (in this order)

#375 (comment)
and
#375 (comment)

Run the first build from comment 1, and then, with another build from the sulla-master, copy the generated files to the develop build. Works fine here.

@joedutra
Copy link
Author

joedutra commented Jun 6, 2020

Yes is working, now creating new repository with name Venom, Starting support

@ahmadarif
Copy link

Nice @S2Click :D

@joedutra
Copy link
Author

joedutra commented Jun 6, 2020

Nice @S2Click :D
Install
npm i @s2click/venom
https://github.com/s2click/venom

@diegoacuario
Copy link

@rodrigoipe
Copy link

npm i @s2click/venom

esse não funciona... da erro

@orkestral
Copy link

orkestral commented Jun 26, 2020

npm i @s2click/venom

esse não funciona... da erro

no @S2Click is npm i venom-bot

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

10 participants