Skip to content
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

Unable to login #596

Open
mateors opened this issue Jul 16, 2021 · 3 comments
Open

Unable to login #596

mateors opened this issue Jul 16, 2021 · 3 comments

Comments

@mateors
Copy link

mateors commented Jul 16, 2021

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

@akbarfa49
Copy link

akbarfa49 commented Jul 16, 2021

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

where the code sir?
addition:
if u didn't SetClientVersion, u need to set it first. example :

wac, err := whatsapp.NewConn(3 * time.Minute)
wac.SetClientVersion(2, 2123, 7)

@alimsk
Copy link

alimsk commented Jul 23, 2021

i got the same error

this is the code

qrChan := make(chan string)
go func() {
	fmt.Print(<-qrChan)
}()
session, err = conn.Login(qrChan) // <-- here is the error

@alimsk
Copy link

alimsk commented Jul 23, 2021

@akbarfa49
your suggestion works, thank you :)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants