-
Notifications
You must be signed in to change notification settings - Fork 493
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
error decoding login connResp: json: cannot unmarshal array into Go value of type map[string]interface {} #633
Comments
I think, that is not the place where unmarshall can not work. I was looking and i think the problem is in Restore(), in some 2021/11/03 17:05:38 [SUCCESS LOADIN CONFIG] |
Try this.
|
Working.. wac.SetClientVersion(2, 2142, 12) |
Hi! thanks for answer me.Yes, it is working! |
Thank You, It is working for me |
Hi! We were having a problem when the function Login() try to unmarshall the response from loginChan. Unmarshall is expecting a []map[string]interface{} but it is receiving a map[string]interface{}
`case r = <-loginChan:
case <-time.After(wac.msgTimeout):
return session, fmt.Errorf("login connection timed out")
}
Log from server:
goroutine 11 [running]:
api-channel-whatsapp/pkg/messaging.login(0xc000198100, 0x1, 0x3)
/go/src/app/pkg/messaging/whatsappImpl.go:553 +0x70e
api-channel-whatsapp/pkg/messaging.WhatsappSession()
/go/src/app/pkg/messaging/whatsappImpl.go:395 +0x1c2
The text was updated successfully, but these errors were encountered: