Solvedgo whatsapp Error decoding login resp

2020/03/26 17:21:57 error logging in: error during login: error decoding login resp: json: cannot unmarshal array into Go value of type map[string]interface {}
I'm getting this error since this morning i already updated this library but i'm still getting this error, Can anyone please help me?

Edit: See this comment

19 Answers

✔️Accepted Answer

or simple use wac, err := whatsapp.NewConn(20 * time.Second) wac.SetClientVersion(0, 4, 1307)

Other Answers:

it seems that changing the client version to (0, 4, 1307) works again
on session.go line 21 var waVersion = []int{0, 3, 3324} to var waVersion = []int{0, 4, 1307}

or simple use wac, err := whatsapp.NewConn(20 * time.Second) wac.SetClientVersion(0, 4, 1307)

Have you tried it? Does it work?

Yes it's working, i tried that too

or simple use wac, err := whatsapp.NewConn(20 * time.Second) wac.SetClientVersion(0, 4, 1307)

Thanks <3

More Issues: