Giter VIP home page Giter VIP logo

Comments (18)

lrufato avatar lrufato commented on July 20, 2024 3

If your system was messed up by latest bug, this is how I fixed my system and got it running fine again on latest version.

-> Debian 12.5 Bookworm.

This guide will uninstall all traces of nodejs, npm and installed modules on your system.

AS ROOT:
npm uninstall mudslide/
apt purge npm nodejs -y
apt autoremove --purge -y
rm /usr/local/bin/mudslide
rm -rf /usr/local/lib/node_modules
rm -rf package* .npm/ node_modules/ mudslide/
rm /usr/bin/mudslide
rm -rf /usr/lib/node_modules
mudslide
which mudslide
reboot
apt install npm

AS YOUR USER:
rm -rf node_modules/ package* .local/share/mudslide/
npm install mudslide

AS ROOT
cd /usr/local/bin/
ln -s /home/YOURUSER/node_modules/mudslide/dist/index.js mudslide

AS YOUR USER:
mudslide --version
mudslide login

TO UPDATE MUDSLIDE, AS REGULAR USER WHERE MUDSLIDE IS INSTALLED.
npm update mudslide -y

I hope someone find this useful.

robvanderleek: Thank you very much for your efforts.

from mudslide.

robvanderleek avatar robvanderleek commented on July 20, 2024 2

Hi all,

I think this is indeed caused by an issue in Baileys.
I've just made a new release (0.25.4) that has a dependency on the unreleased Baileys version with the patch mentioned by @budgetsms

Please let me know if this solves your issues.
Unfortunately, my time is limited to look deeper into this. Thanks for all the troubleshooting help 👍

from mudslide.

0xF0CACC1A avatar 0xF0CACC1A commented on July 20, 2024 1

Hi @0xF0CACC1A

I was able to reproduce the problem by disconnecting mudslide in the WA App, and then run mudslide login.

What worked for me is to first run mudslide logout (this clears the authentication cache), and then run mudslide login. Can you check if that also solves your issue?

image
Unlike you, I haven't disconnected mudslide in the WA App because I've never connected it before

from mudslide.

sri4 avatar sri4 commented on July 20, 2024 1

Hi @robvanderleek,

First, thanks for the code with the easy installation and commands!

I have the same problem with the QR code generation. Previously, I was using version 0.25.2 and suddenly the command got stuck. I tried reinstalling with the latest version 0.25.3, but the QR code is still not generating, even after logging out and logging in again.

from mudslide.

mkgitalia avatar mkgitalia commented on July 20, 2024 1

I use login command with -v, please see image attached
WALoginError

from mudslide.

budgetsms avatar budgetsms commented on July 20, 2024 1

New install here

  • node 18.20.2
  • fresh latest baileys install
  • qrcode-terminal v0.12.0

$ npx mudslide@latest -vvv login
ℹ info In the WhatsApp mobile app go to "Settings > Connected Devices >
ℹ info Connect Device" and scan the QR code below

