venomous0x / WhatsAPI

Interface to WhatsApp Messenger
2.59k stars 2.13k forks source link

not-authorized when trying to login #421

Closed AmirGolan85 closed 11 years ago

AmirGolan85 commented 11 years ago

hey, I used WhatsAPI for some days and everything worked, but suddenly today when i try to connect i get the respone from the server:

rx failure xmlns="urn:ietf:params:xml:ns:xmpp-sasl rx not-authorized not-authorized rx "failure

anyone got an idea how to fix it?

shirioko commented 11 years ago

Format your code, we can't read the response

assegaf commented 11 years ago

as far as I use the api, 2 thing can happen. (1). checkCredential used, (new password generated), but login using old password one, cause not-authorized not-authorized

(2). Your account blocked (so far whatsapp inc using spam filter very advanced technologies, 10 spamming, bang .. blocked. ) if you checkCredential after blocked, its said "blocked" . Register using whatsapp Apps : Your number is not allowed using this service.

AmirGolan85 commented 11 years ago

ok, i was trying to use checkCredential and got blocked.. Thanks..

shirioko commented 11 years ago

That's correct, you will reset your password every time you call checkCredentials. And this is why you should always use the debug parameter: https://github.com/venomous0x/WhatsAPI/blob/master/src/php/whatsprot.class.php#L381

shirioko commented 11 years ago

Did you get blocked or did your password simply change?

AmirGolan85 commented 11 years ago

Nope, i got blocked.. also tried on smartphone and got "Your number is not allowed using this service."

Dynogic commented 11 years ago

Yuck. I got blocked yesterday too. I wonder why.... looks like WhatsAPI is tripping something on the servers over there. Now I'm on my second phone's account.

Any ideas, @shirioko ?

Also, Contacts Sync's authentication is somewhat reliant on the main authentication. That is, I'm calling contact sync prior to logging into to the service... and just now (for the first time ever in a month) Contact Sync was returning Unauthorized. The problem is resolved after starting the service (which successfully logged in)... then Contact Sync worked. Weird.

blackmlm commented 11 years ago

Same here.... my account got blocked yesterday too... and I was not sending messages to more than two numbers.....

and I did not used the checkCredentials......

Dynogic commented 11 years ago

Ooo... fast reply!

I wonder if the official client sets cut off times (where it will refuse to connect after a certain period), and then they just mass block everyone who's still accessing the service based on an expired build string.

blackmlm commented 11 years ago

What r u planning to do?

blackmlm commented 11 years ago

