orkestral / venom

Venom is a high-performance system developed with JavaScript to create a bot for WhatsApp, support for creating any interaction, such as customer service, media sending, sentence recognition based on artificial intelligence and all types of design architecture for WhatsApp.
https://orkestral.io
Apache License 2.0
6.08k stars 1.19k forks source link

Error no open browser - Raspberry (arm64) #2441

Closed jackson-uti closed 6 months ago

jackson-uti commented 1 year ago

Description

I have venom 5.0.1 working perfectly on my Raspberry (arm64) with Ubuntu 22.04.2 LTS but when I upgrade to a higher version I get the "Error in the open browser"

Environment

Steps to Reproduce

With version 5.0.1 it is working perfectly. But if I try to upgrade to any higher version I get the error below

image

When I enter the mentioned link I have the following.

image

I understand that puppeteer no longer supports arm64. Is there a solution for this?

Thank you very much for your good work

pedrogiroldo commented 1 year ago

same here

creakuno commented 1 year ago

same here, work perfectly after updating Venom, ...control + c and try to run with pm2, then failed with the same error as above

sandrocampos commented 1 year ago

Same here in linux and mac os. It works only once, after reading the qrcode and running it again it fails. :(

CarlosAurelioMRF commented 1 year ago

Check this solution https://github.com/orkestral/venom/issues/2439#issuecomment-1683929856

creakuno commented 1 year ago

Check this solution #2439 (comment)

Thank you! it works!

jackson-uti commented 1 year ago

After debugging the code for a few hours I found the problem. The routine in node/node_modules/venom-bot/dist/controllers/initializer.js It only happens if you put a name for the session, which is my case.

image

The options variable was being replaced by the session name that way the arguments passed in create were cleared. Changed to include session name and problem solved.

image

Now with venom 5.0.17 working fine on raspberry. Thanks again to venom development for the great job.

FilipeBiasoli commented 1 year ago

Check this solution: https://github.com/orkestral/venom/issues/2449

luchor23 commented 1 year ago

hello friends to solve the problem, delete the SingletoLock file manually in the tokens folder within the session name and also uninstall google chrome, just leave it running with Chromium the browser I figure SNAP. And that's how it works for me in Ubuntu 22.04.

pedrogiroldo commented 1 year ago

@luchor23 the venom will save the whatsapp credentials?

creakuno commented 1 year ago

Running 'node Script.js' with 'headless' set to 'old' in the new release runs smoothly, but if I quit with Ctrl+C and then run it with 'pm2 start .....', it seems like Venom needs to rescan the QR code, is the session not saved ?

orkestral commented 6 months ago

New Release: npm i venom-bot@5.1.0 We have support for Venom for just $15 per month, if you are interested, call our support via the link: https://web.whatsapp.com/send?phone=5561985290357