{"action":"opened","issue":{"url":"https://api.github.com/repos/chris-belcher/joinmarket/issues/184","labels_url":"https://api.github.com/repos/chris-belcher/joinmarket/issues/184/labels{/name}","comments_url":"https://api.github.com/repos/chris-belcher/joinmarket/issues/184/comments","events_url":"https://api.github.com/repos/chris-belcher/joinmarket/issues/184/events","html_url":"https://github.com/chris-belcher/joinmarket/issues/184","id":100136080,"number":184,"title":"transaction.py - TypeError: Odd-length string","user":{"login":"CohibAA","id":8827165,"avatar_url":"https://avatars.githubusercontent.com/u/8827165?v=3","gravatar_id":"","url":"https://api.github.com/users/CohibAA","html_url":"https://github.com/CohibAA","followers_url":"https://api.github.com/users/CohibAA/followers","following_url":"https://api.github.com/users/CohibAA/following{/other_user}","gists_url":"https://api.github.com/users/CohibAA/gists{/gist_id}","starred_url":"https://api.github.com/users/CohibAA/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/CohibAA/subscriptions","organizations_url":"https://api.github.com/users/CohibAA/orgs","repos_url":"https://api.github.com/users/CohibAA/repos","events_url":"https://api.github.com/users/CohibAA/events{/privacy}","received_events_url":"https://api.github.com/users/CohibAA/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":0,"created_at":"2015-08-10T18:27:39Z","updated_at":"2015-08-10T18:27:39Z","closed_at":null,"body":"    [2015/08/10 09:41:48] rpc: getrawtransaction ['redactedtransid']\r\n    ----------------------------------------\r\n    Exception happened during processing of request from ('127.0.0.1', 42250)\r\n    Traceback (most recent call last):\r\n      File \"/usr/lib/python2.7/SocketServer.py\", line 295, in _handle_request_noblock\r\n        self.process_request(request, client_address)\r\n      File \"/usr/lib/python2.7/SocketServer.py\", line 321, in process_request\r\n        self.finish_request(request, client_address)\r\n      File \"/usr/lib/python2.7/SocketServer.py\", line 334, in finish_request\r\n        self.RequestHandlerClass(request, client_address, self)\r\n      File \"/home/cohibaa/joinmarket/lib/blockchaininterface.py\", line 326, in __init__\r\n        BaseHTTPServer.BaseHTTPRequestHandler.__init__(self, request, client_address,    base_server)\r\n      File \"/usr/lib/python2.7/SocketServer.py\", line 649, in __init__\r\n        self.handle()\r\n      File \"/usr/lib/python2.7/BaseHTTPServer.py\", line 340, in handle\r\n        self.handle_one_request()\r\n      File \"/usr/lib/python2.7/BaseHTTPServer.py\", line 328, in handle_one_request\r\n        method()\r\n      File \"/home/cohibaa/joinmarket/lib/blockchaininterface.py\", line 340, in do_HEAD\r\n        txd = btc.deserialize(tx)\r\n      File \"/home/cohibaa/joinmarket/lib/bitcoin/transaction.py\", line 48, in deserialize\r\n        return json_changebase(deserialize(binascii.unhexlify(tx)),\r\n    TypeError: Odd-length string\r\n\r\nAny ideas what might be causing this?  It did not crash the yield-gen bot, but kept repeating this error every time rpc getrawtransaction was called, and FWIW bitcoin-cli and curl to jsonrpc returns the raw transaction properly when called manually from the terminal.  This was using master with https://github.com/chris-belcher/joinmarket/pull/141, https://github.com/chris-belcher/joinmarket/pull/172, https://github.com/chris-belcher/joinmarket/pull/173 patches.  \r\n\r\nThe transaction id was valid, and the transaction was propagated and confirmed.  If it helps, I can provide the actual txid.  Otherwise, if it's not clear to someone smarter than I what caused this, I'll start reverting patches and retest until I can figure out the cause... thanks!"}}