verifiablesoftware / vsw

Core project of VerifiableSoftware
Apache License 2.0
1 stars 0 forks source link

"vsw publish" times out #103

Closed wenjing closed 3 years ago

wenjing commented 3 years ago

v0.0.10

There are two issues here. (1) After creating a wallet, making connection, I exited, created other wallets, then re-opened the first wallet. At this point, I tried to do "vsw publish -c publish.json" with a fake sourceHash value (see related issue #101). It timed out and returned failure. (2) I tried again. And noticed that vsw created another local DID every time. If "vsw publish" fails, it should remove the local DID it created so that these unused DIDs do not accumulate in the wallet.

root@bf2fc89a268a:/# root@bf2fc89a268a:/# root@bf2fc89a268a:/# vsw publish -c workspace/vsw-0-0-10.json 2021-05-26 21:01:49 vsw.commands.publish INFO /usr/local/lib/python3.6/dist-packages/vsw/commands/publish.py schema name: software-certificate 2021-05-26 21:01:49 vsw.commands.publish INFO /usr/local/lib/python3.6/dist-packages/vsw/commands/publish.py executing publish, please waiting for response 2021-05-26 21:01:49 vsw.commands.publish INFO /usr/local/lib/python3.6/dist-packages/vsw/commands/publish.py holder connection_id: ef679fa1-9df6-49a2-a171-0e765f6033eb 2021-05-26 21:01:53 vsw.commands.publish INFO /usr/local/lib/python3.6/dist-packages/vsw/commands/publish.py Created new software-did: UVtn8Vakx6vnYAEK7WpXLS 2021-05-26 21:01:53 vsw.commands.publish INFO /usr/local/lib/python3.6/dist-packages/vsw/commands/publish.py cred_def_id: 7oyYcUVf2DfqqL4h338Rdj:3:CL:3733:default 2021-05-26 21:01:54 vsw.commands.publish INFO /usr/local/lib/python3.6/dist-packages/vsw/commands/publish.py credential_exchange_id: bbc1966c-56ff-475b-ac8b-866d69843b99 2021-05-26 21:02:24 vsw.commands.publish ERROR /usr/local/lib/python3.6/dist-packages/vsw/commands/publish.py Request timeout, there might be some issue during publishing root@bf2fc89a268a:/# root@bf2fc89a268a:/# root@bf2fc89a268a:/# vsw list -c { 'results': [ { 'alias': 'vsw-agent', 'their_did': 'YS2EPGA4rsqDfptneCA4WA', 'created_at': '2021-05-26 17:08:36.580455Z', 'their_label': 'Repo.Agent', 'state': 'active', 'connection_id': '674915f4-a94f-457e-bcb2-8d21284bdc7b', 'invitation_mode': 'once', 'updated_at': '2021-05-26 17:08:37.461660Z', 'accept': 'auto', 'routing_state': 'none', 'request_id': 'd4d0ee89-f595-4c6a-b7d9-a94a32e7eaef', 'my_did': '6WveTADZv5p7Xx8Z1uC6PG', 'invitation_key': 'Dsi64LniVgfRQjFAaAS74mQfo4WCQkmhQ8p7E7HJT4ka', 'initiator': 'external' } ] } root@bf2fc89a268a:/# root@bf2fc89a268a:/# root@bf2fc89a268a:/# vsw list -w { 'results': [ {'did': '6WveTADZv5p7Xx8Z1uC6PG', 'verkey': '41NTYPSkAEQ8Nz3ZhNzukJTeTrC3qCGDK2fbZnm3ELbv', 'public': False}, {'did': '7oyYcUVf2DfqqL4h338Rdj', 'verkey': '4iGwGf3xf6ndynXFegDHxTvuyx8yCiWFSfTPY5pZMhPv', 'public': True}, {'did': 'DC3H5c7JDLvuckyEq41fUs', 'verkey': '7eMuVDPcSoa1kdppDCmugieq4een6j25f6ca6J32TdvS', 'public': False}, {'did': 'UVtn8Vakx6vnYAEK7WpXLS', 'verkey': 'FzGhnbVBNYR8dmCqPzNk4KK5dQTbmm8EqYLy2H7PmL5J', 'public': False} ] } root@bf2fc89a268a:/# vsw publish -c workspace/vsw-0-0-10.json 2021-05-26 21:04:46 vsw.commands.publish INFO /usr/local/lib/python3.6/dist-packages/vsw/commands/publish.py schema name: software-certificate 2021-05-26 21:04:46 vsw.commands.publish INFO /usr/local/lib/python3.6/dist-packages/vsw/commands/publish.py executing publish, please waiting for response 2021-05-26 21:04:47 vsw.commands.publish INFO /usr/local/lib/python3.6/dist-packages/vsw/commands/publish.py holder connection_id: ef679fa1-9df6-49a2-a171-0e765f6033eb 2021-05-26 21:04:50 vsw.commands.publish INFO /usr/local/lib/python3.6/dist-packages/vsw/commands/publish.py Created new software-did: QuBjWmw5D1wQd3NC6Lqxcx 2021-05-26 21:04:50 vsw.commands.publish INFO /usr/local/lib/python3.6/dist-packages/vsw/commands/publish.py cred_def_id: 7oyYcUVf2DfqqL4h338Rdj:3:CL:3733:default 2021-05-26 21:04:50 vsw.commands.publish INFO /usr/local/lib/python3.6/dist-packages/vsw/commands/publish.py credential_exchange_id: 0bedc614-c335-4fe3-96b7-59ff64dc9abc 2021-05-26 21:05:21 vsw.commands.publish ERROR /usr/local/lib/python3.6/dist-packages/vsw/commands/publish.py Request timeout, there might be some issue during publishing root@bf2fc89a268a:/# vsw list -w { 'results': [ {'did': '6WveTADZv5p7Xx8Z1uC6PG', 'verkey': '41NTYPSkAEQ8Nz3ZhNzukJTeTrC3qCGDK2fbZnm3ELbv', 'public': False}, {'did': '7oyYcUVf2DfqqL4h338Rdj', 'verkey': '4iGwGf3xf6ndynXFegDHxTvuyx8yCiWFSfTPY5pZMhPv', 'public': True}, {'did': 'DC3H5c7JDLvuckyEq41fUs', 'verkey': '7eMuVDPcSoa1kdppDCmugieq4een6j25f6ca6J32TdvS', 'public': False}, {'did': 'QuBjWmw5D1wQd3NC6Lqxcx', 'verkey': 'E2X3Suuq6Hj3NXucFKJLhY1kS4iDVRMVsWcUNhATQLBM', 'public': False}, {'did': 'UVtn8Vakx6vnYAEK7WpXLS', 'verkey': 'FzGhnbVBNYR8dmCqPzNk4KK5dQTbmm8EqYLy2H7PmL5J', 'public': False} ] }

wenjing commented 3 years ago

verified fix in 0.0.14