go-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
About this issue
- Original URL
- State: closed
- Created 4 years ago
- Comments: 18 (3 by maintainers)
Commits related to this issue
- Set client version as a fix provided for Rhymen/go-whatsapp#304 — committed to Wouter0100/quepasa by Wouter0100 4 years ago
or simple use
wac, err := whatsapp.NewConn(20 * time.Second) wac.SetClientVersion(0, 4, 1307)it seems that changing the client version to (0, 4, 1307) works again on session.go line 21
var waVersion = []int{0, 3, 3324}tovar waVersion = []int{0, 4, 1307}Yes it’s working, i tried that too
Thanks ❤️