venomous0x / WhatsAPI

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

Problem Login LoginWithPassword #1217

Open pbutarbutar opened 8 years ago

pbutarbutar commented 8 years ago

Hi master Mgp25 please help me.

I have problem event I run method $login = $w->LoginWithPassword($password); Prosess Registration normally success and correct. But I m running to send message show error like this ,

tx stream:features/stream:features

tx

rx

rx stream:features/stream:features

rx 9008423dcf0d49e4743bf8632418bd73719a1c28

end off bugs ,

PHP Warning: socket_write(): unable to write to socket [32]: Broken pipe in /var/www/html/API/Chat-API-master/src/whatsprot.class.php on line 2748 tx

My Script : <?php set_time_limit(0); require_once DIR.'/../src/whatsprot.class.php'; require_once DIR.'/../src//events/MyEvents.php'; $username = '62895701126509'; $password = 'VygT6qd0Qv396vGJ6heTp+JIxd0='; $nickname = 'XLWS'; $debug = true; $w = new WhatsProt($username, $nickname, $debug); $conn = $w->Connect(); $login = $w->LoginWithPassword($password);

I think may be problem from WHATSAPP_SERVER because I'm try check open port and result is closed port. Is problem because WHATSAPP_SERVER or problem userid & passwor but I have sure userid & password is right. I think team's in here have solution for me. Thanks a lot of

hazemmatouk commented 7 years ago

the problem is there is a domain (s.whastapp.net) has been stopped by WhatsApp, so you need to alternative domain to login through to WhatsApp. if got this domain, kindly shard with us

AlexanderSRocha commented 7 years ago

I have the same problem.

I looked for yowsup lib for python and it works. It still use the domain "s.whastapp.net" also have some endpoints.

ENDPOINTS = ( ("e1.whatsapp.net", 443), ("e2.whatsapp.net", 443), ("e3.whatsapp.net", 443), ("e4.whatsapp.net", 443), ("e5.whatsapp.net", 443), ("e6.whatsapp.net", 443), ("e7.whatsapp.net", 443), ("e8.whatsapp.net", 443), ("e9.whatsapp.net", 443), ("e10.whatsapp.net", 443), ("e11.whatsapp.net", 443), ("e12.whatsapp.net", 443), ("e13.whatsapp.net", 443), ("e14.whatsapp.net", 443), ("e15.whatsapp.net", 443), ("e16.whatsapp.net", 443), )

I don't know how to use this on the chat-api code.

hazemmatouk commented 7 years ago

the response of tracert s.whatsapp.net: Unable to resolve target system name s.whatsapp.net, but there is a response of tracert e2.whatsapp.net.

desrajk commented 6 years ago

Hi Anyone please help. i can't loginWithPassword. its continue loading.. I don't know . what happening there.