Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
masewo opened this issue Mar 28, 2024 · 13 comments
Open

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

masewo opened this issue Mar 28, 2024 · 13 comments

Comments

@masewo
Copy link

masewo commented Mar 28, 2024

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"
@mamur-rezeki
Copy link

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

@BastianOrth2
Copy link

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

@ssteeltm
Copy link

ssteeltm commented Apr 2, 2024

happened here too with one number that uses business

@togume
Copy link

togume commented Apr 17, 2024

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
Copy link

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
Copy link

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

@PurpShell
Copy link
Contributor

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
Copy link

ALiwoto commented Jun 20, 2024

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

@PurpShell
Copy link
Contributor

Hey! I officially started work on it

@ALiwoto
Copy link

ALiwoto commented Jun 20, 2024

@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
Copy link

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
Copy link
Contributor

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
Copy link

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?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

9 participants