{"level":30,"time":1716542071351,"pid":400494,"hostname":"HOSTNAME","browser":["Linux","Chrome","10.15.0"],"helloMsg":{"clientHello":{"ephemeral":"hky7P9bclx7D6U0YACQJxXqZwoNkbk4OzAHOuhUupEo="}},"msg":"connected to WA"}
{"level":10,"time":1716542071451,"pid":400494,"hostname":"HOSTNAME","class":"ns","msg":"recv 350 bytes, total recv 350 bytes"}
{"level":10,"time":1716542071451,"pid":400494,"hostname":"HOSTNAME","class":"ns","msg":"recv frame"}
{"level":10,"time":1716542071452,"pid":400494,"hostname":"HOSTNAME","handshake":{"serverHello":{"ephemeral":"WJzaL0A0bTEfR0pfQKqT0210Sg+N5aqv0kT4fbKV2kM=","static":"zCQd/Q0Iz1AXtQ301xqIuixtHT9QFufPesiWf8zitBWM7FiNxd0OXw406WtIxFdK","payload":"JkJK/ptqlfVnV1tV2mPEQaLeQ1fmHQvkvHmjI59KsdFJCxewjtZ8VxIjMVKd2UBMlYWsp2D2BHySjZ7tAGTLjgEg1EMGyAzZtVQg1h9ns6JCxgxT8ChZFAQ7uzgqDZjIMEnrGZmCh5j1uSPBaJyhXD9cpYvmN1JuJDTEFRUjc+9WGWTkSUIQGdwK2GF/ZHPF4a5BhBN8ZTEG/c1/Gby2uwFAbR/uZK6ch2JJ8oLSmh5bFSiMhWFwmj+kb+MoJkk/0OZg51OjN79/XfBYhCehUA/cKTKeT0R9ECm0blJIpeu2Rfy74mfsA618rU+vr0SkKpzGMUswVw2LzpiF1DZapmo="}},"msg":"handshake recv from WA"}
{"level":30,"time":1716542071461,"pid":400494,"hostname":"HOSTNAME","node":{"passive":false,"userAgent":{"platform":"WEB","appVersion":{"primary":2,"secondary":2403,"tertiary":2},"mcc":"000","mnc":"000","osVersion":"0.1","manufacturer":"","device":"Desktop","osBuildNumber":"0.1","releaseChannel":"RELEASE","localeLanguageIso6391":"en","localeCountryIso31661Alpha2":"US"},"webInfo":{"webSubPlatform":"WEB_BROWSER"},"connectType":"WIFI_UNKNOWN","connectReason":"USER_ACTIVATED","devicePairingData":{"eRegid":"AAAAMg==","eKeytype":"BQ==","eIdent":"R4+BmaWpRKT07eMepFqglHUB0jUQJlcRzDcnxyau9h0=","eSkeyId":"AAAB","eSkeyVal":"1lvDwT5Vf53pIo0iKpuhMJYI7oaFoXO6N7KgFUIthFQ=","eSkeySig":"FhOVW5bMQTNlt+IfZmxdlz4Ogy7ZKtOAru2XnPjIxuku1QMUhOslInLPVTN43nui4Kf87RkNi4Pz012rQ5jQgQ==","buildHash":"ctjRqW1/JS8QL+XWNBTAYg==","deviceProps":"CgVMaW51eBgBIAA="}},"msg":"not logged in, attempting registration..."}
{"level":10,"time":1716542072508,"pid":400494,"hostname":"HOSTNAME","class":"ns","msg":"recv 41 bytes, total recv 41 bytes"}
{"level":10,"time":1716542072510,"pid":400494,"hostname":"HOSTNAME","class":"ns","msg":"recv frame"}
{"level":10,"time":1716542072510,"pid":400494,"hostname":"HOSTNAME","xml":"","msg":"recv xml"}
{"level":30,"time":1716542072510,"pid":400494,"hostname":"HOSTNAME","trace":"Error: Connection Failure\n at WebSocketClient. (/home/USER/.npm/_npx/ce95761724e6020f/node_modules/@whiskeysockets/baileys/lib/Socket/socket.js:524:13)\n at WebSocketClient.emit (node:events:517:28)\n at WebSocketClient.emit (node:domain:489:12)\n at /home/USER/.npm/_npx/ce95761724e6020f/node_modules/@whiskeysockets/baileys/lib/Socket/socket.js:236:35\n at Object.decodeFrame (/home/USER/.npm/_npx/ce95761724e6020f/node_modules/@whiskeysockets/baileys/lib/Utils/noise-handler.js:136:17)\n at WebSocketClient.onMessageReceived (/home/USER/.npm/_npx/ce95761724e6020f/node_modules/@whiskeysockets/baileys/lib/Socket/socket.js:212:15)\n at WebSocketClient.emit (node:events:517:28)\n at WebSocketClient.emit (node:domain:489:12)\n at WebSocket. (/home/USER/.npm/_npx/ce95761724e6020f/node_modules/@whiskeysockets/baileys/lib/Socket/Client/web-socket-client.js:46:100)\n at WebSocket.emit (node:events:517:28)","msg":"connection errored"}
{"level":30,"time":1716542072682,"pid":400494,"hostname":"HOSTNAME","browser":["Linux","Chrome","10.15.0"],"helloMsg":{"clientHello":{"ephemeral":"Zilz4SvkeNXeBG8JKsEfGLbX5E4Cs+LAetKQnNITnBk="}},"msg":"connected to WA"}
{"level":10,"time":1716542072804,"pid":400494,"hostname":"HOSTNAME","class":"ns","msg":"recv 350 bytes, total recv 350 bytes"}
{"level":10,"time":1716542072804,"pid":400494,"hostname":"HOSTNAME","class":"ns","msg":"recv frame"}
{"level":10,"time":1716542072805,"pid":400494,"hostname":"HOSTNAME","handshake":{"serverHello":{"ephemeral":"siehbRP4DQknE1ULatlGJ6c7YCn5WIaBrdSze2gSRSU=","static":"4gU3ocN+0fdabshSsXIvkj/55tTakj18LkD0Fg9NOiTi7QqscKT6y8yYJalir323","payload":"1uIPvuoaD2hPBcaOfdGZ3ZK9EYTplbpvFOQXBj34/B9Aw1xNEEyxO5IpFogxeGkwc8UDSTwRi9UWcPpRIkT2P2Kqt/JUZ2Coto46d+RxSLNZkBxoNAjerTbwwPWAsuh7cZ0XZ83LdP4ReVqQhpCrJNXmJSvWWdSLkbvAeSf0qcWC1gELS/kdxVjGs7ARARgbTl+GhRFYK2DN5HAR7/Ha70cfqbKDeNjecjV+xKJWFp1pXurg4eAQufqTtp9/H+arGzB3QyM+2nKHvGAoOGHbQcmj+dRHmAHrxUahZu0rye/rWj3Bu4+lIQ+TPxs2zxg0cElYGjtQ5iAafuj8aYh2ekA="}},"msg":"handshake recv from WA"}
{"level":30,"time":1716542072811,"pid":400494,"hostname":"HOSTNAME","node":{"passive":false,"userAgent":{"platform":"WEB","appVersion":{"primary":2,"secondary":2403,"tertiary":2},"mcc":"000","mnc":"000","osVersion":"0.1","manufacturer":"","device":"Desktop","osBuildNumber":"0.1","releaseChannel":"RELEASE","localeLanguageIso6391":"en","localeCountryIso31661Alpha2":"US"},"webInfo":{"webSubPlatform":"WEB_BROWSER"},"connectType":"WIFI_UNKNOWN","connectReason":"USER_ACTIVATED","devicePairingData":{"eRegid":"AAAAWg==","eKeytype":"BQ==","eIdent":"O9NOseKMI7yDnGdUvsfXVULm7Q1u647SxllIEGbtXU4=","eSkeyId":"AAAB","eSkeyVal":"XSMdDfYoe8NYr0E0HHDP0XAz7XVXN0cxiDKE2g3T9Vo=","eSkeySig":"wQzb3NOh+n0nqotI6ETi8dSTNxAXzens7SWuN2Gz0ZtSdcBbl1j93pVVfw1CQpcTaEeR68QootTrkbw+Cj0SgQ==","buildHash":"ctjRqW1/JS8QL+XWNBTAYg==","deviceProps":"CgVMaW51eBgBIAA="}},"msg":"not logged in, attempting registration..."}
{"level":10,"time":1716542077054,"pid":400494,"hostname":"HOSTNAME","class":"ns","msg":"recv 41 bytes, total recv 41 bytes"}
{"level":10,"time":1716542077055,"pid":400494,"hostname":"HOSTNAME","class":"ns","msg":"recv frame"}
{"level":10,"time":1716542077055,"pid":400494,"hostname":"HOSTNAME","xml":"","msg":"recv xml"}
{"level":30,"time":1716542077056,"pid":400494,"hostname":"HOSTNAME","trace":"Error: Connection Failure\n at WebSocketClient. (/home/USER/.npm/_npx/ce95761724e6020f/node_modules/@whiskeysockets/baileys/lib/Socket/socket.js:524:13)\n at WebSocketClient.emit (node:events:517:28)\n at WebSocketClient.emit (node:domain:489:12)\n at /home/USER/.npm/_npx/ce95761724e6020f/node_modules/@whiskeysockets/baileys/lib/Socket/socket.js:236:35\n at Object.decodeFrame (/home/USER/.npm/_npx/ce95761724e6020f/node_modules/@whiskeysockets/baileys/lib/Utils/noise-handler.js:136:17)\n at WebSocketClient.onMessageReceived (/home/USER/.npm/_npx/ce95761724e6020f/node_modules/@whiskeysockets/baileys/lib/Socket/socket.js:212:15)\n at WebSocketClient.emit (node:events:517:28)\n at WebSocketClient.emit (node:domain:489:12)\n at WebSocket. (/home/USER/.npm/_npx/ce95761724e6020f/node_modules/@whiskeysockets/baileys/lib/Socket/Client/web-socket-client.js:46:100)\n at WebSocket.emit (node:events:517:28)","msg":"connection errored"}
{"level":30,"time":1716542077204,"pid":400494,"hostname":"HOSTNAME","browser":["Linux","Chrome","10.15.0"],"helloMsg":{"clientHello":{"ephemeral":"hT6e+qSZmOLqblXZ5CQf8G01fQGlQee7wtB+84Z/WBQ="}},"msg":"connected to WA"}
{"level":10,"time":1716542077302,"pid":400494,"hostname":"HOSTNAME","class":"ns","msg":"recv 350 bytes, total recv 350 bytes"}
{"level":10,"time":1716542077302,"pid":400494,"hostname":"HOSTNAME","class":"ns","msg":"recv frame"}
{"level":10,"time":1716542077303,"pid":400494,"hostname":"HOSTNAME","handshake":{"serverHello":{"ephemeral":"qM4OGYa04hEEQod7gnWDAF9VCs0RfHXu8w9KBTCAPhc=","static":"v1jzyBybOMRDhJ0k3ZSvIqc6r8UyjHPjrEqEUZepFIITgEwiNIt7rFFb4W8Hfed8","payload":"nv65kpUCxK90lidnl67ffpBDOqeWVVkLXogs/OnepZS8aV/cs6YN9AhjrUb9+QuruuXVIMtBEPvd8vQlZYVk8D30RSlAb5hO/J3PMQBgK7LrvVcBjVlG7BvaS0rg2RZOtP9Zw+l2dUg+Zj+MaYtR6p4BUiDnxaZtv2AKq+FuE3D16NxIVdRpvUY5w7GrPPjcHfQOcABgQ2son8qfnvbNg1PBmvYIRzK8VKOtazQoQd//IUFfNuiMUeM87f1W52rI3tcxEQ5VWJ4QpHyn3OSKHIS3WtTJgnO5Om+VfcZ9o9GFeYyE8X/2Ec7WfgYbS+UW6W/MOV3HRqD2AeFTJbrRa+I="}},"msg":"handshake recv from WA"}
{"level":30,"time":1716542077310,"pid":400494,"hostname":"HOSTNAME","node":{"passive":false,"userAgent":{"platform":"WEB","appVersion":{"primary":2,"secondary":2403,"tertiary":2},"mcc":"000","mnc":"000","osVersion":"0.1","manufacturer":"","device":"Desktop","osBuildNumber":"0.1","releaseChannel":"RELEASE","localeLanguageIso6391":"en","localeCountryIso31661Alpha2":"US"},"webInfo":{"webSubPlatform":"WEB_BROWSER"},"connectType":"WIFI_UNKNOWN","connectReason":"USER_ACTIVATED","devicePairingData":{"eRegid":"AAAA3Q==","eKeytype":"BQ==","eIdent":"eRABAtFaVNECPM8qmYjPezRa3L6isx7osOsvVRYEQj4=","eSkeyId":"AAAB","eSkeyVal":"ntghfV4+t5jYRdp76XmWzHizxA/rSFGBNyVFIlDgnGs=","eSkeySig":"IBahW75tsobCwwpHCZgzt3M4uufptoVM3HRALHemkU/Rl+izex3LbyAb03Bqm/vuABmOf4ggAvGadNdj8MDCiw==","buildHash":"ctjRqW1/JS8QL+XWNBTAYg==","deviceProps":"CgVMaW51eBgBIAA="}},"msg":"not logged in, attempting registration..."}

