{"action":"closed","issue":{"url":"https://api.github.com/repos/AragurDEV/yowsup/issues/64","repository_url":"https://api.github.com/repos/AragurDEV/yowsup","labels_url":"https://api.github.com/repos/AragurDEV/yowsup/issues/64/labels{/name}","comments_url":"https://api.github.com/repos/AragurDEV/yowsup/issues/64/comments","events_url":"https://api.github.com/repos/AragurDEV/yowsup/issues/64/events","html_url":"https://github.com/AragurDEV/yowsup/issues/64","id":295951853,"number":64,"title":"Image received crash","user":{"login":"pabloruan0710","id":8368140,"avatar_url":"https://avatars0.githubusercontent.com/u/8368140?v=4","gravatar_id":"","url":"https://api.github.com/users/pabloruan0710","html_url":"https://github.com/pabloruan0710","followers_url":"https://api.github.com/users/pabloruan0710/followers","following_url":"https://api.github.com/users/pabloruan0710/following{/other_user}","gists_url":"https://api.github.com/users/pabloruan0710/gists{/gist_id}","starred_url":"https://api.github.com/users/pabloruan0710/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/pabloruan0710/subscriptions","organizations_url":"https://api.github.com/users/pabloruan0710/orgs","repos_url":"https://api.github.com/users/pabloruan0710/repos","events_url":"https://api.github.com/users/pabloruan0710/events{/privacy}","received_events_url":"https://api.github.com/users/pabloruan0710/received_events","type":"User","site_admin":false},"labels":[{"id":691494199,"url":"https://api.github.com/repos/AragurDEV/yowsup/labels/bug","name":"bug","color":"ee0701","default":true}],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":1,"created_at":"2018-02-09T17:40:00Z","updated_at":"2018-05-21T11:49:54Z","closed_at":"2018-05-21T11:49:54Z","author_association":"NONE","body":"I received this error where use **message.getMediaContent()**, anybody know how fix this? \r\n\r\nMy code:\r\n\r\n```\r\nwith open(filename, 'wb') as f:\r\n        f.write(message.getMediaContent())\r\n```\r\n\r\n\r\n```\r\nFile \"/home/yowsup/layers/protocol_media/protocolentities/message_media_downloadable_image.py\", line 163, in getMediaContent\r\n    data = self.decrypt(data, self.mediaKey)\r\n  File \"/home/yowsup/layers/protocol_media/protocolentities/message_media_downloadable_image.py\", line 152, in decrypt\r\n    cr_obj = AES.new(key=cipherKey, mode=AES.MODE_CBC, IV=iv)\r\n  File \"/usr/local/lib/python3.5/dist-packages/pycryptodome-3.4.3-py3.5-linux-x86_64.egg/Crypto/Cipher/AES.py\", line 260, in new\r\n    return _create_cipher(sys.modules[__name__], key, mode, *args, **kwargs)\r\n  File \"/usr/local/lib/python3.5/dist-packages/pycryptodome-3.4.3-py3.5-linux-x86_64.egg/Crypto/Cipher/__init__.py\", line 130, in _create_cipher\r\n    return modes[mode](factory, **kwargs)\r\n  File \"/usr/local/lib/python3.5/dist-packages/pycryptodome-3.4.3-py3.5-linux-x86_64.egg/Crypto/Cipher/_mode_cbc.py\", line 232, in _create_cbc_cipher\r\n    cipher_state = factory._create_base_cipher(kwargs)\r\n  File \"/usr/local/lib/python3.5/dist-packages/pycryptodome-3.4.3-py3.5-linux-x86_64.egg/Crypto/Cipher/AES.py\", line 129, in _create_base_cipher\r\n    if len(key) not in key_size:\r\nTypeError: argument of type 'int' is not iterable\r\n```"}}
{"actor":{"display_login":"pabloruan0710"}}