Closed maeverson closed 3 years ago
Yes..me. I tried this:
wac, err := whatsapp.NewConn(3 * time.Minute)
// added this
wac.SetClientVersion(2, 2123, 7)
but it still doesn't work for me. If you look at the other open issues, this may not be fixable (unless someone can tell me how to fix??)
It does however look like this library is not a long term solution --> https://github.com/Rhymen/go-whatsapp/issues/622
Changing for SetClientVersion(2, 2142, 12)
as last version of WhatsApp Web .. still fails.
try my api
https://github.com/beshoo/go-whatsapp-rest-api
On Wed, Nov 3, 2021 at 3:35 PM Maéverson Waitman @.***> wrote:
Changing for SetClientVersion(2, 2142, 12) as last version of WhatsApp Web .. still fails.
— 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/631#issuecomment-959091755, or unsubscribe https://github.com/notifications/unsubscribe-auth/ABDLT23JZHXLTCC53ZU6WATUKE3BJANCNFSM5HI4TIXQ . 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.
btw, about the issue:
error decoding login connResp: json: cannot unmarshal array into Go value of type map[string]interface {}\n
it seems that the error is happening with new connections; restoring existing connections is still working
try my api https://github.com/beshoo/go-whatsapp-rest-api …
@beshoo I updated go-whatsapp to the same version of your project's go.mod (v0.1.2-0.20210615184944-2b8a3e9b8aa2
) and the error still happens, so I guess it's also happening in your rest service too.
I was able to get the raw message:
["Cmd",{"type":"update"}]
it looks like WhatsApp bumped their min required version again
Edit:
I updated to:
conn.SetClientVersion(2, 3147, 10)
and it worked
I randomly guessed 3147 so I don't know if it is a real version or not
I was able to get the raw message:
["Cmd",{"type":"update"}]
it looks like WhatsApp bumped their min required version againEdit: I updated to:
conn.SetClientVersion(2, 3147, 10)
and it worked I randomly guessed 3147 so I don't know if it is a real version or not
Work's here with another random number.
Thanks, I can confirm that conn.SetClientVersion(2, 3147, 10)
works for me as well.
Hi. My API works fine until last monday (01 Nov 2021). Today, I can't generate QRCODE. API return this message:
{"label":"http-access","level":"error","msg":"error decoding login resp: json: cannot unmarshal array into go value of type map[string]interface {}\n","service":"go-whatsapp-rest","time":"2021-11-03T10:00:46.488955064-03:00"}
Someone get this error too? It's the end?
Thanks.