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

Multiple connections not working #2823

Open
techwebsolucao opened this issue Nov 10, 2024 · 5 comments
Open

Multiple connections not working #2823

techwebsolucao opened this issue Nov 10, 2024 · 5 comments
Labels
needs triage Needs avaliation question Further information is requested

Comments

@techwebsolucao
Copy link

It only loads in the Ubuntu 2022 terminal and does not generate qrcode
sometimes it generates for one but the rest do not

const venom = require('venom-bot');

venom
.create({session: 'teste'})
.then((client) => start(client))
.catch((error) => {
console.log(error);
});

venom
.create({session: 'teste2'})
.then((client) => start(client))
.catch((error) => {
console.log(error);
});

venom
.create({session: 'teste3'})
.then((client) => start(client))
.catch((error) => {
console.log(error);
});

venom
.create({session: 'teste4'})
.then((client) => start(client))
.catch((error) => {
console.log(error);
});

@techwebsolucao techwebsolucao added needs triage Needs avaliation question Further information is requested labels Nov 10, 2024
@ghayman
Copy link
Contributor

ghayman commented Nov 12, 2024

This sounds like it could be related the fix that was just merged.
Please try and install from master branch here

github:orkestral/venom#master

@tls-jil
Copy link

tls-jil commented Nov 15, 2024

i have same issue

#2825

not get the QR code

@ghayman
Copy link
Contributor

ghayman commented Nov 15, 2024

Please confirm that installing the latest version from here

npm install github:orkestral/venom#master

is not working.
A fix has been made for this in the repo but we are unable to push it to npmjs.com at this time

@tls-jil @techwebsolucao

@tls-jil
Copy link

tls-jil commented Nov 26, 2024

i have done with this

npm install github:orkestral/venom#master

but still get same issue

@allanalcantara
Copy link

allanalcantara commented Dec 12, 2024

maybe use same diferent... try use this

const venom = require('venom-bot');
venom
.create(
'zzz', // Session name << change for use multiple session
(base64Qr, asciiQR) => {
console.log('QR Code:', asciiQR);
},
(statusSession, session) => {
console.log('Status Session:', statusSession);
console.log('Session name:', session);
},
{
headless: 'new',
devtools: true,
logQR: true,
disableSpins: true
}
)
.then((client) => start(client))
.catch((error) => console.error('Error starting Venom:', error));

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
needs triage Needs avaliation question Further information is requested
Projects
None yet
Development

No branches or pull requests

4 participants