{"action":"opened","issue":{"url":"https://api.github.com/repos/StellarCN/py-stellar-base/issues/134","repository_url":"https://api.github.com/repos/StellarCN/py-stellar-base","labels_url":"https://api.github.com/repos/StellarCN/py-stellar-base/issues/134/labels{/name}","comments_url":"https://api.github.com/repos/StellarCN/py-stellar-base/issues/134/comments","events_url":"https://api.github.com/repos/StellarCN/py-stellar-base/issues/134/events","html_url":"https://github.com/StellarCN/py-stellar-base/issues/134","id":344488836,"node_id":"MDU6SXNzdWUzNDQ0ODg4MzY=","number":134,"title":"envelope_xdr not decoding from XDR","user":{"login":"skinderis","id":24273695,"node_id":"MDQ6VXNlcjI0MjczNjk1","avatar_url":"https://avatars0.githubusercontent.com/u/24273695?v=4","gravatar_id":"","url":"https://api.github.com/users/skinderis","html_url":"https://github.com/skinderis","followers_url":"https://api.github.com/users/skinderis/followers","following_url":"https://api.github.com/users/skinderis/following{/other_user}","gists_url":"https://api.github.com/users/skinderis/gists{/gist_id}","starred_url":"https://api.github.com/users/skinderis/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/skinderis/subscriptions","organizations_url":"https://api.github.com/users/skinderis/orgs","repos_url":"https://api.github.com/users/skinderis/repos","events_url":"https://api.github.com/users/skinderis/events{/privacy}","received_events_url":"https://api.github.com/users/skinderis/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":0,"created_at":"2018-07-25T15:16:11Z","updated_at":"2018-07-25T15:16:11Z","closed_at":null,"author_association":"NONE","body":"Hi,\r\n\r\nI noticed that I can't decode from xdr string (which I get from transaction).\r\n\r\n ```\r\n       envelope_xdr = tx.get('envelope_xdr')\r\n       te = TransactionEnvelope.from_xdr(envelope_xdr)\r\n```\r\nenvelope_xdr is `'AAAAAB0Y5B0+dzkuymcBvFeg83RYv5gNZALXsp4sYd/ju0gxAAAAZACbbl0AAAABAAAAAQAAAAAAAAAAAAAAAAAAAAAAAAABAAAAEjEyMzQ1Njc4OTBzZHNkZjEyMwAAAAAAAQAAAAEAAAAAHRjkHT53OS7KZwG8V6DzdFi/mA1kAteynixh3+O7SDEAAAABAAAAAFwfwXA3LqHloLvczd9lMdmvF/dh0RVJ2LyxZ9cp0ueuAAAAAAAAAABJUE+AAAAAAAAAAAHju0gxAAAAQNchibh2qxL3CBjcpLh0AsT6N4Rfe9LXwzaPJkXEFxLvlyid50jAMgZvblbKEF3IWUjcmjPeh0P9xHxygwxHzgI='`\r\n\r\nI get this error:\r\n```\r\n/usr/local/lib/python3.6/site-packages/stellar_base/transaction_envelope.py in from_xdr(cls, xdr)\r\n     70         signatures = te_xdr_object.signatures\r\n     71         tx_xdr_object = te_xdr_object.tx\r\n---> 72         tx = Transaction.from_xdr_object(tx_xdr_object)\r\n     73         te = TransactionEnvelope(tx, {'signatures': signatures})\r\n     74         # te = TransactionEnvelope(tx, {'signatures': signatures, 'network_id': 'PUBLIC'})\r\n\r\n/usr/local/lib/python3.6/site-packages/stellar_base/transaction.py in from_xdr_object(cls, tx_xdr_object)\r\n     58         memo_switch = tx_xdr_object.memo.switch\r\n     59         if memo_type == Xdr.const.MEMO_TEXT:\r\n---> 60             memo = TextMemo(memo_switch)\r\n     61         elif memo_type == Xdr.const.MEMO_ID:\r\n     62             memo = IdMemo(memo_switch)\r\n\r\n/usr/local/lib/python3.6/site-packages/stellar_base/memo.py in __init__(self, text)\r\n     36     def __init__(self, text):\r\n     37         if not isinstance(text, (str, unicode)):\r\n---> 38             raise TypeError('Expects string type got a ' + type(text).__name__)\r\n     39         if bytes == str and not isinstance(text, unicode):  # Python 2 without unicode string\r\n     40             self.text = text\r\n\r\nTypeError: Expects string type got a bytes\r\n```\r\n\r\n"}}
{"actor":{"display_login":"skinderis"}}