{"action":"created","issue":{"url":"https://api.github.com/repos/tgalal/yowsup/issues/1389","repository_url":"https://api.github.com/repos/tgalal/yowsup","labels_url":"https://api.github.com/repos/tgalal/yowsup/issues/1389/labels{/name}","comments_url":"https://api.github.com/repos/tgalal/yowsup/issues/1389/comments","events_url":"https://api.github.com/repos/tgalal/yowsup/issues/1389/events","html_url":"https://github.com/tgalal/yowsup/issues/1389","id":142883972,"number":1389,"title":"Error after updating the nokia token","user":{"login":"yniv","id":7657911,"avatar_url":"https://avatars.githubusercontent.com/u/7657911?v=3","gravatar_id":"","url":"https://api.github.com/users/yniv","html_url":"https://github.com/yniv","followers_url":"https://api.github.com/users/yniv/followers","following_url":"https://api.github.com/users/yniv/following{/other_user}","gists_url":"https://api.github.com/users/yniv/gists{/gist_id}","starred_url":"https://api.github.com/users/yniv/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/yniv/subscriptions","organizations_url":"https://api.github.com/users/yniv/orgs","repos_url":"https://api.github.com/users/yniv/repos","events_url":"https://api.github.com/users/yniv/events{/privacy}","received_events_url":"https://api.github.com/users/yniv/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":38,"created_at":"2016-03-23T07:18:29Z","updated_at":"2016-03-23T11:13:44Z","closed_at":null,"body":"I updated the Nokia token after it was changed last night.\r\nand now I succeed to connect and doesn't get unauthorized but i start to get these errors when receiving messages. anyone knows what to do ??? please?\r\n```\r\nTraceback (most recent call last):\r\n  File \"/home//server/server.py\", line 78, in <module>\r\n    asyncore.loop()\r\n  File \"/usr/lib/python2.7/asyncore.py\", line 216, in loop\r\n    poll_fun(timeout, map)\r\n  File \"/usr/lib/python2.7/asyncore.py\", line 156, in poll\r\n    read(obj)\r\n  File \"/usr/lib/python2.7/asyncore.py\", line 87, in read\r\n    obj.handle_error()\r\n  File \"/usr/lib/python2.7/asyncore.py\", line 83, in read\r\n    obj.handle_read_event()\r\n  File \"/usr/lib/python2.7/asyncore.py\", line 449, in handle_read_event\r\n    self.handle_read()\r\n  File \"/server/venv-yowsapp/local/lib/python2.7/site-packages/yowsup/layers/network/layer.py\", line 86, in handle_read\r\n    self.receive(data)\r\n  File \"/server/venv-yowsapp/local/lib/python2.7/site-packages/yowsup/layers/network/layer.py\", line 94, in receive\r\n    self.toUpper(data)\r\n  File \"/server/venv-yowsapp/local/lib/python2.7/site-packages/yowsup/layers/__init__.py\", line 59, in toUpper\r\n    self.__upper.receive(data)\r\n  File \"/server/venv-yowsapp/local/lib/python2.7/site-packages/yowsup/layers/stanzaregulator/layer.py\", line 28, in receive\r\n    self.processReceived()\r\n  File \"/server/venv-yowsapp/local/lib/python2.7/site-packages/yowsup/layers/stanzaregulator/layer.py\", line 48, in processReceived\r\n    self.toUpper(oneMessageData)\r\n  File \"/server/venv-yowsapp/local/lib/python2.7/site-packages/yowsup/layers/__init__.py\", line 59, in toUpper\r\n    self.__upper.receive(data)\r\n  File \"/server/venv-yowsapp/local/lib/python2.7/site-packages/yowsup/layers/auth/layer_crypt.py\", line 63, in receive\r\n    self.toUpper(payload)\r\n  File \"/server/venv-yowsapp/local/lib/python2.7/site-packages/yowsup/layers/__init__.py\", line 59, in toUpper\r\n    self.__upper.receive(data)\r\n  File \"/server/venv-yowsapp/local/lib/python2.7/site-packages/yowsup/layers/coder/layer.py\", line 35, in receive\r\n    self.toUpper(node)\r\n  File \"/server/venv-yowsapp/local/lib/python2.7/site-packages/yowsup/layers/__init__.py\", line 59, in toUpper\r\n    self.__upper.receive(data)\r\n  File \"/server/venv-yowsapp/local/lib/python2.7/site-packages/yowsup/layers/logger/layer.py\", line 14, in receive\r\n    self.toUpper(data)\r\n  File \"/server/venv-yowsapp/local/lib/python2.7/site-packages/yowsup/layers/__init__.py\", line 59, in toUpper\r\n    self.__upper.receive(data)\r\n  File \"/server/venv-yowsapp/local/lib/python2.7/site-packages/yowsup/layers/axolotl/layer.py\", line 117, in receive\r\n    self.onMessage(protocolTreeNode)\r\n  File \"/server/venv-yowsapp/local/lib/python2.7/site-packages/yowsup/layers/axolotl/layer.py\", line 139, in onMessage\r\n    self.handleEncMessage(protocolTreeNode)\r\n  File \"/server/venv-yowsapp/local/lib/python2.7/site-packages/yowsup/layers/axolotl/layer.py\", line 222, in handleEncMessage\r\n    self.handlePreKeyWhisperMessage(node)\r\n  File \"/server/venv-yowsapp/local/lib/python2.7/site-packages/yowsup/layers/axolotl/layer.py\", line 267, in handlePreKeyWhisperMessage\r\n    self.toUpper(node)\r\n  File \"/server/venv-yowsapp/local/lib/python2.7/site-packages/yowsup/layers/__init__.py\", line 59, in toUpper\r\n    self.__upper.receive(data)\r\n  File \"/server/venv-yowsapp/local/lib/python2.7/site-packages/yowsup/layers/__init__.py\", line 169, in receive\r\n    s.receive(data)\r\n  File \"/server/venv-yowsapp/local/lib/python2.7/site-packages/yowsup/layers/__init__.py\", line 105, in receive\r\n    recv(node)\r\n  File \"/server/venv-yowsapp/local/lib/python2.7/site-packages/yowsup/layers/protocol_messages/layer.py\", line 21, in recvMessageStanza\r\n    self.toUpper(entity)\r\n  File \"/server/venv-yowsapp/local/lib/python2.7/site-packages/yowsup/layers/__init__.py\", line 59, in toUpper\r\n    self.__upper.receive(data)\r\n  File \"/server/venv-yowsapp/local/lib/python2.7/site-packages/yowsup/layers/interface/interface.py\", line 98, in receive\r\n    self.callbacks[entityType](entity)\r\n  File \"/server/layer.py\", line 213, in onMessage\r\n    'message': messageOut.encode('latin-1').decode() if sys.version_info >= (3, 0) else messageOut})\r\n  File \"/usr/lib/python2.7/json/__init__.py\", line 243, in dumps\r\n    return _default_encoder.encode(obj)\r\n  File \"/usr/lib/python2.7/json/encoder.py\", line 207, in encode\r\n    chunks = self.iterencode(o, _one_shot=True)\r\n  File \"/usr/lib/python2.7/json/encoder.py\", line 270, in iterencode\r\n    return _iterencode(o, 0)\r\nUnicodeDecodeError: 'utf8' codec can't decode byte 0x9e in position 0: invalid start byte\r\n```"},"comment":{"url":"https://api.github.com/repos/tgalal/yowsup/issues/comments/200299767","html_url":"https://github.com/tgalal/yowsup/issues/1389#issuecomment-200299767","issue_url":"https://api.github.com/repos/tgalal/yowsup/issues/1389","id":200299767,"user":{"login":"rami-dabain","id":1197104,"avatar_url":"https://avatars.githubusercontent.com/u/1197104?v=3","gravatar_id":"","url":"https://api.github.com/users/rami-dabain","html_url":"https://github.com/rami-dabain","followers_url":"https://api.github.com/users/rami-dabain/followers","following_url":"https://api.github.com/users/rami-dabain/following{/other_user}","gists_url":"https://api.github.com/users/rami-dabain/gists{/gist_id}","starred_url":"https://api.github.com/users/rami-dabain/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/rami-dabain/subscriptions","organizations_url":"https://api.github.com/users/rami-dabain/orgs","repos_url":"https://api.github.com/users/rami-dabain/repos","events_url":"https://api.github.com/users/rami-dabain/events{/privacy}","received_events_url":"https://api.github.com/users/rami-dabain/received_events","type":"User","site_admin":false},"created_at":"2016-03-23T11:13:44Z","updated_at":"2016-03-23T11:13:44Z","body":"restart it\n\nKind regards ,\nRami Dabain\n\n\n\n\nOn Wed, Mar 23, 2016 at 12:12 PM, yniv <notifications@github.com> wrote:\n\n> @jlguardi <https://github.com/jlguardi> i've removed the axolotl and\n> after restart it generated prekeys but now when i send messages i always\n> get:\n>\n> ERROR:yowsup.layers.axolotl.layer:No session for: xxx, 1\n> ERROR:yowsup.layers.axolotl.layer:No valid sessionsBad Mac!\n> ERROR:yowsup.layers.axolotl.layer:No such signedprekeyrecord! 51886  for phone xxx\n> ERROR:yowsup.layers.axolotl.layer:No such signedprekeyrecord! 51886  for phone xxx\n> ERROR:yowsup.layers.axolotl.layer:No valid sessionsBad Mac!\n> ERROR:yowsup.layers.axolotl.layer:No valid sessionsBad Mac!\n> ERROR:yowsup.layers.axolotl.layer:No valid sessionsBad Mac!\n> ERROR:yowsup.layers.axolotl.layer:No valid sessionsBad Mac!\n>\n> —\n> You are receiving this because you were mentioned.\n> Reply to this email directly or view it on GitHub\n> <https://github.com/tgalal/yowsup/issues/1389#issuecomment-200299469>\n>\n"}}