{"action":"closed","issue":{"url":"https://api.github.com/repos/mgp25/Chat-API/issues/1871","repository_url":"https://api.github.com/repos/mgp25/Chat-API","labels_url":"https://api.github.com/repos/mgp25/Chat-API/issues/1871/labels{/name}","comments_url":"https://api.github.com/repos/mgp25/Chat-API/issues/1871/comments","events_url":"https://api.github.com/repos/mgp25/Chat-API/issues/1871/events","html_url":"https://github.com/mgp25/Chat-API/issues/1871","id":151767421,"number":1871,"title":"New number got shutdown","user":{"login":"samuelg78","id":12243527,"avatar_url":"https://avatars.githubusercontent.com/u/12243527?v=3","gravatar_id":"","url":"https://api.github.com/users/samuelg78","html_url":"https://github.com/samuelg78","followers_url":"https://api.github.com/users/samuelg78/followers","following_url":"https://api.github.com/users/samuelg78/following{/other_user}","gists_url":"https://api.github.com/users/samuelg78/gists{/gist_id}","starred_url":"https://api.github.com/users/samuelg78/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/samuelg78/subscriptions","organizations_url":"https://api.github.com/users/samuelg78/orgs","repos_url":"https://api.github.com/users/samuelg78/repos","events_url":"https://api.github.com/users/samuelg78/events{/privacy}","received_events_url":"https://api.github.com/users/samuelg78/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":2,"created_at":"2016-04-28T23:45:06Z","updated_at":"2016-04-30T00:16:10Z","closed_at":"2016-04-30T00:16:10Z","body":"Make sure these boxes are checked before submitting your issue -- thank you!\r\n\r\n\r\n- [x ] You are using PHP > 5.6\r\n- [x ] You have installed all extensions and modules listed in [here](https://github.com/mgp25/Chat-API/wiki/Dependencies). PHP Protobuf and Curve25519 are required!\r\n- [x ] You have checked if someone has already asked the same issue you have.\r\n- [x ] You have read the [wiki](https://github.com/mgp25/Chat-API/wiki).\r\n- [x] Is not a programming question.\r\n- [ x] You are using latest Chat API code.\r\n\r\n\r\n### Error\r\nPost your error below:\r\nNumber running for 24 hour then got shutdown response from whatsapp, subsequent attempt to login again and got the not-authorized response.\r\n```xml\r\ntx  <stream:features></stream:features>\r\n\r\ntx  <auth user=\"xxxxxxxxx\" mechanism=\"WAUTH-2\">acececee36353833373238303034ca33\r\nceed46147e730c1d91a40f8493d78ba2d6db31343631383836353533</auth>\r\n\r\nrx  <from s.whatsapp.net=\"\"></from>\r\n\r\nrx  <stream:features></stream:features>\r\n\r\nrx  <challenge>4d684205c10d0074973c0f36431a48c2fe26ecbc</challenge>\r\n\r\ntx  <response>17bb652ca5f53a2f1b36dafdd10bf97c594bcb0be156d229b9080571e4e67803bc\r\na0d4a1d5f470c2d10a8df3ae9c5658777970208e2b300c197cb1f1421578e64a4dceff48bed61de0\r\n24009f</response>\r\n\r\nrx  <failure>\r\nrx    <not-authorized></not-authorized>\r\nrx  </failure>\r\n\r\n\r\nFatal error: Uncaught exception 'LoginFailureException' in C:\\xampp\\htdocs\\Chat-\r\nAPI-master\\src\\Login.php:54\r\n```\r\n\r\n\r\n### Debug log\r\n```xml\r\ntx  <stream:features></stream:features>\r\n\r\ntx  <auth user=\"xxxxxxxxx\" mechanism=\"WAUTH-2\">98ff0bfa36353833373238303034b9a\r\nde0431ca5dda3d75fe0abe6a7fed7ab12bea31343631383633323333</auth>\r\n\r\nrx  <from s.whatsapp.net=\"\"></from>\r\n\r\nrx  <stream:features></stream:features>\r\n\r\nrx  <challenge>11d317bdbcf8e07867f0aa089d2151e5c6956119</challenge>\r\n\r\ntx  <response>c9f67ff1051d31f29cca75963ce7d25ef6f3bda02a922f167414aac7abd1da4ad\r\n6e65e8135aa0d56742114dbe6b3e74f29d180b3ec6a8cc3634761cb2fe5d2c8e6d20aa454a35c0f\r\n9e53ce</response>\r\n\r\nrx  <success t=\"1461863235\" props=\"5\" kind=\"free\" status=\"active\" creation=\"146\r\n782848\" expiration=\"4444444444\">ca33ceed46147e730c1d91a40f8493d78ba2d6db</succe\r\ns>\r\n\r\ntx  <presence name=\"WhatsAPI Test\" type=\"available\"></presence>\r\n\r\ntx  <iq id=\"01\" xmlns=\"jabber:iq:privacy\" type=\"get\">\r\ntx    <query>\r\ntx      <list name=\"default\"></list>\r\ntx    </query>\r\ntx  </iq>\r\n\r\ntx  <iq id=\"02\" xmlns=\"urn:xmpp:whatsapp:push\" type=\"get\" to=\"s.whatsapp.net\">\r\ntx    <config></config>\r\ntx  </iq>\r\n\r\ntx  <iq id=\"03\" xmlns=\"urn:xmpp:whatsapp:push\" type=\"get\" to=\"s.whatsapp.net\">\r\ntx    <config></config>\r\ntx  </iq>\r\n\r\ntx  <iq id=\"04\" type=\"get\" xmlns=\"w\" to=\"s.whatsapp.net\">\r\ntx    <props></props>\r\ntx  </iq>\r\n\r\ntx  <iq id=\"05\" type=\"get\" xmlns=\"w:g2\" to=\"g.us\">\r\ntx    <participating></participating>\r\ntx  </iq>\r\n\r\ntx  <iq id=\"06\" xmlns=\"w:b\" type=\"get\" to=\"s.whatsapp.net\">\r\ntx    <lists></lists>\r\ntx  </iq>\r\n\r\ntx  <iq id=\"07\" xmlns=\"jabber:iq:privacy\" type=\"get\">\r\ntx    <query>\r\ntx      <list name=\"default\"></list>\r\ntx    </query>\r\ntx  </iq>\r\n\r\ntx  <iq id=\"08\" xmlns=\"urn:xmpp:whatsapp:sync\" type=\"get\">\r\ntx    <sync mode=\"delta\" context=\"interactive\" sid=\"sync_sid_full_d5553bc3-880b\r\n487c-a024-ea69858fcc3e\" index=\"0\" last=\"true\">\r\ntx      <user>+xxxxxxxxx</user>\r\ntx    </sync>\r\ntx  </iq>\r\n\r\nrx  <ib from=\"s.whatsapp.net\">\r\nrx    <offline count=\"0\"></offline>\r\nrx  </ib>\r\n\r\nrx  <presence from=\"xxxxxxxxx@s.whatsapp.net\"></presence>\r\n\r\nrx  <iq from=\"s.whatsapp.net\" type=\"result\" id=\"04\">\r\nrx    <props version=\"5\">\r\nrx      <prop name=\"allow\" value=\"all\"></prop>\r\nrx      <prop name=\"archive\" value=\"1\"></prop>\r\nrx      <prop name=\"audio_opus\" value=\"1\"></prop>\r\nrx      <prop name=\"broadcast\" value=\"50\"></prop>\r\nrx      <prop name=\"call\" value=\"1\"></prop>\r\nrx      <prop name=\"checkmarks\" value=\"0\"></prop>\r\nrx      <prop name=\"doc_types\" value=\"csv,doc,docx,pdf,ppt,pptx,rtf,txt,xls,xls\r\n\"></prop>\r\nrx      <prop name=\"e2e_audio\" value=\"0\"></prop>\r\nrx      <prop name=\"e2e_blists\" value=\"1\"></prop>\r\nrx      <prop name=\"e2e_groups\" value=\"1\"></prop>\r\nrx      <prop name=\"e2e_images\" value=\"1\"></prop>\r\nrx      <prop name=\"e2e_video\" value=\"0\"></prop>\r\nrx      <prop name=\"e2e_voip\" value=\"1\"></prop>\r\nrx      <prop name=\"file_max_size\" value=\"100\"></prop>\r\nrx      <prop name=\"force_long_connect\" value=\"0\"></prop>\r\nrx      <prop name=\"groups_v2\" value=\"1\"></prop>\r\nrx      <prop name=\"identity_verification\" value=\"1\"></prop>\r\nrx      <prop name=\"image_max_edge\" value=\"1600\"></prop>\r\nrx      <prop name=\"image_max_kbytes\" value=\"5120\"></prop>\r\nrx      <prop name=\"image_quality\" value=\"80\"></prop>\r\nrx      <prop name=\"library\" value=\"0\"></prop>\r\nrx      <prop name=\"lists\" value=\"1\"></prop>\r\nrx      <prop name=\"location\" value=\"0\"></prop>\r\nrx      <prop name=\"max_groups\" value=\"9999\"></prop>\r\nrx      <prop name=\"max_participants\" value=\"257\"></prop>\r\nrx      <prop name=\"max_subject\" value=\"25\"></prop>\r\nrx      <prop name=\"media\" value=\"64\"></prop>\r\nrx      <prop name=\"media_max_autodownload\" value=\"32\"></prop>\r\nrx      <prop name=\"mspes\" value=\"1\"></prop>\r\nrx      <prop name=\"newmedia\" value=\"0\"></prop>\r\nrx      <prop name=\"plaintext_disabled\" value=\"1\"></prop>\r\nrx      <prop name=\"plaintext_reenable_threshold\" value=\"5\"></prop>\r\nrx      <prop name=\"qr\" value=\"1\"></prop>\r\nrx      <prop name=\"readreceipts\" value=\"1415214000\"></prop>\r\nrx      <prop name=\"small_call_btn\" value=\"1\"></prop>\r\nrx      <prop name=\"source\" value=\"1\"></prop>\r\nrx      <prop name=\"timeout\" value=\"300\"></prop>\r\nrx      <prop name=\"video_max_edge\" value=\"960\"></prop>\r\nrx      <prop name=\"wbarchive\" value=\"1\"></prop>\r\nrx    </props>\r\nrx  </iq>\r\n\r\nrx  <iq from=\"xxxxxxxxx@s.whatsapp.net\" type=\"error\" id=\"1\">\r\nrx    <error code=\"404\" text=\"item-not-found\"></error>\r\nrx  </iq>\r\n\r\nrx  <iq from=\"s.whatsapp.net\" type=\"result\" id=\"06\">\r\nrx    <lists></lists>\r\nrx  </iq>\r\n\r\nrx  <iq from=\"xxxxxxxxx@s.whatsapp.net\" type=\"error\" id=\"07\">\r\nrx    <error code=\"404\" text=\"item-not-found\"></error>\r\nrx  </iq>\r\n\r\nrx  <iq from=\"g.us\" type=\"result\" id=\"05\">\r\nrx    <groups></groups>\r\nrx  </iq>\r\n\r\nrx  <iq from=\"s.whatsapp.net\" type=\"result\" id=\"03\">\r\nrx    <config platform=\"gcm\" id=\"1E80E_CD3W5:APA91bJ4Eq6XJnvUPB8LR5kLla0OdztjpA\r\nq1anLWomHPY2HWLvV9SHPwlLOzZgEyDXTfB_8qr9S-eV2HSbnO2r9E_jEwdmRcQH_huyYb1Ij1EO_c_\r\npXB0H1wQKqrMRcOVESUKs5ZgJ\"></config>\r\nrx  </iq>\r\n\r\nrx  <iq from=\"s.whatsapp.net\" type=\"result\" id=\"02\">\r\nrx    <config platform=\"gcm\" id=\"1E80E_CD3W5:APA91bJ4Eq6XJnvUPB8LR5kLla0OdztjpA\r\nq1anLWomHPY2HWLvV9SHPwlLOzZgEyDXTfB_8qr9S-eV2HSbnO2r9E_jEwdmRcQH_huyYb1Ij1EO_c_\r\npXB0H1wQKqrMRcOVESUKs5ZgJ\"></config>\r\nrx  </iq>\r\n\r\nrx  <iq from=\"xxxxxxxxx@s.whatsapp.net\" type=\"result\" id=\"08\">\r\nrx    <sync index=\"0\" sid=\"sync_sid_full_d5553bc3-880b-487c-a024-ea69858fcc3e\"\r\nast=\"true\" version=\"1461863236115638\">\r\nrx      <in>\r\nrx        <user jid=\"xxxxxxxxx@s.whatsapp.net\">+xxxxxxxxx</user>\r\nrx      </in>\r\nrx    </sync>\r\nrx  </iq>\r\n\r\nrx  <presence from=\"xxxxxxxxx@s.whatsapp.net\"></presence>\r\n\r\nrx  <chatstate from=\"xxxxxxxxx@s.whatsapp.net\">\r\nrx    <composing></composing>\r\nrx  </chatstate>\r\n\r\nrx  <chatstate from=\"xxxxxxxxx@s.whatsapp.net\">\r\nrx    <paused></paused>\r\nrx  </chatstate>\r\n\r\nrx  <chatstate from=\"xxxxxxxxx@s.whatsapp.net\">\r\nrx    <composing></composing>\r\nrx  </chatstate>\r\n\r\nrx  <message from=\"xxxxxxxxx@s.whatsapp.net\" type=\"text\" id=\"B96F2AA28881B5D2E\r\n7A6C36F934AE\" t=\"1461863298\" notify=\"......\">\r\nrx    <enc v=\"2\" type=\"pkmsg\">3308a0cc8a071221055e67c10c5ba0d0445f0c062c2b6da14\r\n7715921416cd85e5e7737cf17628cd481a2105057e247f80ff25c718fe963b1c46f24fe6294a924\r\n3279001719b305c732a8142262330a21051e2c8656f2ab0a8dfbe9c7956661dae3145627d86732e\r\nc35af033f8d9d4044a1003180022307445ace75825951c9528921c1aa7ee721160691721f8c0d1f\r\neb3fcd4f96c3f80f453607beeee043d124c948d9edefe910d6016482196907288694b9d70530ba8\r\n01</enc>\r\nrx  </message>\r\n\r\ntx  <ack to=\"xxxxxxxxx@s.whatsapp.net\" class=\"message\" id=\"B96F2AA28881B5D2EC7\r\n6C36F934AE\" t=\"1461863298\"></ack>\r\n\r\n\r\n-> Decrypted Message: How are you?\r\n\r\ntx  <receipt type=\"read\" to=\"xxxxxxxxx@s.whatsapp.net\" id=\"B96F2AA28881B5D2EC7\r\n6C36F934AE\" t=\"1461863298\"></receipt>\r\n\r\n --->xxxxxxxxx^xxxxxxxxx^......^2016.04.29 06:38 am^1461883098^Text^How are y\r\nu bro?\r\n\r\nrx  <ack from=\"xxxxxxxxx@s.whatsapp.net\" class=\"receipt\" type=\"read\" id=\"B96F2\r\nA28881B5D2EC7A6C36F934AE\"></ack>\r\n\r\ntx  <iq id=\"09\" xmlns=\"w:p\" type=\"get\" to=\"s.whatsapp.net\">\r\ntx    <ping></ping>\r\ntx  </iq>\r\n\r\nrx  <iq from=\"s.whatsapp.net\" type=\"result\" id=\"09\" t=\"1461863359\"></iq>\r\n\r\ntx  <iq id=\"0a\" xmlns=\"w:p\" type=\"get\" to=\"s.whatsapp.net\">\r\ntx    <ping></ping>\r\ntx  </iq>\r\n\r\nrx  <iq from=\"s.whatsapp.net\" type=\"result\" id=\"0a\" t=\"1461863420\"></iq>\r\n\r\nrx  <presence from=\"xxxxxxxxx@s.whatsapp.net\" type=\"unavailable\" last=\"1461863\r\n33\"></presence>\r\n\r\ntx  <iq id=\"0b\" xmlns=\"w:p\" type=\"get\" to=\"s.whatsapp.net\">\r\ntx    <ping></ping>\r\ntx  </iq>\r\n\r\nrx  <iq from=\"s.whatsapp.net\" type=\"result\" id=\"0b\" t=\"1461863494\"></iq>\r\n\r\ntx  <iq id=\"0c\" xmlns=\"w:p\" type=\"get\" to=\"s.whatsapp.net\">\r\ntx    <ping></ping>\r\ntx  </iq>\r\n\r\nrx  <iq from=\"s.whatsapp.net\" type=\"result\" id=\"0c\" t=\"1461863556\"></iq>\r\n\r\ntx  <iq id=\"0d\" xmlns=\"w:p\" type=\"get\" to=\"s.whatsapp.net\">\r\ntx    <ping></ping>\r\ntx  </iq>\r\n\r\nrx  <iq from=\"s.whatsapp.net\" type=\"result\" id=\"0d\" t=\"1461863603\"></iq>\r\n\r\n\r\ntx  <iq id=\"0e\" xmlns=\"w:p\" type=\"get\" to=\"s.whatsapp.net\">\r\ntx    <ping></ping>\r\ntx  </iq>\r\n\r\n\r\nrx  <iq from=\"s.whatsapp.net\" type=\"result\" id=\"0e\" t=\"1461863664\"></iq>\r\n\r\ntx  <iq id=\"0f\" xmlns=\"w:p\" type=\"get\" to=\"s.whatsapp.net\">\r\ntx    <ping></ping>\r\ntx  </iq>\r\n\r\n\r\nrx  <iq from=\"s.whatsapp.net\" type=\"result\" id=\"0f\" t=\"1461863725\"></iq>\r\n\r\nrx  <stream:error>\r\nrx    <system-shutdown></system-shutdown>\r\nrx  </stream:error>\r\n```\r\n\r\n[Error: pollMessage()]: Connection Closed!"}}