janezpodhostnik / flow-py-sdk

Unofficial flow blockchain python sdk
MIT License
35 stars 26 forks source link

Test fail on GetCollectionByIdExample #40

Closed timnugent closed 1 year ago

timnugent commented 2 years ago

MacBook-Pro:flow-py-sdk tnugent$ poetry run examples [16:06:46] INFO: === RUNNING: [C.1.] Get Account Contracts === [16:06:46] INFO: ==== PASSED ====

[16:06:46] INFO: === RUNNING: [B.1.] GetBlockByIdExample === [16:06:46] INFO: ==== PASSED ====

[16:06:46] INFO: === RUNNING: [B.2.] GetBlockByHeightExample === [16:06:46] INFO: ==== PASSED ====

[16:06:46] INFO: === RUNNING: [B.3.] GetLatestBlockExample === [16:06:46] INFO: ==== PASSED ====

[16:06:46] INFO: === RUNNING: [CL.1.] GetCollectionByIdExample === [16:06:46] ERROR: ==== FAILED ====

Traceback (most recent call last): File "/Users/tnugent/src/flow-py-sdk/examples/common/example_base.py", line 63, in _run await ex.run(cfg) File "/Users/tnugent/src/flow-py-sdk/examples/collectionsexamples.py", line 20, in run , , = await random_account(client=client, ctx=ctx) File "/Users/tnugent/src/flow-py-sdk/examples/common/utils.py", line 49, in random_account address, keys, signers = await random_account_with_weights( File "/Users/tnugent/src/flow-py-sdk/examples/common/utils.py", line 122, in random_account_with_weights result = await client.execute_transaction(tx) File "/Users/tnugent/src/flow-py-sdk/flow_py_sdk/client/client.py", line 535, in execute_transaction raise Exception(tx_result.error_message) # TODO wrap error Exception: execution error code 1006: [Error Code: 1006] invalid proposal key: public key 0 on account f8d6e0586b0a20c7 does not have a valid signature: [Error Code: 1009] invalid envelope key: public key 0 on account f8d6e0586b0a20c7 does not have a valid signature: signature is not valid Stack (most recent call last): File "", line 1, in File "/Users/tnugent/src/flow-py-sdk/examples/main.py", line 36, in run success = loop.run_until_complete(run_async(ctx, examples)) File "/usr/local/Cellar/python@3.10/3.10.1/Frameworks/Python.framework/Versions/3.10/lib/python3.10/asyncio/base_events.py", line 628, in run_until_complete self.run_forever() File "/usr/local/Cellar/python@3.10/3.10.1/Frameworks/Python.framework/Versions/3.10/lib/python3.10/asyncio/base_events.py", line 595, in run_forever self._run_once() File "/usr/local/Cellar/python@3.10/3.10.1/Frameworks/Python.framework/Versions/3.10/lib/python3.10/asyncio/base_events.py", line 1881, in _run_once handle._run() File "/usr/local/Cellar/python@3.10/3.10.1/Frameworks/Python.framework/Versions/3.10/lib/python3.10/asyncio/events.py", line 80, in _run self._context.run(self._callback, *self._args) File "/Users/tnugent/src/flow-py-sdk/examples/main.py", line 14, in run_async return await example_registry.run_all(ctx) File "/Users/tnugent/src/flow-py-sdk/examples/common/example_base.py", line 51, in run_all success = success and await self._run(cfg, ex) File "/Users/tnugent/src/flow-py-sdk/examples/common/example_base.py", line 65, in _run log.error(