Go-whatsapp: [Bug] In session.Login

Created on 29 Jun 2019  路  4Comments  路  Source: Rhymen/go-whatsapp

Hello everyone. At first I wanna say thank you for this project. I have been using this project for a few months now and there has been no issues so far till today. I can't login in anymore. I get this error:

error decoding login resp: json: cannot unmarshal array into Go value of type map[string]interface {}

which I believe is coming from session.Login. To give a little bit of context, there's no restoration of session or anything. You will see the way I use go-whatsapp on this link:

https://github.com/yazeed44/social-media-detector-api/blob/master/whatsapp_detect.go

Thank you

Most helpful comment

go get -u github.com/Rhymen/go-whatsapp

All 4 comments

go get -u github.com/Rhymen/go-whatsapp

hi @yazeed44 is updating go-whatsapp version fix your issue ?

Hi, I encountered the same problem though I am using the latest version. Can anyone help?

I solved the problem by explicitly setting client version

wac.SetClientVersion(2, 20, 140)

Was this page helpful?
0 / 5 - 0 ratings

Related issues

Valdenirmezadri picture Valdenirmezadri  路  5Comments

ribeiroferreiralucas picture ribeiroferreiralucas  路  8Comments

denislee picture denislee  路  6Comments

lutpiero picture lutpiero  路  8Comments

highness28 picture highness28  路  5Comments