Rhymen / go-whatsapp

WhatsApp Web API
MIT License
2.05k stars 490 forks source link

Login/Restore not working #571

Closed emauro closed 3 years ago

emauro commented 3 years ago

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 commented 3 years ago

Me too

laercioamatuzzi commented 3 years ago

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

Stasich commented 3 years ago

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

SheIITear commented 3 years ago

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.

laercioamatuzzi commented 3 years ago

Worked for me, thx guys :)

paulocsanz commented 3 years ago

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

fredjsf commented 3 years ago

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

emauro commented 3 years ago

Solved!

ravern commented 3 years ago

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

Faeziix commented 2 years ago

How can I change the version?