tulir / whatsmeow

Go library for the WhatsApp web multidevice API
https://go.mau.fi/whatsmeow
Mozilla Public License 2.0
1.97k stars 368 forks source link

You have been logged out for rusing an unofficial app #561

Open masewo opened 3 months ago

masewo commented 3 months ago

Hello! I am happily using this library to send some messages and files with some of my numbers since over a year. Yesterday I got with two of my numbers a forced logout with the message in the logs and on the phone: "You have been logged out for using an unofficial app."

Anybody also got this and maybe knows what is the reason for this?

I am on version v0.0.0-20240316104858-18372a0653fa.

WhatsApp Image 2024-03-27 at 19 13 59

Logs ``` time="2024-03-27T10:25:32Z" level=info msg="10:25:32.395 [Client 📞/Recv DEBUG] " time="2024-03-27T10:25:32Z" level=info msg="10:25:32.395 [Client 📞/Recv DEBUG] " time="2024-03-27T10:25:32Z" level=info msg="10:25:32.395 [Client 📞 WARN] Received stream end frame" time="2024-03-27T10:25:32Z" level=info msg="10:25:32.396 [Client 📞 WARN] Got 503 stream error, assuming automatic reconnect will handle it" time="2024-03-27T10:25:32Z" level=info msg="10:25:32.518 [Client 📞/Socket ERROR] Error reading from websocket: websocket: close 1006 (abnormal closure): unexpected EOF" time="2024-03-27T10:25:32Z" level=info msg="10:25:32.518 [Client 📞/Socket DEBUG] Frame websocket read pump exiting 0xc00043d110" time="2024-03-27T10:25:32Z" level=info msg="10:25:32.519 [Client 📞 DEBUG] Closing handler queue loop" time="2024-03-27T10:25:32Z" level=info msg="10:25:32.519 [Client 📞 DEBUG] Emitting Disconnected event" time="2024-03-27T10:25:32Z" level=info msg="10:25:32.519 [Client 📞 DEBUG] Automatically reconnecting after 0s" time="2024-03-27T10:25:32Z" level=info msg="10:25:32.519 [Client 📞/Socket DEBUG] Dialing wss://web.whatsapp.com/ws/chat" time="2024-03-27T10:25:32Z" level=info msg="10:25:32.726 [Client 📞/Socket DEBUG] Frame websocket read pump starting 0xc0004e4340" time="2024-03-27T10:25:32Z" level=info msg="10:25:32.844 [Client 📞 DEBUG] Starting handler queue loop" time="2024-03-27T10:25:36Z" level=info msg="10:25:36.875 [Client 📞/Recv DEBUG] " time="2024-03-27T10:25:36Z" level=info msg="10:25:36.875 [Client 📞 DEBUG] Message for 403 connect failure: You have been logged out for using an unofficial app. / Download the official WhatsApp and verify your account to log back in." time="2024-03-27T10:25:36Z" level=info msg="10:25:36.875 [Client 📞 INFO] Got 403: primary device was logged out connect failure, sending LoggedOut event and deleting session" time="2024-03-27T10:25:36Z" level=info msg="10:25:36.989 [Client 📞/Socket ERROR] Error reading from websocket: websocket: close 1006 (abnormal closure): unexpected EOF" time="2024-03-27T10:25:36Z" level=info msg="10:25:36.989 [Client 📞/Socket DEBUG] Frame websocket read pump exiting 0xc0004e4340" time="2024-03-27T10:25:36Z" level=info msg="10:25:36.989 [Client 📞 DEBUG] OnDisconnect() called, but it was expected, so not emitting event" time="2024-03-27T10:25:37Z" level=info msg="10:25:37.039 [Client 📞 DEBUG] Closing handler queue loop" time="2024-03-27T14:26:51Z" level=info msg="14:26:51.777 [Client 📞/Recv DEBUG] " time="2024-03-27T14:26:51Z" level=info msg="14:26:51.777 [Client 📞/Recv DEBUG] " time="2024-03-27T14:26:51Z" level=info msg="14:26:51.777 [Client 📞 WARN] Received stream end frame" time="2024-03-27T14:26:51Z" level=info msg="14:26:51.777 [Client 📞 WARN] Got 503 stream error, assuming automatic reconnect will handle it" time="2024-03-27T14:26:51Z" level=info msg="14:26:51.867 [Client 📞/Socket ERROR] Error reading from websocket: websocket: close 1006 (abnormal closure): unexpected EOF" time="2024-03-27T14:26:51Z" level=info msg="14:26:51.867 [Client 📞/Socket DEBUG] Frame websocket read pump exiting 0xc000a0b040" time="2024-03-27T14:26:51Z" level=info msg="14:26:51.868 [Client 📞 DEBUG] Closing handler queue loop" time="2024-03-27T14:26:51Z" level=info msg="14:26:51.868 [Client 📞 DEBUG] Emitting Disconnected event" time="2024-03-27T14:26:51Z" level=info msg="14:26:51.868 [Client 📞 DEBUG] Automatically reconnecting after 0s" time="2024-03-27T14:26:51Z" level=info msg="14:26:51.868 [Client 📞/Socket DEBUG] Dialing wss://web.whatsapp.com/ws/chat" time="2024-03-27T14:26:52Z" level=info msg="14:26:52.037 [Client 📞/Socket DEBUG] Frame websocket read pump starting 0xc000a26b60" time="2024-03-27T14:26:52Z" level=info msg="14:26:52.144 [Client 📞 DEBUG] Starting handler queue loop" time="2024-03-27T14:26:53Z" level=info msg="14:26:53.780 [Client 📞/Recv DEBUG] " time="2024-03-27T14:26:53Z" level=info msg="14:26:53.780 [Client 📞 DEBUG] Message for 403 connect failure: You have been logged out for using an unofficial app. / Download the official WhatsApp and verify your account to log back in." time="2024-03-27T14:26:53Z" level=info msg="14:26:53.780 [Client 📞 INFO] Got 403: primary device was logged out connect failure, sending LoggedOut event and deleting session" time="2024-03-27T14:26:53Z" level=info msg="14:26:53.885 [Client 📞/Socket ERROR] Error reading from websocket: websocket: close 1006 (abnormal closure): unexpected EOF" time="2024-03-27T14:26:53Z" level=info msg="14:26:53.885 [Client 📞/Socket DEBUG] Frame websocket read pump exiting 0xc000a26b60" time="2024-03-27T14:26:53Z" level=info msg="14:26:53.886 [Client 📞 DEBUG] OnDisconnect() called, but it was expected, so not emitting event" time="2024-03-27T14:26:54Z" level=info msg="14:26:54.216 [Client 📞 DEBUG] Closing handler queue loop" ```
mamur-rezeki commented 3 months ago

I experienced the same thing when using an unofficial Android application.

BastianOrth2 commented 3 months ago

Got also Disconnect with 2 numbers, both running WA-Business image

ssteeltm commented 3 months ago

happened here too with one number that uses business

togume commented 2 months ago

Did this get resolved? What was the reason for this? We're considering using this library, so curious if this will become a blocker. Thanks!

BastianOrth2 commented 2 months ago

No, but also no further disconnects with this warning with other numbers. Used 1 of the 2 numbers again with the service and works until now, not sure if it will lead to a ban in the long run

HoshenKadosh commented 1 month ago

Not sending WAM data, seems to be related, i think we need to work on an implementation for this library too. related: https://github.com/WhiskeySockets/Baileys/pull/708

PurpShell commented 1 month ago

Yes, we'll have to add WAM support here as well. Still working on the base details on Baileys, will contribute/upstream later this month

ALiwoto commented 2 weeks ago

Hi @PurpShell any progress? Is there anything we can do to help?

PurpShell commented 2 weeks ago

Hey! I officially started work on it

ALiwoto commented 2 weeks ago

@PurpShell if you need any kind of help, do tell us! Me and my friends really need it urgently... since our account keeps getting logged out and it's annoying...

If you also need testers (for your forked repo), you can also tell us!