Author Topic: WhatsApp protocol  (Read 458225 times)

0 Members and 4 Guests are viewing this topic.

Offline Ducados

Re: WhatsApp protocol
« Reply #540 on: 17 05 2015, 13:09:16 »
Today, 30 instances of this error in one hour and half. I’m in development mode and I update every time it’s proposed.

Sometimes I find it offline too.

I'm from Spain and you seem to be a spaniard too.

Maybe it has something to do with the disconnections issue...
 

Offline Kajuru

Re: WhatsApp protocol
« Reply #541 on: 21 05 2015, 20:56:29 »
Since we cant use IEView on chat windows(afaik), is there any possibility that, whenever we receive an image/movie/sound to save it into some folder automatically? Or it belongs to srmm-like modules?
 

Offline Chungalin

  • Jr. Member
  • **
  • Posts: 63
  • Country: es
Re: WhatsApp protocol
« Reply #542 on: 27 05 2015, 17:51:02 »
Today I’ve been disconnected and after that I’ve been unable to reconnect. Finally I try to re-register and it fails (Server response: {"status":"fail","reason":"blocked"}). I have tried just once. And it doesn’t say for how long I’ll be blocked... :-\

Update: several hours later I’ve turned on my smartphone, official WhatsApp requires verify and then it replies: "Your number xxxxxx is no longer allowed to use our service". Am I toasted?

Update2: it’s this message:

http://www.whatsapp.com/faq/en/general/23154266

So it seems that is permanent!! From that list of "sins", my only one is to use unofficial client.
« Last Edit: 28 05 2015, 09:29:13 by Chungalin »
 

Offline Ducados

Re: WhatsApp protocol
« Reply #543 on: 28 05 2015, 14:22:02 »
This morning I've fired the WA in my phone (with Miranda closed) and it asked to register my phone, which it did successfully.

Then I had to wait a couple of hours and register back the WA in Miranda.

The result is still the same: it connects fine at startup but disconnects randomnly and then is unable to connect again until I restart Miranda.

Log for the startup connection:

Quote
[16:06:23 1AC8] [WhatsApp_1] ===== Beginning SetStatus process
[16:06:24 38B8] [WhatsApp_1] Connecting...
[16:06:24 38B8] [WhatsApp_1] Connection request to c.whatsapp.net:443 (Flags 4)....
[16:06:24 38B8] [WhatsApp_1] (0641F068) Connecting to server c.whatsapp.net:443....
[16:06:24 38B8] [WhatsApp_1] (0641F068) Connecting to ip 173.192.222.169:443 ....
[16:06:24 38B8] [WhatsApp_1] (972) Connected to c.whatsapp.net:443
[16:06:24 38B8] [WhatsApp_1] >> sent stream start
[16:06:24 38B8] [WhatsApp_1] >> sent features
[16:06:24 38B8] [WhatsApp_1] >> send auth, auth blob size 0
[16:06:24 38B8] [WhatsApp_1] >> read stream start
[16:06:24 38B8] [WhatsApp_1] >> <stream:features>
[16:06:24 38B8] [WhatsApp_1] >>
[16:06:24 38B8] [WhatsApp_1] >> Send response
[16:06:24 38B8] [WhatsApp_1] >> Read success
[16:06:24 38B8] [WhatsApp_1] XML written:
[16:06:24 38B8] [WhatsApp_1] Set status to online


Log for the failed connection:

Quote
[15:57:44 029C] [WhatsApp_1] ===== Beginning SetStatus process
[15:57:44 2A10] [WhatsApp_1] Connecting...
[15:57:44 2A10] [WhatsApp_1] Connection request to c.whatsapp.net:443 (Flags 4)....
[15:57:44 2A10] [WhatsApp_1] (08331090) Connecting to server c.whatsapp.net:443....
[15:57:44 2A10] [WhatsApp_1] (08331090) Connecting to ip 173.192.222.170:443 ....
[15:57:44 2A10] [WhatsApp_1] (704) Connected to c.whatsapp.net:443
[15:57:44 2A10] [WhatsApp_1] >> sent stream start
[15:57:44 2A10] [WhatsApp_1] >> sent features
[15:57:44 2A10] [WhatsApp_1] >> send auth, auth blob size 20
[15:57:44 2A10] [WhatsApp_1] >> read stream start
[15:57:44 2A10] [WhatsApp_1] >> <stream:features>
</stream:features>
[15:57:44 2A10] [WhatsApp_1] >> <challenge>
Mβ^$nχ―+ξ?gΝFRdβ</challenge>
[15:57:44 2A10] [WhatsApp_1] >> Send response
[15:57:44 2A10] [WhatsApp_1] Exception: Login failure
[15:57:44 2A10] [WhatsApp_1] (08331090:704) Connection closed internal
[15:57:44 2A10] [WhatsApp_1] (08331090:4294967295) Connection closed
[15:57:44 2A10] [WhatsApp_1] Set status to offline
[15:57:44 2A10] [WhatsApp_1] Break out from loop

There is a "challenge" entry in the failed connection. According to Google, this seems to be a part of the standard authentication procedure, but WA server doesn't seem to like the response from my client. Is that the problem?
 

Offline Ducados

Re: WhatsApp protocol
« Reply #544 on: 28 05 2015, 14:32:41 »
Mmmm...

After messing up a bit with this, I've found this message from server:

