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

Login/Restore not working #571

Closed
emauro opened this issue Jun 15, 2021 · 10 comments
Closed

Login/Restore not working #571

emauro opened this issue Jun 15, 2021 · 10 comments

Comments

@emauro
Copy link

emauro commented Jun 15, 2021

Something changed during the login/restore handshake. The following error appears:

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

The following json is received:

["cmd", {"type": "update"}]

Code fails in line 393 of session.go. Note that JSON does not contain entry "status", which is expected.

@fredjsf
Copy link

fredjsf commented Jun 15, 2021

Me too

@laercioamatuzzi
Copy link

I got the same issue here: "error decoding login connResp: json: cannot unmarshal array into Go value of type map[string]interface {}".

@Stasich
Copy link

Stasich commented Jun 15, 2021

try new version: SetClientVersion(2, 2121, 6)

@SheIITear
Copy link

This happens because of outdated wa web version given to whatsapp. Change the version to newer one like @Stasich said and you can connect again.

SheIITear pushed a commit to SheIITear/go-whatsapp that referenced this issue Jun 15, 2021
Fixes issue mentioned in Rhymen#571
@laercioamatuzzi
Copy link

Worked for me, thx guys :)

@paulocsanz
Copy link

It worked here too! All of our clients got broken today.

@fredjsf
Copy link

fredjsf commented Jun 15, 2021

When I changed to new version we received new error: qr code scan timed out.

@emauro
Copy link
Author

emauro commented Jun 15, 2021

Solved!

@ravern
Copy link

ravern commented Jun 16, 2021

Is there a programmatic way of automatically figuring out the next version numbers?

@Faeziix
Copy link

Faeziix commented Aug 29, 2021

How can I change the version?

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

8 participants