Rhymen / go-whatsapp

WhatsApp Web API
MIT License
2.04k stars 491 forks source link

Unable to create new sessions #627

Closed vocuzi closed 2 years ago

vocuzi commented 2 years ago

Unable to create or restore sessions, getting the following error :

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

gizmo-ds commented 2 years ago

https://github.com/Rhymen/go-whatsapp/blob/29b13751fedc61341e8b6fc365629f84b3d71eaf/session.go#L21

var waVersion = []int{2, 2142, 12}
0xhex commented 2 years ago

https://github.com/Rhymen/go-whatsapp/blob/29b13751fedc61341e8b6fc365629f84b3d71eaf/session.go#L21

var waVersion = []int{2, 2142, 12}

thank you it is working,

how can i find out the whatsapp version?

ajaydeta commented 2 years ago

@GizmoOAO thank you it is working.

RafaelIngenium commented 2 years ago

The error still persists even when updating : var waVersion = []int{2, 2142, 12}

beshoo commented 2 years ago

I have no problem restoring the session.

On Tue, Nov 2, 2021 at 3:47 PM tavidian @.***> wrote:

The error still persists even when updating : var waVersion = []int{2, 2142, 12}

I'm having the same issue

— You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub https://github.com/Rhymen/go-whatsapp/issues/627#issuecomment-957611408, or unsubscribe https://github.com/notifications/unsubscribe-auth/ABDLT24INWVUXDMKP2IQWK3UJ7TXVANCNFSM5HFVPLKQ . Triage notifications on the go with GitHub Mobile for iOS https://apps.apple.com/app/apple-store/id1477376905?ct=notification-email&mt=8&pt=524675 or Android https://play.google.com/store/apps/details?id=com.github.android&referrer=utm_campaign%3Dnotification-email%26utm_medium%3Demail%26utm_source%3Dgithub.

beshoo commented 2 years ago

and I have no problem creating a new session!

On Tue, Nov 2, 2021 at 3:59 PM beshoo @.***> wrote:

I have no problem restoring the session.

On Tue, Nov 2, 2021 at 3:47 PM tavidian @.***> wrote:

The error still persists even when updating : var waVersion = []int{2, 2142, 12}

I'm having the same issue

— You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub https://github.com/Rhymen/go-whatsapp/issues/627#issuecomment-957611408, or unsubscribe https://github.com/notifications/unsubscribe-auth/ABDLT24INWVUXDMKP2IQWK3UJ7TXVANCNFSM5HFVPLKQ . Triage notifications on the go with GitHub Mobile for iOS https://apps.apple.com/app/apple-store/id1477376905?ct=notification-email&mt=8&pt=524675 or Android https://play.google.com/store/apps/details?id=com.github.android&referrer=utm_campaign%3Dnotification-email%26utm_medium%3Demail%26utm_source%3Dgithub.