I can pay $10 bucks to get a new number..... but I am afraid I will be trashing those $10 Dlls..... :(

Dynogic commented 11 years ago

Use the Android constants. I hope I don't get banned soon on these >.< Otherwise, I'll have to start sniffing the official client.

Dynogic commented 11 years ago

Contact WhatsApp. See if they'll unban you.

blackmlm commented 11 years ago

I was thinking on paying the $1 on a new number..... to see if it get block..... $1 for a registered paid whatsapp account.... and paid my cell company 10 to get new number...

blackmlm commented 11 years ago

Also, I was not adding the incoming numbers to my address book and sync it.... that might help to.....

assegaf commented 11 years ago

yes, some weird things happen without logic or reason. if sending lot msg (tried 100 more msg) to one number (like normal human conversation) its not getting blocked, but sending to 10 different msg to 10 different number, its getting blocked. (damn I was just testing...) , how it could be, user may have 10 contact or more to send. still humanly ..

@blackmlm

I have number unused, $ base account, contact me I can give you, but test please with pay 1$ . see what happens.

Dynogic commented 11 years ago

@assegaf, how frequent are you sending those messages?

If you're sending 10 messages to 10 different contacts within a second, I have every reason to believe you getting blocked. :smile:

assegaf commented 11 years ago

ups, getting block without sending message today.

so I was thinking every message send back to server by whatsapi, might be different than official client. I mean every message, not only chatmessage, also notification, profile image change, etc .. so its like whatsapp inc, digging a hole, and wait everybody else to fall .. :D

@Dynogic no, its on 1 day, lets say 2 hour one message.

Dynogic commented 11 years ago

@assegaf, did you make another account today, and did it block again?

Do you have this commit https://github.com/venomous0x/WhatsAPI/commit/b62464c7b43d9f6ece86c4c09ec22d4d589b382e

Since yesterday (when my account was blocked), I changed my constants around. I haven't been blocked yet on my second account.

Dynogic commented 11 years ago

@assegaf, I doubt all the messages would be changed around.

assegaf commented 11 years ago

hi @Dynogic yes, using this too, samething.

const WHATSAPP_DEVICE = 'Android';
const WHATSAPP_VER = '2.10.750';

not sure whats happen, but I think its the way we use the api and responding each message send by server whatsapp. or whatsapp inc has employee reading all our message, and block by mouse click and a hand .. :D

Dynogic commented 11 years ago

@assegaf

Alright. If I'm banned again.. I'll launch a sniffer and investigate.

shirioko commented 11 years ago

CURSES! My dev number got blocked. Now it's personal. >:(

jonnywilliamson commented 11 years ago

!!!

blackmlm commented 11 years ago

I got a new account and Paid for it the $1...... I am using the same code as when they blocked me..... just to try..... lets see if they will respect paid accounts....

will post results later....

assegaf commented 11 years ago

Ok lets see whats happen. I hope u still saving those logs from login until blocked again from new paid account

sent using android mobiles On Jul 22, 2013 7:11 AM, "blackmlm" notifications@github.com wrote:

I got a new account and Paid for it the $1...... I am using the same code as when they blocked me..... just to try..... lets see if they will respect paid accounts....

will post results later....

— Reply to this email directly or view it on GitHubhttps://github.com/venomous0x/WhatsAPI/issues/421#issuecomment-21319761 .

shirioko commented 11 years ago

Don't get your hopes up, paid accounts didn't do shit when people were being blocked for sending a lot of messages

blackmlm commented 11 years ago

Confirmed..... They did not care..... they closed the account...... I sent only 2 messages...........

blackmlm commented 11 years ago

I know how to get free phone accounts for testing and development.... I think this will help, but I just don't want to post it here, I know they are reading all of the comments and laughing out loud. If any of you needs this info, email me blackmlm at g mail dot com with reference of who you are from the github....

assegaf commented 11 years ago

wew, 2 message and block. thing are getting more serious ..

so basically they (whatsapp people) laugh cause they close the hole based on what open source api do .. the method blocking maybe simple : u register using new token, new whatsapp client token, version etc .. but the way communicate too old, old ways,

blackmlm commented 11 years ago

I registered using a cell phone and paid for it like a regular user using their android client. I got the password using MissVenom, then I moved account to a whatsapi client. Bang, closed within few hours (only 2 messages sent)

shirioko commented 11 years ago

Sync contacts

avdeshkataria commented 9 years ago

Hi, I'm Whatsapp api version 15.4.29(https://www.nuget.org/packages/WhatsAppAPI/). I generate the password of sender using WART. 2 months back, the code was working and able to send messages. but suddenly its stopped working. Now i'm getting "Not - Authorized" error while log in. Code :


WhatsApp wa = new WhatsApp(sender1, password, "ajcfday", true); // wa.Login(); wa.OnConnectSuccess += () => { wa.OnLoginSuccess += (phoneNumber, data) => { wa.SendMessage(rcvr/* Number */, mainMessage); result = result + Environment.NewLine + "Sender: " + sender1 + "--- Message Sent"; };

                wa.OnLoginFailed +=
                    (data) =>
                    {
                        result = result + Environment.NewLine + "Sender: " + sender1 + "--- Result ----> "+ data;

//"Not - Authorized" Error is Coming here <-------------------------------------- // MessageBox.Show(data); }; wa.Login(); }; string sender2 = sender1; wa.OnConnectFailed += (ex) => { // MessageBox.Show(ex.Message); result = result + Environment.NewLine + "Sender: " + sender2 + "--- Exception occur ----> " + ex.Message; }; wa.Connect();


Please help................... My email is is : avdeshkataria@gmail.com

fa-deve commented 9 years ago

i have same problem i used this api https://github.com/mgp25/Chat-API-NET and not-authorized when trying to login ???

Floy2000 commented 9 years ago

i have same problem too Please help) admin@kgti.ru

VivekSingh573 commented 8 years ago

Any one can send the WhatsAppAPI.dll new version,

because i have API problem, i sent the image , audio and video from my C# code . but today (04/Dec/2015) morning its not orking

rameshrdev commented 8 years ago

How to fix these when login 'LoginFailureException' not-authorized How to register using exampleRegister.php or registerTool.php Before register code required or after it.

This api currently working or not

srburton commented 8 years ago

april / 2016 working ?

VivekSingh573 commented 8 years ago

WART IS NOT WORKING On 16-Apr-2016 10:51 PM, "renatoprogramer" notifications@github.com wrote:

april / 2016 working ?

— You are receiving this because you commented. Reply to this email directly or view it on GitHub https://github.com/venomous0x/WhatsAPI/issues/421#issuecomment-210861177