{"action":"created","issue":{"url":"https://api.github.com/repos/tgalal/yowsup/issues/1484","repository_url":"https://api.github.com/repos/tgalal/yowsup","labels_url":"https://api.github.com/repos/tgalal/yowsup/issues/1484/labels{/name}","comments_url":"https://api.github.com/repos/tgalal/yowsup/issues/1484/comments","events_url":"https://api.github.com/repos/tgalal/yowsup/issues/1484/events","html_url":"https://github.com/tgalal/yowsup/issues/1484","id":147138703,"number":1484,"title":"echo demo appears to be broken with Python 3.5, yowsup 2.4.102","user":{"login":"voltagex","id":159567,"avatar_url":"https://avatars.githubusercontent.com/u/159567?v=3","gravatar_id":"","url":"https://api.github.com/users/voltagex","html_url":"https://github.com/voltagex","followers_url":"https://api.github.com/users/voltagex/followers","following_url":"https://api.github.com/users/voltagex/following{/other_user}","gists_url":"https://api.github.com/users/voltagex/gists{/gist_id}","starred_url":"https://api.github.com/users/voltagex/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/voltagex/subscriptions","organizations_url":"https://api.github.com/users/voltagex/orgs","repos_url":"https://api.github.com/users/voltagex/repos","events_url":"https://api.github.com/users/voltagex/events{/privacy}","received_events_url":"https://api.github.com/users/voltagex/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":3,"created_at":"2016-04-09T15:35:26Z","updated_at":"2016-04-19T14:52:00Z","closed_at":"2016-04-19T14:52:00Z","body":"Crashes when sent a message.\r\n```\r\n(env-whatsapp) [voltagex@ea890b2a-eefd-11e5-a1ef-0cc47a6bbf34 ~]$ yowsup-cli demos -e -c .yowsuprc\r\nyowsup-cli  v2.0.15\r\nyowsup      v2.4.102\r\n\r\nCopyright (c) 2012-2016 Tarek Galal\r\nhttp://www.openwhatsapp.org\r\n\r\nThis software is provided free of charge. Copying and redistribution is\r\nencouraged.\r\n\r\nIf you appreciate this software and you would like to support future\r\ndevelopment please consider donating:\r\nhttp://openwhatsapp.org/yowsup/donate\r\n\r\n\r\nTraceback (most recent call last):\r\n  File \"/usr/home/voltagex/env-whatsapp/bin/yowsup-cli\", line 368, in <module>\r\n    if not parser.process():\r\n  File \"/usr/home/voltagex/env-whatsapp/bin/yowsup-cli\", line 270, in process\r\n    self.startEcho()\r\n  File \"/usr/home/voltagex/env-whatsapp/bin/yowsup-cli\", line 308, in startEcho\r\n    stack.start()\r\n  File \"/usr/home/voltagex/env-whatsapp/lib/python3.5/site-packages/yowsup/demos/echoclient/stack.py\", line 21, in start\r\n    self.stack.loop()\r\n  File \"/usr/home/voltagex/env-whatsapp/lib/python3.5/site-packages/yowsup/stacks/yowstack.py\", line 195, in loop\r\n    asyncore.loop(*args, **kwargs)\r\n  File \"/usr/local/lib/python3.5/asyncore.py\", line 203, in loop\r\n    poll_fun(timeout, map)\r\n  File \"/usr/local/lib/python3.5/asyncore.py\", line 150, in poll\r\n    read(obj)\r\n  File \"/usr/local/lib/python3.5/asyncore.py\", line 87, in read\r\n    obj.handle_error()\r\n  File \"/usr/local/lib/python3.5/asyncore.py\", line 83, in read\r\n    obj.handle_read_event()\r\n  File \"/usr/local/lib/python3.5/asyncore.py\", line 423, in handle_read_event\r\n    self.handle_read()\r\n  File \"/usr/home/voltagex/env-whatsapp/lib/python3.5/site-packages/yowsup/layers/network/layer.py\", line 88, in handle_read\r\n    self.receive(data)\r\n  File \"/usr/home/voltagex/env-whatsapp/lib/python3.5/site-packages/yowsup/layers/network/layer.py\", line 96, in receive\r\n    self.toUpper(data)\r\n  File \"/usr/home/voltagex/env-whatsapp/lib/python3.5/site-packages/yowsup/layers/__init__.py\", line 75, in toUpper\r\n    self.__upper.receive(data)\r\n  File \"/usr/home/voltagex/env-whatsapp/lib/python3.5/site-packages/yowsup/layers/stanzaregulator/layer.py\", line 29, in receive\r\n    self.processReceived()\r\n  File \"/usr/home/voltagex/env-whatsapp/lib/python3.5/site-packages/yowsup/layers/stanzaregulator/layer.py\", line 49, in processReceived\r\n    self.toUpper(oneMessageData)\r\n  File \"/usr/home/voltagex/env-whatsapp/lib/python3.5/site-packages/yowsup/layers/__init__.py\", line 75, in toUpper\r\n    self.__upper.receive(data)\r\n  File \"/usr/home/voltagex/env-whatsapp/lib/python3.5/site-packages/yowsup/layers/auth/layer_crypt.py\", line 65, in receive\r\n    self.toUpper(payload)\r\n  File \"/usr/home/voltagex/env-whatsapp/lib/python3.5/site-packages/yowsup/layers/__init__.py\", line 75, in toUpper\r\n    self.__upper.receive(data)\r\n  File \"/usr/home/voltagex/env-whatsapp/lib/python3.5/site-packages/yowsup/layers/coder/layer.py\", line 35, in receive\r\n    self.toUpper(node)\r\n  File \"/usr/home/voltagex/env-whatsapp/lib/python3.5/site-packages/yowsup/layers/__init__.py\", line 75, in toUpper\r\n    self.__upper.receive(data)\r\n  File \"/usr/home/voltagex/env-whatsapp/lib/python3.5/site-packages/yowsup/layers/logger/layer.py\", line 14, in receive\r\n    self.toUpper(data)\r\n  File \"/usr/home/voltagex/env-whatsapp/lib/python3.5/site-packages/yowsup/layers/__init__.py\", line 75, in toUpper\r\n    self.__upper.receive(data)\r\n  File \"/usr/home/voltagex/env-whatsapp/lib/python3.5/site-packages/yowsup/layers/axolotl/layer.py\", line 124, in receive\r\n    self.onMessage(protocolTreeNode)\r\n  File \"/usr/home/voltagex/env-whatsapp/lib/python3.5/site-packages/yowsup/layers/axolotl/layer.py\", line 146, in onMessage\r\n    self.handleEncMessage(protocolTreeNode)\r\n  File \"/usr/home/voltagex/env-whatsapp/lib/python3.5/site-packages/yowsup/layers/axolotl/layer.py\", line 231, in handleEncMessage\r\n    self.handleWhisperMessage(node)\r\n  File \"/usr/home/voltagex/env-whatsapp/lib/python3.5/site-packages/yowsup/layers/axolotl/layer.py\", line 281, in handleWhisperMessage\r\n    plaintext = sessionCipher.decryptMsg(whisperMessage)\r\n  File \"/usr/home/voltagex/env-whatsapp/lib/python3.5/site-packages/axolotl/sessioncipher.py\", line 88, in decryptMsg\r\n    return plaintext.decode()\r\nUnicodeDecodeError: 'utf-8' codec can't decode byte 0xb1 in position 6: invalid start byte\r\n\r\n```\r\n\r\n"},"comment":{"url":"https://api.github.com/repos/tgalal/yowsup/issues/comments/211960947","html_url":"https://github.com/tgalal/yowsup/issues/1484#issuecomment-211960947","issue_url":"https://api.github.com/repos/tgalal/yowsup/issues/1484","id":211960947,"user":{"login":"voltagex","id":159567,"avatar_url":"https://avatars.githubusercontent.com/u/159567?v=3","gravatar_id":"","url":"https://api.github.com/users/voltagex","html_url":"https://github.com/voltagex","followers_url":"https://api.github.com/users/voltagex/followers","following_url":"https://api.github.com/users/voltagex/following{/other_user}","gists_url":"https://api.github.com/users/voltagex/gists{/gist_id}","starred_url":"https://api.github.com/users/voltagex/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/voltagex/subscriptions","organizations_url":"https://api.github.com/users/voltagex/orgs","repos_url":"https://api.github.com/users/voltagex/repos","events_url":"https://api.github.com/users/voltagex/events{/privacy}","received_events_url":"https://api.github.com/users/voltagex/received_events","type":"User","site_admin":false},"created_at":"2016-04-19T14:52:00Z","updated_at":"2016-04-19T14:52:00Z","body":"Duplicate of #1490, although it was created after this there's more discussion there."}}