Rhymen / go-whatsapp

WhatsApp Web API
MIT License
2.05k stars 490 forks source link

Not connectig after updating to WhatsApp (beta) Multi Device #601

Open LucasSPanaro opened 2 years ago

LucasSPanaro commented 2 years ago

Updated today my Whatsapp to the latest beta version and tried to connect it. Every time I scan the QR code, the session is not recorded, and I get the following error:

"interface conversion: interface {} is nil, not map[string]interface {}"

once the error was: "server closed connection,code: 1000,text: "

Screenshot from 2021-07-21 15-45-47

LucasSPanaro commented 2 years ago

Related to #598

josergm86 commented 2 years ago

I am experiencing the same problem. The exeption is "interface conversion: interface {} is nil, not map[string]interface {}".

This exception is caused by Whatsapp beta which is not sending the expected session information in lines 266 to 272 of the Login function in the session.go file.

For standard mobile apps, the line 266 (info := resp2[1].(map[string]interface{})) return the session information, but for Whatsapp beta this line is returning "map[type:upgrade_md_prod version:2.2126.11]". The problem continues even forcing the client version to "2.2126.11".

Any sugestion????

beshoo commented 2 years ago

Unfortunately, we need to rewrite the API from the scratch. which unlikely will be in the near future.

On Wed, Aug 11, 2021 at 11:58 PM josergm86 @.***> wrote:

I am experiencing the same problem. The exeption is "interface conversion: interface {} is nil, not map[string]interface {}".

This exception is caused by Whatsapp beta which is not sending the expected session information in lines 266 to 272 of the Login function in the session.go file.

For standard mobile apps, the line 266 (info := resp2[1].(map[string]interface{})) return the session information, but for Whatsapp beta this line is returning "map[type:upgrade_md_prod version:2.2126.11]". The problem continues even forcing the client version to "2.2126.11".

Any sugestion????

— You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub https://github.com/Rhymen/go-whatsapp/issues/601#issuecomment-897147476, or unsubscribe https://github.com/notifications/unsubscribe-auth/ABDLT245WNQD2ZZL64DIKT3T4LP6XANCNFSM5AYQ2DRA . Triage notifications on the go with GitHub Mobile for iOS https://apps.apple.com/app/apple-store/id1477376905?ct=notification-email&mt=8&pt=524675 or Android https://play.google.com/store/apps/details?id=com.github.android&utm_campaign=notification-email .

govindtiwari commented 2 years ago

Anyone working on multi device or any working repo for go yet ?

beshoo commented 2 years ago

Anyone working on multi device or any working repo for go yet ?

There is a work for WMD, but not on GO lang, they are coding it on Javascript TS/node

beshoo commented 2 years ago

https://github.com/Rhymen/go-whatsapp/issues/598

abbasudo commented 2 years ago

Any plan to fix this ?

beshoo commented 2 years ago

Unfortunately, no

On Tue, Jan 4, 2022, 11:20 PM Abbas mkhzomi @.***> wrote:

Any plan to fix this ?

— Reply to this email directly, view it on GitHub https://github.com/Rhymen/go-whatsapp/issues/601#issuecomment-1005178908, or unsubscribe https://github.com/notifications/unsubscribe-auth/ABDLT22I6Q7BKANND3F3XMTUUNQCRANCNFSM5AYQ2DRA . Triage notifications on the go with GitHub Mobile for iOS https://apps.apple.com/app/apple-store/id1477376905?ct=notification-email&mt=8&pt=524675 or Android https://play.google.com/store/apps/details?id=com.github.android&referrer=utm_campaign%3Dnotification-email%26utm_medium%3Demail%26utm_source%3Dgithub.

You are receiving this because you modified the open/close state.Message ID: @.***>

pazkero commented 2 years ago

Any plan to fix this ?

@llabbasmkhll You probably should see https://github.com/Rhymen/go-whatsapp/issues/622 too