venomous0x / WhatsAPI

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

Error Sending a message!!! #1194

Open KingOfDragons opened 8 years ago

KingOfDragons commented 8 years ago

It shows me an error when i send a message

code:

$wa->connect();
$wa->loginWithPassword($password);
$wa->sendMessage($contact, $message);
while($wa->pollMessage());
$wa->disconnect();

log

[2016-01-25 01:43:37] [INFO]: Connected to WA server
[2016-01-25 01:43:38] [INFO]: 5216672939915 successfully logged in
[2016-01-25 01:43:38] [INFO]: text message with id eec2da4953c2f63a184765 sent to 5216673052551
[2016-01-25 01:43:38] [ERROR]: Iq error with 1 id
[2016-01-25 01:43:40] [INFO]: Disconnected from WA server

debug:

tx  <stream:features></stream:features>

tx  <auth user="5216672939915" mechanism="WAUTH-2">a60a6d893532313636373239333939313503b3f844a26d5a914d93241a53aa613101d7e5ef31343533363832363038</auth>

rx  <from s.whatsapp.net=""></from>

rx  <stream:features></stream:features>

rx  <challenge>afde1390f9b8a3a463690fe8eaa757ba21e5a3e5</challenge>

tx  <response>df9605dab75780e0055688ed16d7da6ea9e06d2592e3a1ee7e660de416e92a9cba8882025aeae4ef874205ce4adec1b49715343f625d756a4dad9e5e886e7f91c12247fe2143e65b39fd2300d328aa</response>

rx  <success t="1453682607" props="4" kind="free" status="active" creation="1453328037" expiration="4444444444">9b5306fbe7a8efc937f285c878b55e2963a4f8a2</success>

tx  <presence name="GVL" type="available"></presence>

tx  <iq id="01" xmlns="jabber:iq:privacy" type="get">
tx    <query>
tx      <list name="default"></list>
tx    </query>
tx  </iq>

tx  <iq id="02" xmlns="urn:xmpp:whatsapp:push" type="get" to="s.whatsapp.net">
tx    <config></config>
tx  </iq>

tx  <message to="5216673052551@s.whatsapp.net" type="text" id="0c1cd03f5d3acc81d79a64" t="1453682609" notify="GVL">
tx    <body>test 01:43</body>
tx  </message>

rx  <receipt from="5216673052551@s.whatsapp.net" id="a5b874b63a6d7b8b106e7b" offline="1" t="1453682391"></receipt>

tx  <ack to="5216673052551@s.whatsapp.net" class="receipt" id="a5b874b63a6d7b8b106e7b"></ack>

rx  <ib from="s.whatsapp.net">
rx    <offline count="1"></offline>
rx  </ib>

rx  <presence from="5216672939915@s.whatsapp.net"></presence>

rx  <ack from="5216673052551@s.whatsapp.net" class="message" id="0c1cd03f5d3acc81d79a64" t="1453682607"></ack>

rx  <iq from="5216672939915@s.whatsapp.net" type="error" id="1">
rx    <error code="404" text="item-not-found"></error>
rx  </iq>

rx  <iq from="s.whatsapp.net" type="result" id="02">
rx    <config platform="gcm" id="Xz5pN_A9nww:APA91bqg3FFZs6YJrR1c5bnQqmWt9wJ7h2bL7wAbGm5VemwE2BNtOzHsBEzysNWpyUuvek_d4CwZ-OMwXwEyaz8jT_uzyU9aU3m_hJQkHceJEZg_T_OqATVDyA5z8dDLiz8LPGi2KOca"></config>
rx  </iq>