{"action":"created","issue":{"url":"https://api.github.com/repos/tgalal/yowsup/issues/1591","repository_url":"https://api.github.com/repos/tgalal/yowsup","labels_url":"https://api.github.com/repos/tgalal/yowsup/issues/1591/labels{/name}","comments_url":"https://api.github.com/repos/tgalal/yowsup/issues/1591/comments","events_url":"https://api.github.com/repos/tgalal/yowsup/issues/1591/events","html_url":"https://github.com/tgalal/yowsup/issues/1591","id":154600072,"number":1591,"title":"UnicodeDecodeError: 'utf8' codec can't decode byte 0xff in position 0: 'utf8' codec can't decode byte 0xff in position 0: invalid start byte in field: com.whatsapp.proto.UrlMessage.jpeg_thumbnail","user":{"login":"bzero","id":557243,"avatar_url":"https://avatars.githubusercontent.com/u/557243?v=3","gravatar_id":"","url":"https://api.github.com/users/bzero","html_url":"https://github.com/bzero","followers_url":"https://api.github.com/users/bzero/followers","following_url":"https://api.github.com/users/bzero/following{/other_user}","gists_url":"https://api.github.com/users/bzero/gists{/gist_id}","starred_url":"https://api.github.com/users/bzero/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/bzero/subscriptions","organizations_url":"https://api.github.com/users/bzero/orgs","repos_url":"https://api.github.com/users/bzero/repos","events_url":"https://api.github.com/users/bzero/events{/privacy}","received_events_url":"https://api.github.com/users/bzero/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":2,"created_at":"2016-05-12T23:00:27Z","updated_at":"2016-05-13T20:49:33Z","closed_at":"2016-05-13T20:49:33Z","body":"_server.py_\t[ERROR][2016-05-12 22:13:54,772] Unexpected Exception: \r\nTraceback (most recent call last):\r\n  File \"bot.py\", line 38, in start\r\n    self.stack.loop(timeout=0.5, discrete=0.5)\r\n  File \"build/bdist.linux-armv7l/egg/yowsup/stacks/yowstack.py\", line 188, in loop\r\n    asyncore.loop(*args, **kwargs)\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 \"build/bdist.linux-armv7l/egg/yowsup/layers/network/layer.py\", line 102, in handle_read\r\n    self.receive(data)\r\n  File \"build/bdist.linux-armv7l/egg/yowsup/layers/network/layer.py\", line 110, in receive\r\n    self.toUpper(data)\r\n  File \"build/bdist.linux-armv7l/egg/yowsup/layers/__init__.py\", line 76, in toUpper\r\n    self.__upper.receive(data)\r\n  File \"build/bdist.linux-armv7l/egg/yowsup/layers/stanzaregulator/layer.py\", line 29, in receive\r\n    self.processReceived()\r\n  File \"build/bdist.linux-armv7l/egg/yowsup/layers/stanzaregulator/layer.py\", line 49, in processReceived\r\n    self.toUpper(oneMessageData)\r\n  File \"build/bdist.linux-armv7l/egg/yowsup/layers/__init__.py\", line 76, in toUpper\r\n    self.__upper.receive(data)\r\n  File \"build/bdist.linux-armv7l/egg/yowsup/layers/auth/layer_crypt.py\", line 65, in receive\r\n    self.toUpper(payload)\r\n  File \"build/bdist.linux-armv7l/egg/yowsup/layers/__init__.py\", line 76, in toUpper\r\n    self.__upper.receive(data)\r\n  File \"build/bdist.linux-armv7l/egg/yowsup/layers/coder/layer.py\", line 35, in receive\r\n    self.toUpper(node)\r\n  File \"build/bdist.linux-armv7l/egg/yowsup/layers/__init__.py\", line 76, in toUpper\r\n    self.__upper.receive(data)\r\n  File \"build/bdist.linux-armv7l/egg/yowsup/layers/logger/layer.py\", line 14, in receive\r\n    self.toUpper(data)\r\n  File \"build/bdist.linux-armv7l/egg/yowsup/layers/__init__.py\", line 76, in toUpper\r\n    self.__upper.receive(data)\r\n  File \"build/bdist.linux-armv7l/egg/yowsup/layers/axolotl/layer_control.py\", line 44, in receive\r\n    self.toUpper(protocolTreeNode)\r\n  File \"build/bdist.linux-armv7l/egg/yowsup/layers/__init__.py\", line 76, in toUpper\r\n    self.__upper.receive(data)\r\n  File \"build/bdist.linux-armv7l/egg/yowsup/layers/__init__.py\", line 189, in receive\r\n    s.receive(data)\r\n  File \"build/bdist.linux-armv7l/egg/yowsup/layers/axolotl/layer_receive.py\", line 41, in receive\r\n    self.onMessage(protocolTreeNode)\r\n  File \"build/bdist.linux-armv7l/egg/yowsup/layers/axolotl/layer_receive.py\", line 74, in onMessage\r\n    self.handleEncMessage(protocolTreeNode)\r\n  File \"build/bdist.linux-armv7l/egg/yowsup/layers/axolotl/layer_receive.py\", line 86, in handleEncMessage\r\n    self.handlePreKeyWhisperMessage(node)\r\n  File \"build/bdist.linux-armv7l/egg/yowsup/layers/axolotl/layer_receive.py\", line 129, in handlePreKeyWhisperMessage\r\n    self.parseAndHandleMessageProto(pkMessageProtocolEntity, plaintext[:-padding])\r\n  File \"build/bdist.linux-armv7l/egg/yowsup/layers/axolotl/layer_receive.py\", line 171, in parseAndHandleMessageProto\r\n    m.ParseFromString(serializedData)\r\n  File \"/home/bob01/venv/lib/python2.7/site-packages/google/protobuf/message.py\", line 185, in ParseFromString\r\n    self.MergeFromString(serialized)\r\n  File \"/home/bob01/venv/lib/python2.7/site-packages/google/protobuf/internal/python_message.py\", line 1091, in MergeFromString\r\n    if self._InternalParse(serialized, 0, length) != length:\r\n  File \"/home/bob01/venv/lib/python2.7/site-packages/google/protobuf/internal/python_message.py\", line 1127, in InternalParse\r\n    pos = field_decoder(buffer, new_pos, end, self, field_dict)\r\n  File \"/home/bob01/venv/lib/python2.7/site-packages/google/protobuf/internal/decoder.py\", line 633, in DecodeField\r\n    if value._InternalParse(buffer, pos, new_pos) != new_pos:\r\n  File \"/home/bob01/venv/lib/python2.7/site-packages/google/protobuf/internal/python_message.py\", line 1127, in InternalParse\r\n    pos = field_decoder(buffer, new_pos, end, self, field_dict)\r\n  File \"/home/bob01/venv/lib/python2.7/site-packages/google/protobuf/internal/decoder.py\", line 502, in DecodeField\r\n    field_dict[key] = _ConvertToUnicode(buffer[pos:new_pos])\r\n  File \"/home/bob01/venv/lib/python2.7/site-packages/google/protobuf/internal/decoder.py\", line 469, in _ConvertToUnicode\r\n    return local_unicode(byte_str, 'utf-8')\r\nUnicodeDecodeError: 'utf8' codec can't decode byte 0xff in position 0: 'utf8' codec can't decode byte 0xff in position 0: invalid start byte in field: com.whatsapp.proto.UrlMessage.jpeg_thumbnail"},"comment":{"url":"https://api.github.com/repos/tgalal/yowsup/issues/comments/219155553","html_url":"https://github.com/tgalal/yowsup/issues/1591#issuecomment-219155553","issue_url":"https://api.github.com/repos/tgalal/yowsup/issues/1591","id":219155553,"user":{"login":"bzero","id":557243,"avatar_url":"https://avatars.githubusercontent.com/u/557243?v=3","gravatar_id":"","url":"https://api.github.com/users/bzero","html_url":"https://github.com/bzero","followers_url":"https://api.github.com/users/bzero/followers","following_url":"https://api.github.com/users/bzero/following{/other_user}","gists_url":"https://api.github.com/users/bzero/gists{/gist_id}","starred_url":"https://api.github.com/users/bzero/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/bzero/subscriptions","organizations_url":"https://api.github.com/users/bzero/orgs","repos_url":"https://api.github.com/users/bzero/repos","events_url":"https://api.github.com/users/bzero/events{/privacy}","received_events_url":"https://api.github.com/users/bzero/received_events","type":"User","site_admin":false},"created_at":"2016-05-13T20:49:33Z","updated_at":"2016-05-13T20:49:33Z","body":"worked for me"}}