You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
GET http://localhost:8085/wallets/btc/transactions
Expected behavior:
The transaction should be visible in the transactions list.
Actual behavior:
The API call returns a server error:
{
"error": {
"message": "'NoneType' object has no attribute '__getitem__'",
"code": "TypeError",
"handled": false,
"trace": ["
File \"/usr/lib/python2.7/dist-packages/twisted/web/server.py\", line 183, in process\n self.render(resrc)\n", "
File \"/usr/lib/python2.7/dist-packages/twisted/web/server.py\", line 234, in render\n body = resrc.render(self)\n", "
File \"/usr/lib/python2.7/dist-packages/twisted/web/resource.py\", line 250, in render\n return m(request)\n", "
File \"/usr/local/lib/python2.7/dist-packages/Tribler/Core/Modules/restapi/wallets_endpoint.py\", line 221, in render_GET\n self.session.lm.wallets[self.identifier].get_transactions().addCallback(on_transactions)\n", "
File \"/usr/local/lib/python2.7/dist-packages/Tribler/Core/Modules/wallet/btc_wallet.py\", line 141, in get_transactions\n transaction = Transaction.import_raw(db_result[0], network=self.network)\n", "
File \"/usr/local/lib/python2.7/dist-packages/bitcoinlib/transactions.py\", line 1150, in import_raw\n Contains 1 or more Input class object with UTXO's to spent and 1 or more Output class objects with destinations.\n", "
File \"/usr/local/lib/python2.7/dist-packages/bitcoinlib/transactions.py\", line 60, in _transaction_deserialize\n version = rawtx[0:4][::-1]\n"]
}
}
The text was updated successfully, but these errors were encountered:
After some debugging, I found out the problem is that the raw transaction is not stored in the database (the DbTransaction.raw column is empty). I submitted a PR to bitcoinlib which fixes that: 1200wd/bitcoinlib#75
Tribler version/branch+revision:
tribler/devel#969defb61a3201ac23115b2cfe004cafadae9db2
bitcoinlib 0.4.4
Operating system and version:
Ubuntu 16.04
Steps to reproduce the behavior:
GET http://localhost:8085/wallets/btc/transactions
Expected behavior:
The transaction should be visible in the transactions list.
Actual behavior:
The API call returns a server error:
The text was updated successfully, but these errors were encountered: