tulir / whatsmeow

Go library for the WhatsApp web multidevice API

Home Page:https://go.mau.fi/whatsmeow

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

You have been logged out for rusing an unofficial app

masewo opened this issue Β· comments

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] <stream:error code=\"503\"/>"
time="2024-03-27T10:25:32Z" level=info msg="10:25:32.395 [Client πŸ“ž/Recv DEBUG] <xmlstreamend/>"
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] <failure location=\"nao\" logout_main_button_text=\"Log in\" logout_message_header=\"You have been logged out for using an unofficial app.\" logout_message_locale=\"en\" logout_message_subtext=\"Download the official WhatsApp and verify your account to log back in.\" logout_secondary_button_text=\"Download WhatsApp\" logout_secondary_button_url=\"https://whatsapp.com/download\" reason=\"403\"/>"
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] <stream:error code=\"503\"/>"
time="2024-03-27T14:26:51Z" level=info msg="14:26:51.777 [Client πŸ“ž/Recv DEBUG] <xmlstreamend/>"
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] <failure location=\"rva\" logout_main_button_text=\"Log in\" logout_message_header=\"You have been logged out for using an unofficial app.\" logout_message_locale=\"en\" logout_message_subtext=\"Download the official WhatsApp and verify your account to log back in.\" logout_secondary_button_text=\"Download WhatsApp\" logout_secondary_button_url=\"https://whatsapp.com/download\" reason=\"403\"/>"
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"

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

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

happened here too with one number that uses business

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!

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

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

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

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

Hey! I officially started work on it

@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!

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.

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

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?