danielgross / whatsapp-gpt

MIT License
3.07k stars 596 forks source link

Can't scan QR Code Client Error Client Outdated (405) #85

Open AndDevDE opened 1 year ago

AndDevDE commented 1 year ago

When I run main.go and try to scan the QR Code it gives me following error:

20:23:11.858 [Client/Socket DEBUG] Dialing wss://web.whatsapp.com/ws/chat 20:23:12.501 [Client/Socket DEBUG] Frame websocket read pump starting 0xc00019e000 20:23:15.014 [Client/Recv DEBUG] 20:23:15.024 [Client ERROR] Client outdated (405) connect failure 20:23:15.025 [Client/Socket ERROR] Error reading from websocket: websocket: close 1006 (abnormal closure): unexpected EOF

How to fix this?

Souvik111 commented 1 year ago

same

Souvik111 commented 1 year ago

image

Huskynarr commented 1 year ago

You need only to update the whatsapp dependency. Or use my repo :)

TobiPower20 commented 11 months ago

i have the same problem:

13:31:21.655←[36m [Database INFO] Upgrading database to v1←[0m 13:31:21.697←[36m [Database INFO] Upgrading database to v2←[0m 13:31:21.700←[36m [Database INFO] Upgrading database to v3←[0m 13:31:21.705 [Client/Socket DEBUG] Dialing wss://web.whatsapp.com/ws/chat←[0m 13:31:21.873 [Client/Socket DEBUG] Frame websocket read pump starting 0xc00021e000←[0m 13:31:23.371 [Client/Recv DEBUG] ←[0m 13:31:23.371←[31m [Client ERROR] Client outdated (405) connect failure←[0m 13:31:23.371←[31m [Client/Socket ERROR] Error reading from websocket: websocket: close 1006 (abnormal closure): unexpected EOF←[0m 13:31:23.372 [Client/Socket DEBUG] Frame websocket read pump exiting 0xc00021e000←[0m 13:31:23.371 [Client/QRChannel DEBUG] Closing channel with status {Event:err-client-outdated Error: Code: Timeout:0s}←[0m Login event: err-client-outdated 13:31:23.372 [Client DEBUG] OnDisconnect() called, but it was expected, so not emitting event←[0m

can someone help me. i really want to get this thing up and running