bigchaindb / bigchaindb-driver

Official Python driver for BigchainDB
https://www.bigchaindb.com
Apache License 2.0
105 stars 104 forks source link

TimeoutError when commit sending transactions #484

Closed NanPhi closed 6 years ago

NanPhi commented 6 years ago

Description

I used bigchaindb to set up a local bigchaindb server with only one node in my machine. Then I followed the tutorial of the Basic Usage Examples http://docs.bigchaindb.com/projects/py-driver/en/latest/usage.html, however when I went into the step

sent_creation_tx = bdb.transactions.send_commit(fulfilled_creation_tx)

a TimeoutError came up

What I Did

In [22]: sent_creation_tx = bdb.transactions.send_commit(fulfilled_creation_tx)
---------------------------------------------------------------------------
TimeoutError                              Traceback (most recent call last)
<ipython-input-22-6495e0171e3f> in <module>()
----> 1 sent_creation_tx = bdb.transactions.send_commit(fulfilled_creation_tx)

/usr/local/lib/python3.6/dist-packages/bigchaindb_driver/driver.py in send_commit(self, transaction, headers)
    409             json=transaction,
    410             params={'mode': 'commit'},
--> 411             headers=headers)
    412 
    413     def retrieve(self, txid, headers=None):

/usr/local/lib/python3.6/dist-packages/bigchaindb_driver/transport.py in forward_request(self, method, path, json, params, headers)
     80                     headers=headers,
     81                     timeout=timeout,
---> 82                     backoff_cap=backoff_cap,
     83                 )
     84             except ConnectionError as err:

/usr/local/lib/python3.6/dist-packages/bigchaindb_driver/connection.py in request(self, method, path, json, params, headers, timeout, backoff_cap, **kwargs)
     74 
     75         if timeout is not None and timeout < backoff_timedelta:
---> 76             raise TimeoutError
     77 
     78         if backoff_timedelta > 0:

TimeoutError: 
codegeschrei commented 6 years ago

Hey @NanPhi Did you follow these instructions to set everything up?

NanPhi commented 6 years ago

Hey @codegeschrei

Vielen Dank fuer den Vorschlag. I thought it was because of my unfinished bigchaindb network.