libwa icon indicating copy to clipboard operation
libwa copied to clipboard

libwa not logging into wa

Open ppGodel opened this issue 3 years ago • 2 comments

Hi again rodrigo, i wasnt using this lib in some time and i cant see new commits to this project, are you still maintaining it? if yes, i was setting up the bitlbee-wa and i am getting this error regarding to not finding a "ref" key ni the response element at login.

image

dont know if in this 2 years the login response have changed.

ppGodel avatar Aug 17 '21 22:08 ppGodel

Hi,

I’m not actively using it, but I try to keep it working from time to time.

The error suggest that the server is rejecting the client version from connecting as it is too old. The libwa client version is currently set to 0.3.9309:

https://github.com/rodarima/libwa/commit/fd80e379efca547960c44c0332a8b10854faf08a

The WA server reports the current version every time you connect, and you may be able to find it using the inspect tool in the browser. The last version set by the go-whatsapp library is 2.2121.6, which should work just fine:

https://github.com/Rhymen/go-whatsapp/blob/447ed9cc617912e5242b65fc33cb42248bb1ee3c/session.go#L21

You may want to update the libwa client version and see if anything else breaks. I saw some other changes in the protocol, but it may be able to work fine if those are just additional features.

Rodrigo

El 18 ago 2021, a las 0:08, JAHS @.***> escribió:

 Hi again rodrigo, i wasnt using this lib in some time and i cant see new commits to this project, are you still maintaining it? if yes, i was setting up the bitlbee-wa and i am getting this error regarding to not finding a "ref" key ni the response element at login.

dont know if in this 2 years the login response have chaged.

— You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub, or unsubscribe.

rodarima avatar Aug 18 '21 07:08 rodarima

i tried the version value in your project but it didn't work, i tried the on from the link you post and it kind of worked, it logged in but now is spamming this error endlessly, i think is while getting the new messages.

image

ppGodel avatar Aug 18 '21 17:08 ppGodel