Quote
[16:28:43 1AC8] [WhatsApp_1] (087B5A58:912) Data received
{"status":"ok","login":"myphonenr","pw":"mypass","type":"existing","expiration":1446021566,"kind":"free","price":"0,89 \u20ac","cost":"0.89","currency":"EUR","price_expiration":1435582017}
[16:28:43 1AC8] [WhatsApp_1] (087B5A58:912) Connection closed internal
[16:28:43 1AC8] [WhatsApp_1] (087B5A58:4294967295) Connection closed
[16:28:43 1AC8] [WhatsApp_1] Server response: {"status":"ok","login":"myphonenr","pw":"mypass","type":"existing","expiration":1446021566,"kind":"free","price":"0,89 \u20ac","cost":"0.89","currency":"EUR","price_expiration":1435582017}

It is asking for me to pay?
 

Offline Chungalin

  • Jr. Member
  • **
  • Posts: 63
  • Country: es
Re: WhatsApp protocol
« Reply #545 on: 28 05 2015, 16:15:27 »
"1446021566" is 28 October 2015 (encoded in Unix time format), so it doesn’t seem that your free time has expired.
 

Offline Ducados

Re: WhatsApp protocol
« Reply #546 on: 28 05 2015, 16:26:41 »
"1446021566" is 28 October 2015 (encoded in Unix time format), so it doesn’t seem that your free time has expired.

Yes.

I fired back the WA in the phone and it asked again to verify the phone because the account was used in  another device.

Looks like Miranda can't trick the server anymore. I've updated to the development version to see if it fixes this. It's a very easy process using Plugin updater, but I have to wait 7 hours to register again.
« Last Edit: 28 05 2015, 16:29:14 by Ducados »
 

Offline Chungalin

  • Jr. Member
  • **
  • Posts: 63
  • Country: es
Re: WhatsApp protocol
« Reply #547 on: 28 05 2015, 16:35:02 »
I was in development mode too, but I was fired by WhatsApp anyway... :(
 

Offline Ducados

Re: WhatsApp protocol
« Reply #548 on: 29 05 2015, 13:28:17 »
I think I should update this...

After the waiting period I regged Miranda again with WA and now is working OK. It doesn't disconnect randomly and is able to reconnect after being disconnected.

I did nothing special except disabling the KeepStatus plugin. Still using stable.
« Last Edit: 29 05 2015, 13:36:28 by Ducados »
 

Offline Chungalin

  • Jr. Member
  • **
  • Posts: 63
  • Country: es
Re: WhatsApp protocol
« Reply #549 on: 30 05 2015, 12:36:58 »
They have "forgiven" me and now it’s working apparently fine. I’m still wonderin why the hell they banned me. However, netlog keeps showing stream error entries every 5-10 minutes:

Code: [Select]
[14:25:34 0400] [WhatsApp_1] XML received
<stream:error>
<ack>
</ack>
</stream:error>
[14:25:34 0400] [WhatsApp_1] Exit from read-loop
[14:25:34 0400] [WhatsApp_1] (00BE86D0:944) Connection closed internal
[14:25:34 0400] [WhatsApp_1] (00BE86D0:4294967295) Connection closed
[14:25:34 0400] [WhatsApp_1] Connecting...
[14:25:34 0400] [WhatsApp_1] Connection request to c.whatsapp.net:5222 (Flags 4)....
[14:25:34 0400] [WhatsApp_1] (00BE86D0) Connecting to server c.whatsapp.net:5222....
[14:25:34 0400] [WhatsApp_1] (00BE86D0) Connecting to ip 173.192.222.169:5222 ....
[14:25:34 0400] [WhatsApp_1] (944) Connected to c.whatsapp.net:5222
[14:25:34 0400] [WhatsApp_1] >> sent stream start
[14:25:34 0400] [WhatsApp_1] >> sent features
[14:25:34 0400] [WhatsApp_1] >> send auth, auth blob size 20
[14:25:34 0400] [WhatsApp_1] >> read stream start

The automatic reconnect is successful, so I wouldn’t notice anything if I wouldn’t read netlog, but I think that someone should take care of this. Perhaps is absolutely normal. Can anyone else check netlog and search for <stream:error> occurrences?

On the other hand, this is not going well:
https://github.com/venomous0x/WhatsAPI

« Last Edit: 30 05 2015, 12:55:46 by Chungalin »
 

Offline Thug

Re: WhatsApp protocol
« Reply #550 on: 06 06 2015, 06:34:32 »
How can I quit whatsapp chat groups? Every time I delete one it returns after miranda reloads.
 

Offline watcher

Re: WhatsApp protocol
« Reply #551 on: 06 06 2015, 07:13:18 »
How can I quit whatsapp chat groups? Every time I delete one it returns after miranda reloads.

Spoiler
[close]
Пожалуйста, внимательно прочтите правила постинга перед тем, как открыть новую тему.
Please read forum rules.
 

Offline mida

  • Full Member
  • ***
  • Posts: 182
  • Country: at
Odp: WhatsApp protocol
« Reply #552 on: 08 06 2015, 15:59:04 »
i did nothing on miranda, it was minimized to tray and got a crash
dont know how i can reproduce it but maybe the log file helps to fix

crashlog: http://pastebin.com/raw.php?i=zSfN3J0s

edit: got now a crash with same problem
http://pastebin.com/raw.php?i=VgFtEf4g
« Last Edit: 08 06 2015, 18:37:27 by mida »
sorry for my bad english
 

Offline RiP

  • Newbie
  • *
  • Posts: 4
Re: WhatsApp protocol
« Reply #553 on: 12 06 2015, 11:16:37 »
How to send message with WhatsApp plugin? It doesn't load my contacts  ???
 

Offline Chungalin

  • Jr. Member
  • **
  • Posts: 63
  • Country: es
Re: WhatsApp protocol
« Reply #554 on: 12 06 2015, 15:28:47 »
You have to add Contacts to Miranda from scratch.