{"action":"created","issue":{"url":"https://api.github.com/repos/mgp25/Chat-API/issues/1926","repository_url":"https://api.github.com/repos/mgp25/Chat-API","labels_url":"https://api.github.com/repos/mgp25/Chat-API/issues/1926/labels{/name}","comments_url":"https://api.github.com/repos/mgp25/Chat-API/issues/1926/comments","events_url":"https://api.github.com/repos/mgp25/Chat-API/issues/1926/events","html_url":"https://github.com/mgp25/Chat-API/issues/1926","id":155595265,"number":1926,"title":"Keys fail","user":{"login":"dcardosoa","id":846744,"avatar_url":"https://avatars.githubusercontent.com/u/846744?v=3","gravatar_id":"","url":"https://api.github.com/users/dcardosoa","html_url":"https://github.com/dcardosoa","followers_url":"https://api.github.com/users/dcardosoa/followers","following_url":"https://api.github.com/users/dcardosoa/following{/other_user}","gists_url":"https://api.github.com/users/dcardosoa/gists{/gist_id}","starred_url":"https://api.github.com/users/dcardosoa/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/dcardosoa/subscriptions","organizations_url":"https://api.github.com/users/dcardosoa/orgs","repos_url":"https://api.github.com/users/dcardosoa/repos","events_url":"https://api.github.com/users/dcardosoa/events{/privacy}","received_events_url":"https://api.github.com/users/dcardosoa/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":1,"created_at":"2016-05-18T20:35:15Z","updated_at":"2016-05-18T21:56:33Z","closed_at":"2016-05-18T21:56:33Z","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\nI have a old phone number (~ 5 months) running with this API, but now I can't recive new messages.\r\nThe API is trying to get the keys and doesntt have success, and is looped.\r\n\r\nI try erase the axtol db, but it doesnt work.\r\n\r\nIs there any way to fix the problem?\r\n\r\n\r\nThks!\r\n\r\n### Debug log\r\n```xml\r\ntx  <stream:features></stream:features>\r\n\r\ntx  <auth user=\"55339999999\" mechanism=\"WAUTH-2\">bfb6b3d3353533343936333739393939f605813b049eaa8ae00dc0c55ef11ff748d4436731343633363031363735</auth>\r\n\r\nrx  <from s.whatsapp.net=\"\"></from>\r\n\r\nrx  <stream:features></stream:features>\r\n\r\nrx  <challenge>de0524d08b8a7177554f750a008790d371e49aff</challenge>\r\n\r\ntx  <response>4ac2bbe436ce31803df475afbe731ee02728598c257997fe9d1d938dad85a0b5480c581afa95d59c9bb4c5667498a2f3307904c3b740d16b2c8e3a842ecb6c51c51f6fe7cd8c00dfb4895207db7b</response>\r\n\r\nrx  <success t=\"1463601675\" props=\"5\" kind=\"free\" status=\"active\" creation=\"1447959097\" expiration=\"4444444444\">e799dbf8bf626ee0e6e89575a1cbc41e247c284a</success>\r\n\r\ntx  <presence name=\"MY NAME\" 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\nrx  <receipt from=\"55339876543@s.whatsapp.net\" id=\"b0426eeffb5244e90d9147\" offline=\"1\" t=\"1463601611\"></receipt>\r\n\r\ntx  <ack to=\"55349876543@s.whatsapp.net\" class=\"receipt\" id=\"b0426eeffb5244e90d9147\"></ack>\r\n\r\nrx  <receipt from=\"55339876561@s.whatsapp.net\" id=\"b0426eeffb5244e90d9148\" offline=\"1\" t=\"1463601611\"></receipt>\r\n\r\ntx  <ack to=\"553498765123@s.whatsapp.net\" class=\"receipt\" id=\"b0426eeffb5244e90d9148\"></ack>\r\n\r\nrx  <receipt from=\"55349087122@s.whatsapp.net\" id=\"b0426eeffb5244e90d9149\" offline=\"1\" t=\"1463601611\"></receipt>\r\n\r\ntx  <ack to=\"55349871231@s.whatsapp.net\" class=\"receipt\" id=\"b0426eeffb5244e90d9149\"></ack>\r\n\r\ntx  <presence type=\"active\"></presence>\r\n\r\ntx  <presence type=\"subscribe\" to=\"55348909123@s.whatsapp.net\"></presence>\r\n\r\ntx  <chatstate to=\"559889076551@s.whatsapp.net\">\r\ntx    <composing></composing>\r\ntx  </chatstate>\r\n\r\ntx  <chatstate to=\"553799710831@s.whatsapp.net\">\r\ntx    <paused></paused>\r\ntx  </chatstate>\r\n\r\ntx  <message to=\"55376777331@s.whatsapp.net\" type=\"text\" id=\"80e9139a000753dcc31ef7\" t=\"1463601675\" notify=\"MY NAME\">\r\ntx    <enc v=\"1\" type=\"pkmsg\">33289091e9f30a08e08da2053000122105388962b0992294596f0dffd751ca6700e0cb22ab8ccc64ad054d030a0e172d641a21052d29893e9cf24192f3a5d1742833d68c48d75c248c1301243497e5b87ed6b73322a001330a2105f1739e81993ee7c86b464c12fdcaf7d3d6746e24c4eee6b82f3de80c74388f17100122705d7321acb6f74b5b6cde730555d42e6da0df577a203d2044fbd818f778548d0adffb3413f4a7318415787117eff19d74e3545456a1188c1c2b5c477c539d39ebdc8cd2e255145919f5b987ec45eb17671b0e0f902591f5ffc9dd339e0c2126f5af3bc63ca846f612a9cfe8a6d09806d571d2f6b37481c031</enc>\r\ntx  </message>\r\n\r\nrx  <receipt from=\"553496333333@s.whatsapp.net\" type=\"read\" id=\"b0426eeffb5244e90d9149\" offline=\"0\" t=\"1463601650\">\r\nrx    <list>\r\nrx      <item id=\"b0426eeffb5244e90d9148\"></item>\r\nrx      <item id=\"b0426eeffb5244e90d9147\"></item>\r\nrx    </list>\r\nrx  </receipt>\r\n\r\ntx  <ack to=\"55344567899@s.whatsapp.net\" class=\"receipt\" id=\"b0426eeffb5244e90d9149\" type=\"read\"></ack>\r\n\r\nrx  <message from=\"55349875332@s.whatsapp.net\" type=\"text\" id=\"42CEDD8515BEA94BD1993FF8198757\" offline=\"0\" t=\"1463601670\" notify=\"Lara Lima\">\r\nrx    <enc v=\"2\" type=\"msg\">330a21056a8329fb62f33155e676a74d1477baa3c20cfb1e877139bbea7758e719f9cd571000180222201a70968b7be9dd47b84568da876e4df32d98643b5a918906cdaf0052c350dfa82ca9ea9935acd132</enc>\r\nrx  </message>\r\n\r\ntx  <ack to=\"55349122334566@s.whatsapp.net\" class=\"message\" id=\"42CEDD8515BEA94BD1993FF8198757\" t=\"1463601670\"></ack>\r\n\r\ntx  <iq id=\"03\" xmlns=\"encrypt\" type=\"get\" to=\"s.whatsapp.net\">\r\ntx    <key>\r\ntx      <user jid=\"553499876123@s.whatsapp.net\"></user>\r\ntx    </key>\r\ntx  </iq>\r\n\r\nrx  <ib from=\"s.whatsapp.net\">\r\nrx    <offline count=\"5\"></offline>\r\nrx  </ib>\r\n\r\nrx  <notification from=\"s.whatsapp.net\" type=\"encrypt\" id=\"2416961726\" t=\"1463601675\">\r\nrx    <count value=\"0\"></count>\r\nrx  </notification>\r\n\r\ntx  <iq id=\"04\" to=\"s.whatsapp.net\" type=\"set\" xmlns=\"encrypt\">\r\ntx    <identity>ce7acae1ebea202ac0b98a4f7fa37af012ba475b922a5f762bdff2cc09715068</identity>\r\ntx    <registration>afc88400</registration>\r\ntx    <type>05</type>\r\ntx    <list>\r\ntx      <key>\r\ntx        <id>o1 </id>\r\ntx        <value>db848e93310c41f1724d40669577281d537cc2e91cb827dd48f399fc8ba94206</value>\r\ntx      </key>\r\n.\r\n. repeat other keys\r\n.\r\n\r\ntx    </list>\r\ntx    <skey>\r\ntx      <id>00fc0f</id>\r\ntx      <value>c6ef2ddafd4e5049a5e7468bef538bff8d5b4259ad9bbf85b94c679325759312</value>\r\ntx      <signature>52fcae2ce66c83ad124e5cda4903c4b153b7d47ac253b7ca1fc663c363c2143900279279b2b8ce314d0e56bfda936334f1fbd777ffd92f86e98216530dd3c98d</signature>\r\ntx    </skey>\r\ntx  </iq>\r\n\r\nrx  <notification from=\"s.whatsapp.net\" type=\"encrypt\" id=\"116962323\" t=\"1463601675\">\r\nrx    <count value=\"0\"></count>\r\nrx  </notification>\r\n\r\n\r\ntx  <iq id=\"05\" to=\"s.whatsapp.net\" type=\"set\" xmlns=\"encrypt\">\r\ntx    <identity>e26732c3f38828e39df1662da5912bf5bef46692c6b0679fac679941147c6951</identity>\r\ntx    <registration>afc88400</registration>\r\ntx    <type>05</type>\r\ntx    <list>\r\ntx      <key>\r\ntx        <id>75aa1f</id>\r\ntx        <value>4201d77ffc765d8879095a2deb135ce65666607c98c878791dec927c65206d23</value>\r\ntx      </key>\r\n.\r\n.  repeat other keys\r\n.\r\ntx    </list>\r\ntx    <skey>\r\ntx      <id>00d545</id>\r\ntx      <value>f26a552a994b1f7619f6b3d83bc4b8f524db114f53c0baba9aa7339034a20a64</value>\r\ntx      <signature>9dff5ad7455d5811f10af09cb46d5bca9e44083f6df0d59c89da66d94c9c7329794dd4c86209953731e0666585605349ad38552c2af1fa64a9307b188118b809</signature>\r\ntx    </skey>\r\ntx  </iq>\r\n\r\nrepeat this until SQLSTATE[23000]: Integrity constraint violation: 19 column prekey_id is not unique\r\n```\r\n"},"comment":{"url":"https://api.github.com/repos/mgp25/Chat-API/issues/comments/220170360","html_url":"https://github.com/mgp25/Chat-API/issues/1926#issuecomment-220170360","issue_url":"https://api.github.com/repos/mgp25/Chat-API/issues/1926","id":220170360,"user":{"login":"mgp25","id":5390120,"avatar_url":"https://avatars.githubusercontent.com/u/5390120?v=3","gravatar_id":"","url":"https://api.github.com/users/mgp25","html_url":"https://github.com/mgp25","followers_url":"https://api.github.com/users/mgp25/followers","following_url":"https://api.github.com/users/mgp25/following{/other_user}","gists_url":"https://api.github.com/users/mgp25/gists{/gist_id}","starred_url":"https://api.github.com/users/mgp25/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mgp25/subscriptions","organizations_url":"https://api.github.com/users/mgp25/orgs","repos_url":"https://api.github.com/users/mgp25/repos","events_url":"https://api.github.com/users/mgp25/events{/privacy}","received_events_url":"https://api.github.com/users/mgp25/received_events","type":"User","site_admin":false},"created_at":"2016-05-18T21:56:33Z","updated_at":"2016-05-18T21:56:33Z","body":"At this point i think the best option it remove all the content (.db etc), register your number again and try again, let me know if that works\r\n\r\nRegards"}}