Operating System: Virtual machine of Ubuntu 16, through Window 10 host
Description
I set up bigchaindb, with python driver and mongodb. Then, I try to run the code from Basic Usage Example, and receive Internal Server Error, but when I run curl http://localhost:9984/api/v1/transactions, it shows {"message": {"asset_id": "Missing required parameter in the JSON body or the post body or the query string"}}, which means that my connection is established.
vagrant@ubuntu-bionic:/vagrant$ python3 main.py
Traceback (most recent call last):
File "main.py", line 79, in <module>
sent_creation_tx = bdb.transactions.send_commit(fulfilled_creation_tx)
File "/usr/local/lib/python3.6/dist-packages/bigchaindb_driver/driver.py", line 375, in send_commit
headers=headers)
File "/usr/local/lib/python3.6/dist-packages/bigchaindb_driver/transport.py", line 82, in forward_request
backoff_cap=backoff_cap,
File "/usr/local/lib/python3.6/dist-packages/bigchaindb_driver/connection.py", line 91, in request
**kwargs,
File "/usr/local/lib/python3.6/dist-packages/bigchaindb_driver/connection.py", line 128, in _request
raise exc_cls(response.status_code, text, json, kwargs['url'])
bigchaindb_driver.exceptions.TransportError: (500, '{"message": "Internal Server Error"}\n', {'message': 'Internal Server Error'}, 'http://localhost:9984/api/v1/transactions/')
vagrant@ubuntu-bionic:/vagrant$ curl http://localhost:9984
{"api":{"v1":{"assets":"/api/v1/assets/","blocks":"/api/v1/blocks/","docs":"https://docs.bigchaindb.com/projects/server/en/v2.0.0b9/http-client-server-api.html","metadata":"/api/v1/metadata/","outputs":"/api/v1/outputs/","streams":"ws://localhost:9985/api/v1/streams/valid_transactions","transactions":"/api/v1/transactions/","validators":"/api/v1/validators"}},"docs":"https://docs.bigchaindb.com/projects/server/en/v2.0.0b9/","software":"BigchainDB","version":"2.0.0b9"}
vagrant@ubuntu-bionic:/vagrant$ curl http://localhost:9984/api/v1/transactions
{"message": {"asset_id": "Missing required parameter in the JSON body or the post body or the query string"}}
Description
I set up bigchaindb, with python driver and mongodb. Then, I try to run the code from Basic Usage Example, and receive
Internal Server Error
, but when I runcurl http://localhost:9984/api/v1/transactions
, it shows{"message": {"asset_id": "Missing required parameter in the JSON body or the post body or the query string"}}
, which means that my connection is established.How can I debug form here?
What I Did
My stacktrace