tulir / whatsmeow

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

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

Open masewo opened 8 months ago

masewo commented 8 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 8 months ago

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

BastianOrth2 commented 8 months ago

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

ssteeltm commented 8 months ago

happened here too with one number that uses business

togume commented 7 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 7 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 6 months 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 6 months 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 5 months ago

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

PurpShell commented 5 months ago

Hey! I officially started work on it

ALiwoto commented 5 months 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!

BastianOrth2 commented 4 months ago

Any update on this? Having again some troubles with ban and after contacting the support it shows again the screen of an unoffical whatsapp

WhatsApp Image 2024-07-25 at 14 18 17

Message is something like this: You need the official WhatsApp app to log in.

The app you are using poses data protection and security risks. You can no longer use this app to access your WhatsApp chats.

Get the official WhatsApp app

Download the app from the App Store or directly from WhatsApp. Visit the official website.

Data protection and security on WhatsApp

In the official WhatsApp app, you can set your privacy settings, send secure messages, and access additional features for your protection.

PurpShell commented 4 months ago

Any update on this? Having again some troubles with ban and after contacting the support it shows again the screen of an unoffical whatsapp

WhatsApp Image 2024-07-25 at 14 18 17

Message is something like this: You need the official WhatsApp app to log in.

The app you are using poses data protection and security risks. You can no longer use this app to access your WhatsApp chats.

Get the official WhatsApp app

Download the app from the App Store or directly from WhatsApp. Visit the official website.

Data protection and security on WhatsApp

In the official WhatsApp app, you can set your privacy settings, send secure messages, and access additional features for your protection.

Yes, this is a problem in whatsmeow, feature/wam has been opened and I will be making periodic commits to it

PidgiFTW commented 3 months ago

Do you have any idea why some numbers get 403 and some not? is it some actions that trigger this event? Also, can it result in a perm ban or that updating the app resolves the issue?