Those errors keep rolling in, in a loop. I do see a 405, is that a HTTP 405 "Method not allowed" error perhaps?
I did get this same error with just baileys, without mudslide. So, to me, it looks like an issue with Baileys and not mudslide. I am not deep into this matter, so this is all I can add to this issue... Hope it helps

from mudslide.

budgetsms avatar budgetsms commented on July 20, 2024 1

Did a clean install on Ubuntu (Raspbian) and installed the latest stable baileys and Mudslide and it was a walk in the park. Worked flawlessly! Thanks :)

from mudslide.

robvanderleek avatar robvanderleek commented on July 20, 2024

Hi @0xF0CACC1A

I can confirm this, I'll look into it.

Thanks for reporting

from mudslide.

create-issue-branch avatar create-issue-branch commented on July 20, 2024

Branch issue-90-QR_code_doesn_t_show_up created!

from mudslide.

robvanderleek avatar robvanderleek commented on July 20, 2024

Hi @0xF0CACC1A

I was able to reproduce the problem by disconnecting mudslide in the WA App, and then run mudslide login.

What worked for me is to first run mudslide logout (this clears the authentication cache), and then run mudslide login.
Can you check if that also solves your issue?

from mudslide.

cthiagotavares avatar cthiagotavares commented on July 20, 2024

