(venv) trentmc@trentmcLnv:~/code/ocean.py$ pytest ocean_lib/ocean/test/test_ocean_assets.py::test_register_asset ============================================================================ test session starts ============================================================================= platform linux -- Python 3.8.8, pytest-6.2.2, py-1.10.0, pluggy-0.13.1 rootdir: /home/trentmc/code/ocean.py, configfile: pytest.ini plugins: env-0.6.2 collected 1 item ocean_lib/ocean/test/test_ocean_assets.py F [100%] ================================================================================== FAILURES ================================================================================== ____________________________________________________________________________ test_register_asset _____________________________________________________________________________ publisher_ocean_instance = def test_register_asset(publisher_ocean_instance): """Test various paths for asset registration.""" ocn = publisher_ocean_instance ddo_reg = ocn.assets.ddo_registry() block = ocn.web3.eth.blockNumber alice = get_publisher_wallet() bob = get_consumer_wallet() def _get_num_assets(_minter): dids = [add_0x_prefix(did_to_id(a)) for a in ocn.assets.owner_assets(_minter)] dids = [a for a in dids if len(a) == 42] return len([a for a in dids if DataToken(a).contract_concise.isMinter(_minter)]) > num_assets_owned = _get_num_assets(alice.address) ocean_lib/ocean/test/test_ocean_assets.py:49: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ ocean_lib/ocean/test/test_ocean_assets.py:45: in _get_num_assets dids = [add_0x_prefix(did_to_id(a)) for a in ocn.assets.owner_assets(_minter)] ocean_lib/ocean/ocean_assets.py:586: in owner_assets for asset in self.query( ocean_lib/ocean/ocean_assets.py:400: in query for ddo_dict in aquarius.query_search({"query": query}, sort, offset, page)[ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = search_query = {'offset': 1000, 'page': 1, 'query': {'query_string': {'fields': ['proof.creator'], 'query': '0xe2DD09d719Da89e5a3D0F2549c7E24566e947260'}}, 'sort': None} sort = None, offset = 1000, page = 1 def query_search(self, search_query, sort=None, offset=100, page=1): """ Search using a query. Currently implemented is the MongoDB query model to search for documents according to: https://docs.mongodb.com/manual/tutorial/query-documents/ And an Elastic Search driver, which implements a basic parser to convert the query into elastic search format. Example: query_search({"price":[0,10]}) :param search_query: Python dictionary, query following mongodb syntax :param sort: 1/-1 to sort ascending or descending. :param offset: Integer with the number of elements displayed per page. :param page: Integer with the number of page. :return: List of DDO instance """ assert page >= 1, f'Invalid page value {page}. Required page >= 1.' search_query['sort'] = sort search_query['offset'] = offset search_query['page'] = page response = self.requests_session.post( f'{self.url}/query', data=json.dumps(search_query), headers=self._headers ) if response.status_code == 200: return self._parse_search_response(response.content) else: > raise Exception(f'Unable to search for DDO: {response.content}') E Exception: Unable to search for DDO: b'\n500 Internal Server Error\n

Internal Server Error

\n

The server encountered an internal error and was unable to complete your request. Either the server is overloaded or there is an error in the application.

\n' venv/lib/python3.8/site-packages/ocean_utils/aquarius/aquarius.py:236: Exception --------------------------------------------------------------------------- Captured stdout setup ---------------------------------------------------------------------------- sender: 0xc594c6e5def4bab63ac29eed19a134c130388f74f019bc74b8f4389df2837a58, 0xe2DD09d719Da89e5a3D0F2549c7E24566e947260, None, address: 0xe2DD09d719Da89e5a3D0F2549c7E24566e947260 private key: 0xc594c6e5def4bab63ac29eed19a134c130388f74f019bc74b8f4389df2837a58 public key: 0x8b1b222564fb8302e9acfa4bcd60060de03ae479fcbed38fe21e45cd39ddb3fefb60ba1b4625e00d02223027c8f485f6d77693ab62ce06289b23942c6b319ccf sender balance: 99.730328501 ---------------------------------------------------------------------------- Captured stderr call ---------------------------------------------------------------------------- 2021-03-26 11:52:28 trentmcLnv ocean[25396] INFO Searching asset query: {'query_string': {'query': '0xe2DD09d719Da89e5a3D0F2549c7E24566e947260', 'fields': ['proof.creator']}} ----------------------------------------------------------------------------- Captured log call ------------------------------------------------------------------------------ INFO ocean:ocean_assets.py:396 Searching asset query: {'query_string': {'query': '0xe2DD09d719Da89e5a3D0F2549c7E24566e947260', 'fields': ['proof.creator']}} ========================================================================== short test summary info =========================================================================== FAILED ocean_lib/ocean/test/test_ocean_assets.py::test_register_asset - Exception: Unable to search for DDO: b'\n