Traceback (most recent call last):


 "/srv/homeassistant/homeassistant_venv/lib/python3.4/site-packages/homeassistant/util/json.py", line 38, in save_json

data = json.dumps(config, sort_keys=True, indent=4)


 "/usr/lib/python3.4/json/__init__.py", line 237, in dumps

**kw).encode(obj)


 "/usr/lib/python3.4/json/encoder.py", line 194, in encode

chunks = list(chunks)


 "/usr/lib/python3.4/json/encoder.py", line 422, in _iterencode

yield from _iterencode_dict(o, _current_indent_level)


 "/usr/lib/python3.4/json/encoder.py", line 396, in _iterencode_dict

yield from chunks


 "/usr/lib/python3.4/json/encoder.py", line 396, in _iterencode_dict

yield from chunks


 "/usr/lib/python3.4/json/encoder.py", line 396, in _iterencode_dict

yield from chunks


 "/usr/lib/python3.4/json/encoder.py", line 396, in _iterencode_dict

yield from chunks


 "/usr/lib/python3.4/json/encoder.py", line 429, in _iterencode

o = _default(o)


 "/usr/lib/python3.4/json/encoder.py", line 173, in default

raise TypeError(repr(o) + " is not JSON serializable")
TypeError: b'lJ9UpNjRI6S3Gp514vKBQ==' is not JSON serializable

Traceback (most recent call last):

 "/usr/local/lib/python2.7/dist-packages/yowsup2-2.4.48-py2.7.egg/yowsup/layers/protocol_media/mediauploader.py", line 138, in run
self.successCallback(sourcePath, self.jid, result["url"])

 "/home/scripts/wabot/test/whatsapp-bot-seed/src/utils/media_sender.py", line 91, in <lambda>
caption)

 "/home/scripts/wabot/test/whatsapp-bot-seed/src/utils/media_sender.py", line 110, in _do_send_file
self.interface_layer.toLower(entity)

 "/usr/local/lib/python2.7/dist-packages/yowsup2-2.4.48-py2.7.egg/yowsup/layers/__init__.py", line 79, in toLower
self.**lower.send(data)

 "/usr/local/lib/python2.7/dist-packages/yowsup2-2.4.48-py2.7.egg/yowsup/layers/__init**.py", line 192, in send
s.send(data)

 "/usr/local/lib/python2.7/dist-packages/yowsup2-2.4.48-py2.7.egg/yowsup/layers/**init**.py", line 130, in send
send(entity)

 "/usr/local/lib/python2.7/dist-packages/yowsup2-2.4.48-py2.7.egg/yowsup/layers/protocol_media/layer.py", line 37, in sendMessageEntity
self.entityToLower(entity)

 "/usr/local/lib/python2.7/dist-packages/yowsup2-2.4.48-py2.7.egg/yowsup/layers/**init**.py", line 134, in entityToLower
self.toLower(entity.toProtocolTreeNode())

 "/usr/local/lib/python2.7/dist-packages/yowsup2-2.4.48-py2.7.egg/yowsup/layers/**init**.py", line 79, in toLower
self.__lower.send(data)

 "/usr/local/lib/python2.7/dist-packages/yowsup2-2.4.48-py2.7.egg/yowsup/layers/axolotl/layer.py", line 122, in send
self.handlePlaintextNode(node)

 "/usr/local/lib/python2.7/dist-packages/yowsup2-2.4.48-py2.7.egg/yowsup/layers/axolotl/layer.py", line 190, in handlePlaintextNode
messageData = self.serializeToProtobuf(node) if v2 else node.getChild("body").getData()

 "/usr/local/lib/python2.7/dist-packages/yowsup2-2.4.48-py2.7.egg/yowsup/layers/axolotl/layer.py", line 502, in serializeToProtobuf
return self.serializeMediaToProtobuf(node.getChild("media"))

 "/usr/local/lib/python2.7/dist-packages/yowsup2-2.4.48-py2.7.egg/yowsup/layers/axolotl/layer.py", line 514, in serializeMediaToProtobuf
return self.serializeImageToProtobuf(mediaNode)

 "/usr/local/lib/python2.7/dist-packages/yowsup2-2.4.48-py2.7.egg/yowsup/layers/axolotl/layer.py", line 547, in serializeImageToProtobuf
image_message.url = mediaNode["url"]

 "/usr/local/lib/python2.7/dist-packages/protobuf-3.0.0b2.post2-py2.7.egg/google/protobuf/internal/python_message.py", line 664, in field_setter
new_value = type_checker.CheckValue(new_value)

 "/usr/local/lib/python2.7/dist-packages/protobuf-3.0.0b2.post2-py2.7.egg/google/protobuf/internal/type_checkers.py", line 108, in CheckValue
raise TypeError(message)
TypeError: u'https://mmi680.whatsapp.net/d/AvcL69zwaIMjBXC-ihiYvNLBQqEt_3O9AkfGu6kLtxFq.jpg' has type <type 'unicode'>, but expected one of: (<type 'str'>,)