Hi @robvanderleek
I have the same problem.
I tried your suggestion and it didn't work.
When I run it on a machine that is not a docker container it works, it doesn't work inside docker. Could it be related?

It seems to be in a loop trying to connect
login.log

from mudslide.

0xF0CACC1A avatar 0xF0CACC1A commented on July 20, 2024

Hi @0xF0CACC1A
I was able to reproduce the problem by disconnecting mudslide in the WA App, and then run mudslide login.
What worked for me is to first run mudslide logout (this clears the authentication cache), and then run mudslide login. Can you check if that also solves your issue?

image Unlike you, I haven't disconnected mudslide in the WA App because I've never connected it before

Btw I'm (still) using version 0.25.2

from mudslide.

lrufato avatar lrufato commented on July 20, 2024

Same here.

from mudslide.

budgetsms avatar budgetsms commented on July 20, 2024

Could be related to this: WhiskeySockets/Baileys#805

I am trying this patch, although not working (for me), I think it is related to new whatsapp web releases.

from mudslide.

cthiagotavares avatar cthiagotavares commented on July 20, 2024

hi @robvanderleek
It worked for me!!
Thank you very much!!

from mudslide.

cthiagotavares avatar cthiagotavares commented on July 20, 2024

Hi @robvanderleek

When trying to install it is returning the following error:
ERROR: failed to solve: process "/bin/sh -c npm install -g mudslide" did not complete successfully: exit code: 127

from mudslide.

robvanderleek avatar robvanderleek commented on July 20, 2024

Hi all,

Due to a fix in the Baileys library that solves WA connection problems but have not yet been released, the latest version of Mudslide is now depending on a GitHub repository hash. This might give issues with npx, beyond my control.

FWIW, I can still install the latest version like this:

❯ npx mudslide me
Need to install the following packages:
[email protected]
Ok to proceed? (y) y
npm WARN skipping integrity check for git dependency ssh://[email protected]/WhiskeySockets/Baileys.git
Cache folder: /Users/rob/.local/share/mudslide
Current user: ****:[email protected]
…  awaiting  Closing WA connection, waiting for 1 second(s)...
⭐ Please star Mudslide on GitHub! https://github.com/robvanderleek/mudslide

❯ npx --version
10.5.2

from mudslide.

robvanderleek avatar robvanderleek commented on July 20, 2024

Hi all,

Please check the newest release (0.26.0), this release has again a versioned dependency on the Baileys library.

from mudslide.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.