Error doesn't hep in identifying the issue with cli-wallet command #54

Closed
opened 2021-03-17 19:20:18 +00:00 by prandnum · 15 comments
prandnum commented 2021-03-17 19:20:18 +00:00 (Migrated from gitlab.com)
  1. Tried running the following command

import_key "prandnum-1" 5JN2f6MYJ7A9xfcYPMdDXcbRD6Yn2Uij3afDH8MoqFA34xkHsre

Which failed with the error

0 exception: unspecified
tmp wallet file cannot be validated wallet.json.tmp
    {"fn":"wallet.json.tmp"}
    th_a  wallet.cpp:1135 save_wallet_file

The problem was the password was not provided in the quotes, but the error is not at all helpful :). Can we do something about it? at least provide a simple error like " is invalid"?

For more details see below

unlocked >>> import_key "prandnum-1" 5JN2f6MYJ7A9xfcYPMdDXcbRD6Yn2Uij3afDH8MoqFA34xkHsre
import_key "prandnum-1" 5JN2f6MYJ7A9xfcYPMdDXcbRD6Yn2Uij3afDH8MoqFA34xkHsre
2077592ms th_a       wallet.cpp:1146               save_wallet_file     ] wallet file content is: {
  "chain_id": "b3f7fe1e5ad0d2deca40a626a4404524f78e65c3a48137551c33ea4e7c365672",
  "my_accounts": [{
      "id": "1.2.2341",
      "membership_expiration_date": "2106-02-07T06:28:15",
      "registrar": "1.2.2341",
      "referrer": "1.2.2341",
      "lifetime_referrer": "1.2.2341",
      "network_fee_percentage": 10000,
      "lifetime_referrer_fee_percentage": 0,
      "referrer_rewards_percentage": 0,
      "name": "prandnum-1",
      "owner": {
        "weight_threshold": 1,
        "account_auths": [],
        "key_auths": [[
            "TEST6bYABXPd8XqFnLkoKnTcL8qHhiZGh3TQbZBy78NZDda5eR4GAs",
            1
          ]
        ],
        "address_auths": []
      },
      "active": {
        "weight_threshold": 1,
        "account_auths": [],
        "key_auths": [[
            "TEST5dYgj8oYFrev9ZkE6N23wkjXowcrp4AdcSbDS6EVMGvNqXVX9R",
            1
          ]
        ],
        "address_auths": []
      },
      "options": {
        "memo_key": "TEST81DtFJVao3TjPHGPBPCthxUvHjXaEgACLVn48ZbFTcvefSFyG2",
        "voting_account": "1.2.5",
        "num_witness": 2,
        "num_committee": 2,
        "votes": [
          "0:14",
          "1:26",
          "0:31",
          "1:38"
        ],
        "extensions": []
      },
      "statistics": "2.6.2341",
      "whitelisting_accounts": [],
      "blacklisting_accounts": [],
      "whitelisted_accounts": [],
      "blacklisted_accounts": [],
      "owner_special_authority": [
        0,{}
      ],
      "active_special_authority": [
        0,{}
      ],
      "top_n_control_flags": 0
    }
  ],
  "cipher_keys": "ef8a5b14314c25b0d419bcd53d47a7dea1d48668d09bb215308d22bd1466183e9a61a444c0b29aad28ec0b5bd71b4e420217bd16e6603433109f2a26e109f9180777576547f13332fd9e214d769aaf0d9b976626216696fe330370d8bae90928bc58187db85e4db2e0900a8815f0cd75bf4095c84ccfe3759e0e39ac8280a39d93b03cc9b4e0286789fd672e4c119ee2123611559238355c1614f8426e85880f",
  "extra_keys": [[
      "1.2.2341",[
        "TEST6bYABXPd8XqFnLkoKnTcL8qHhiZGh3TQbZBy78NZDda5eR4GAs"
      ]
    ]
  ],
  "pending_account_registrations": [],
  "pending_witness_registrations": [],
  "labeled_keys": [],
  "blind_receipts": [],
  "committed_game_moves": [],
  "ws_server": "ws://localhost:8090",
  "ws_user": "",
  "ws_password": ""
}
0 exception: unspecified
tmp wallet file cannot be validated wallet.json.tmp
    {"fn":"wallet.json.tmp"}
    th_a  wallet.cpp:1135 save_wallet_file
unlocked >>>
unlocked >>> import_key "prandnum-1" "5JN2f6MYJ7A9xfcYPMdDXcbRD6Yn2Uij3afDH8MoqFA34xkHsre"
import_key "prandnum-1" "5JN2f6MYJ7A9xfcYPMdDXcbRD6Yn2Uij3afDH8MoqFA34xkHsre"
710427ms th_a       wallet.cpp:633                copy_wallet_file     ] backing up wallet wallet.json to after-import-key-1f6d7da0.wallet
true
unlocked >>> import_key prandnum-1 "5JN2f6MYJ7A9xfcYPMdDXcbRD6Yn2Uij3afDH8MoqFA34xkHsre"
import_key prandnum-1 "5JN2f6MYJ7A9xfcYPMdDXcbRD6Yn2Uij3afDH8MoqFA34xkHsre"
747946ms th_a       wallet.cpp:633                copy_wallet_file     ] backing up wallet wallet.json to before-import-key-1f6d7da0.wallet
747950ms th_a       wallet.cpp:633                copy_wallet_file     ] backing up wallet wallet.json to after-import-key-1f6d7da0-1.wallet
true
unlocked >>>
1) Tried running the following command `import_key "prandnum-1" 5JN2f6MYJ7A9xfcYPMdDXcbRD6Yn2Uij3afDH8MoqFA34xkHsre` Which failed with the error ``` 0 exception: unspecified tmp wallet file cannot be validated wallet.json.tmp {"fn":"wallet.json.tmp"} th_a wallet.cpp:1135 save_wallet_file ``` The problem was the password was not provided in the quotes, but the error is not at all helpful :). Can we do something about it? at least provide a simple error like "<parameter> is invalid"? For more details see below ``` unlocked >>> import_key "prandnum-1" 5JN2f6MYJ7A9xfcYPMdDXcbRD6Yn2Uij3afDH8MoqFA34xkHsre import_key "prandnum-1" 5JN2f6MYJ7A9xfcYPMdDXcbRD6Yn2Uij3afDH8MoqFA34xkHsre 2077592ms th_a wallet.cpp:1146 save_wallet_file ] wallet file content is: { "chain_id": "b3f7fe1e5ad0d2deca40a626a4404524f78e65c3a48137551c33ea4e7c365672", "my_accounts": [{ "id": "1.2.2341", "membership_expiration_date": "2106-02-07T06:28:15", "registrar": "1.2.2341", "referrer": "1.2.2341", "lifetime_referrer": "1.2.2341", "network_fee_percentage": 10000, "lifetime_referrer_fee_percentage": 0, "referrer_rewards_percentage": 0, "name": "prandnum-1", "owner": { "weight_threshold": 1, "account_auths": [], "key_auths": [[ "TEST6bYABXPd8XqFnLkoKnTcL8qHhiZGh3TQbZBy78NZDda5eR4GAs", 1 ] ], "address_auths": [] }, "active": { "weight_threshold": 1, "account_auths": [], "key_auths": [[ "TEST5dYgj8oYFrev9ZkE6N23wkjXowcrp4AdcSbDS6EVMGvNqXVX9R", 1 ] ], "address_auths": [] }, "options": { "memo_key": "TEST81DtFJVao3TjPHGPBPCthxUvHjXaEgACLVn48ZbFTcvefSFyG2", "voting_account": "1.2.5", "num_witness": 2, "num_committee": 2, "votes": [ "0:14", "1:26", "0:31", "1:38" ], "extensions": [] }, "statistics": "2.6.2341", "whitelisting_accounts": [], "blacklisting_accounts": [], "whitelisted_accounts": [], "blacklisted_accounts": [], "owner_special_authority": [ 0,{} ], "active_special_authority": [ 0,{} ], "top_n_control_flags": 0 } ], "cipher_keys": "ef8a5b14314c25b0d419bcd53d47a7dea1d48668d09bb215308d22bd1466183e9a61a444c0b29aad28ec0b5bd71b4e420217bd16e6603433109f2a26e109f9180777576547f13332fd9e214d769aaf0d9b976626216696fe330370d8bae90928bc58187db85e4db2e0900a8815f0cd75bf4095c84ccfe3759e0e39ac8280a39d93b03cc9b4e0286789fd672e4c119ee2123611559238355c1614f8426e85880f", "extra_keys": [[ "1.2.2341",[ "TEST6bYABXPd8XqFnLkoKnTcL8qHhiZGh3TQbZBy78NZDda5eR4GAs" ] ] ], "pending_account_registrations": [], "pending_witness_registrations": [], "labeled_keys": [], "blind_receipts": [], "committed_game_moves": [], "ws_server": "ws://localhost:8090", "ws_user": "", "ws_password": "" } 0 exception: unspecified tmp wallet file cannot be validated wallet.json.tmp {"fn":"wallet.json.tmp"} th_a wallet.cpp:1135 save_wallet_file unlocked >>> ``` ``` unlocked >>> import_key "prandnum-1" "5JN2f6MYJ7A9xfcYPMdDXcbRD6Yn2Uij3afDH8MoqFA34xkHsre" import_key "prandnum-1" "5JN2f6MYJ7A9xfcYPMdDXcbRD6Yn2Uij3afDH8MoqFA34xkHsre" 710427ms th_a wallet.cpp:633 copy_wallet_file ] backing up wallet wallet.json to after-import-key-1f6d7da0.wallet true unlocked >>> import_key prandnum-1 "5JN2f6MYJ7A9xfcYPMdDXcbRD6Yn2Uij3afDH8MoqFA34xkHsre" import_key prandnum-1 "5JN2f6MYJ7A9xfcYPMdDXcbRD6Yn2Uij3afDH8MoqFA34xkHsre" 747946ms th_a wallet.cpp:633 copy_wallet_file ] backing up wallet wallet.json to before-import-key-1f6d7da0.wallet 747950ms th_a wallet.cpp:633 copy_wallet_file ] backing up wallet wallet.json to after-import-key-1f6d7da0-1.wallet true unlocked >>> ```
prandnum commented 2021-03-17 19:20:59 +00:00 (Migrated from gitlab.com)

@bobinson @serkixenos @sierra19XX

CC: @colinijebor

@bobinson @serkixenos @sierra19XX CC: @colinijebor
yviter commented 2021-12-10 12:59:38 +00:00 (Migrated from gitlab.com)

assigned to @yviter

assigned to @yviter
yviter commented 2021-12-10 13:00:52 +00:00 (Migrated from gitlab.com)

assigned to @pavel.baykov

assigned to @pavel.baykov
pavel.baykov commented 2021-12-13 10:31:57 +00:00 (Migrated from gitlab.com)

root@76f043432cd2:~/peerplays-network# ./cli_wallet
Logging RPC to file: logs/rpc/rpc.log
1308679ms th_a main.cpp:197 main ] wdata.ws_user: wdata.ws_password:
locked >>> import_key "prandnum-1" 5JN2f6MYJ7A9xfcYPMdDXcbRD6Yn2Uij3afDH8MoqFA34xkHsre
import_key "prandnum-1" 5JN2f6MYJ7A9xfcYPMdDXcbRD6Yn2Uij3afDH8MoqFA34xkHsre
10 assert_exception: Assert Exception
!is_locked():
{}
th_a wallet.cpp:4690 import_key

root@76f043432cd2:~/peerplays-network# ./cli_wallet Logging RPC to file: logs/rpc/rpc.log 1308679ms th_a main.cpp:197 main ] wdata.ws_user: wdata.ws_password: locked >>> import_key "prandnum-1" 5JN2f6MYJ7A9xfcYPMdDXcbRD6Yn2Uij3afDH8MoqFA34xkHsre import_key "prandnum-1" 5JN2f6MYJ7A9xfcYPMdDXcbRD6Yn2Uij3afDH8MoqFA34xkHsre 10 assert_exception: Assert Exception !is_locked(): {} th_a wallet.cpp:4690 import_key
pavel.baykov commented 2021-12-13 10:34:01 +00:00 (Migrated from gitlab.com)

exception provides details, for instance when wallet is locked:
is_locked,
do we need handlers for exceptions which provides more details ?

exception provides details, for instance when wallet is locked: is_locked, do we need handlers for exceptions which provides more details ?
bobinson commented 2021-12-13 12:40:12 +00:00 (Migrated from gitlab.com)

@pavel.baykov - a little more detail is good. We can add handler which prints the "wallet is locked and please unlock to get all operations available" will be helpful.

@pavel.baykov - a little more detail is good. We can add handler which prints the "wallet is locked and please unlock to get all operations available" will be helpful.
serkixenos commented 2022-01-20 14:52:27 +00:00 (Migrated from gitlab.com)

unassigned @pavel.baykov

unassigned @pavel.baykov
serkixenos commented 2022-01-31 13:54:10 +00:00 (Migrated from gitlab.com)

unassigned @yviter

unassigned @yviter
hirunda commented 2022-02-10 20:32:48 +00:00 (Migrated from gitlab.com)

assigned to @hirunda

assigned to @hirunda
hirunda commented 2022-02-13 00:21:46 +00:00 (Migrated from gitlab.com)
created branch [`54-error-doesn-t-hep-in-identifying-the-issue-with-cli-wallet-command`](/PBSA/peerplays/-/compare/master...54-error-doesn-t-hep-in-identifying-the-issue-with-cli-wallet-command) to address this issue
hirunda commented 2022-02-13 00:30:30 +00:00 (Migrated from gitlab.com)
created branch [`54-error-doesn-t-hep-in-identifying-the-issue-with-cli-wallet-command-2`](/PBSA/peerplays/-/compare/master...54-error-doesn-t-hep-in-identifying-the-issue-with-cli-wallet-command-2) to address this issue
hirunda commented 2022-02-13 00:31:39 +00:00 (Migrated from gitlab.com)

mentioned in merge request !68

mentioned in merge request !68
hirunda commented 2022-02-14 14:13:05 +00:00 (Migrated from gitlab.com)

Related MR !69.

  1. Please apply the related MR on the software base.
  2. Build the software base with the following configuration: cmake -DCMAKE_BUILD_TYPE=Debug -DBUILD_PEERPLAYS_TESTNET=1
  3. Run the test network from peerplays-qa-environment project. (Please let me know if you need detailed steps for running peerplays-qa_environment)
  4. Start the cli_wallet application which is result from point 2)
  5. Try to import key for already registered account without unlocking the wallet.
    For example: import_key nathan 5KQwrPbwdL6PhXujxW37FSSQZ1JiwsST4cqQzDeyXtP79zkvFD3.
  6. You should get assert with the message: Wallet is locked, please unlock to get all operations available.
  7. Unlock the wallet
  8. Try to import_key for non existing account name or id
  9. You should get assert Account name or id doesn't exist
  10. Try positive tests to insert valid key for the existing account and unlocked wallet.
    The command should pass without any error.
Related MR !69. 1) Please apply the related MR on the software base. 2) Build the software base with the following configuration: cmake -DCMAKE_BUILD_TYPE=Debug -DBUILD_PEERPLAYS_TESTNET=1 3) Run the test network from peerplays-qa-environment project. (Please let me know if you need detailed steps for running peerplays-qa_environment) 4) Start the cli_wallet application which is result from point 2) 5) Try to import key for already registered account without unlocking the wallet. For example: import_key nathan 5KQwrPbwdL6PhXujxW37FSSQZ1JiwsST4cqQzDeyXtP79zkvFD3. 6) You should get assert with the message: Wallet is locked, please unlock to get all operations available. 7) Unlock the wallet 8) Try to import_key for non existing account name or id 9) You should get assert Account name or id doesn't exist 10) Try positive tests to insert valid key for the existing account and unlocked wallet. The command should pass without any error.
hirunda commented 2022-02-14 14:14:28 +00:00 (Migrated from gitlab.com)

assigned to @prandnum

assigned to @prandnum
prandnum commented 2022-02-20 06:16:28 +00:00 (Migrated from gitlab.com)

works fine for invalid users. the above-mentioned error was not reproduced.

unlocked >>> import_key "cliuser" 5KQwrPbwdL6PhXujxW37FSSQZ1JiwsST4cqQzDeyXtP79zkvFD3
import_key "cliuser" 5KQwrPbwdL6PhXujxW37FSSQZ1JiwsST4cqQzDeyXtP79zkvFD3
false
unlocked >>> import_key "cliuser" "5KQwrPbwdL6PhXujxW37FSSQZ1JiwsST4cqQzDeyXtP79zkvFD3"
import_key "cliuser" "5KQwrPbwdL6PhXujxW37FSSQZ1JiwsST4cqQzDeyXtP79zkvFD3"
false
unlocked >>> import_key cliuser "5KQwrPbwdL6PhXujxW37FSSQZ1JiwsST4cqQzDeyXtP79zkvFD3"
import_key cliuser "5KQwrPbwdL6PhXujxW37FSSQZ1JiwsST4cqQzDeyXtP79zkvFD3"
false
unlocked >>> import_key cliuser "5KQwrPbwdL6PhXujxW37FSSQZ1JiwsST4cqQzDeyXtP79zkvFD3
import_key cliuser "5KQwrPbwdL6PhXujxW37FSSQZ1JiwsST4cqQzDeyXtP79zkvFD3
10 assert_exception: Assert Exception
a0 != e: too few arguments passed to method
    {}
    th_a  api_connection.hpp:169 call_generic
unlocked >>> import_key cliuser 5KQwrPbwdL6PhXujxW37FSSQZ1JiwsST4cqQzDeyXtP79zkvFD3
import_key cliuser 5KQwrPbwdL6PhXujxW37FSSQZ1JiwsST4cqQzDeyXtP79zkvFD3
false
unlocked >>> import_key cliuser "5KQwrPbwdL6PhXujxW37FSSQZ1JiwsST4cqQzDeyXtP79zkvFD3"
import_key cliuser "5KQwrPbwdL6PhXujxW37FSSQZ1JiwsST4cqQzDeyXtP79zkvFD3"
false
unlocked >>> import_key "cliuser" "5KQwrPbwdL6PhXujxW37FSSQZ1JiwsST4cqQzDeyXtP79zkvFD3"
import_key "cliuser" "5KQwrPbwdL6PhXujxW37FSSQZ1JiwsST4cqQzDeyXtP79zkvFD3"
false
unlocked >>> import_key "cliuser" "5KeKd6zpDd9yCWY1re1wstDhXHbauuRCMfB6P9EnUwH32QQ6ji6"
import_key "cliuser" "5KeKd6zpDd9yCWY1re1wstDhXHbauuRCMfB6P9EnUwH32QQ6ji6"
3339060ms th_a       wallet.cpp:631                copy_wallet_file     ] backing up wallet wallet.json to after-import-key-ae4470c5.wallet
true
unlocked >>> import_key "cliuser" 5K3spZpYZAtFPb5RdGDmsVhkCfCVkqPM8UMvFmNysrpNw3ixjv2
import_key "cliuser" 5K3spZpYZAtFPb5RdGDmsVhkCfCVkqPM8UMvFmNysrpNw3ixjv2
3360613ms th_a       wallet.cpp:631                copy_wallet_file     ] backing up wallet wallet.json to before-import-key-5279af7a.wallet
3360616ms th_a       wallet.cpp:631                copy_wallet_file     ] backing up wallet wallet.json to after-import-key-5279af7a.wallet
true
unlocked >>> import_key "cliuser" 5KQwrPbwdL6PhXujxW37FSSQZ1JiwsST4cqQzDeyXtP79zkvFD3
import_key "cliuser" 5KQwrPbwdL6PhXujxW37FSSQZ1JiwsST4cqQzDeyXtP79zkvFD3
3384037ms th_a       wallet.cpp:631                copy_wallet_file     ] backing up wallet wallet.json to before-import-key-9407629b.wallet
false
unlocked >>> list_my_accounts
list_my_accounts
[{
    "id": "1.2.68",
    "membership_expiration_date": "1970-01-01T00:00:00",
    "registrar": "1.2.18",
    "referrer": "1.2.18",
    "lifetime_referrer": "1.2.18",
    "network_fee_percentage": 2000,
    "lifetime_referrer_fee_percentage": 3000,
    "referrer_rewards_percentage": 0,
    "name": "cliuser",
    "owner": {
      "weight_threshold": 1,
      "account_auths": [],
      "key_auths": [[
          "TEST6GVDqntfTBp5qcyoCz9qPi4grajtS461QinztEpwJATkBenkPy",
          1
        ]
      ],
      "address_auths": []
    },
    "active": {
      "weight_threshold": 1,
      "account_auths": [],
      "key_auths": [[
          "TEST8LnFJngA6oyJ9wgoVnPkqdgk48soeVbS6JfuJvS4kZczdoGZ3t",
          1
        ]
      ],
      "address_auths": []
    },
    "options": {
      "memo_key": "TEST7srjnwu4zwG2KpFhZ6knoASweKhdh4KAvHNohoWUHpbDDU3j4A",
      "voting_account": "1.2.5",
      "num_witness": 0,
      "num_committee": 0,
      "votes": [],
      "extensions": []
    },
    "statistics": "2.6.68",
    "whitelisting_accounts": [],
    "blacklisting_accounts": [],
    "whitelisted_accounts": [],
    "blacklisted_accounts": [],
    "owner_special_authority": [
      0,{}
    ],
    "active_special_authority": [
      0,{}
    ],
    "top_n_control_flags": 0
  }
]
unlocked >>> import_key "prandnum-1" "5KUK6yMf7Zwk2eMtQKn55f1zCTDHre7RZZykNegDgRXQ3K46nWh"
import_key "prandnum-1" "5KUK6yMf7Zwk2eMtQKn55f1zCTDHre7RZZykNegDgRXQ3K46nWh"
746912ms th_a       wallet.cpp:631                copy_wallet_file     ] backing up wallet wallet.json to before-import-key-c0293a26.wallet
10 assert_exception: Assert Exception
rec && rec->name == account_name_or_id: Account name or id: prandnum-1 doesn't exist
    {"account_name_or_id":"prandnum-1"}
    th_a  wallet.cpp:765 get_account
unlocked >>> import_key "cliuser" "5KUK6yMf7Zwk2eMtQKn55f1zCTDHre7RZZykNegDgRXQ3K46nWh"
import_key "cliuser" "5KUK6yMf7Zwk2eMtQKn55f1zCTDHre7RZZykNegDgRXQ3K46nWh"
766555ms th_a       wallet.cpp:631                copy_wallet_file     ] backing up wallet wallet.json to before-import-key-c0293a26-1.wallet
false
unlocked >>> import_key "cliuser2" "5KUK6yMf7Zwk2eMtQKn55f1zCTDHre7RZZykNegDgRXQ3K46nWh"
import_key "cliuser2" "5KUK6yMf7Zwk2eMtQKn55f1zCTDHre7RZZykNegDgRXQ3K46nWh"
774655ms th_a       wallet.cpp:631                copy_wallet_file     ] backing up wallet wallet.json to before-import-key-c0293a26-2.wallet
774658ms th_a       wallet.cpp:631                copy_wallet_file     ] backing up wallet wallet.json to after-import-key-c0293a26.wallet
true
unlocked >>> import_key "cliuser3" "5KUK6yMf7Zwk2eMtQKn55f1zCTDHre7RZZykNegDgRXQ3K46nWh"
import_key "cliuser3" "5KUK6yMf7Zwk2eMtQKn55f1zCTDHre7RZZykNegDgRXQ3K46nWh"
783655ms th_a       wallet.cpp:631                copy_wallet_file     ] backing up wallet wallet.json to before-import-key-c0293a26-3.wallet
10 assert_exception: Assert Exception
rec && rec->name == account_name_or_id: Account name or id: cliuser3 doesn't exist
    {"account_name_or_id":"cliuser3"}
    th_a  wallet.cpp:765 get_account
unlocked >>>
works fine for invalid users. the above-mentioned error was not reproduced. ``` unlocked >>> import_key "cliuser" 5KQwrPbwdL6PhXujxW37FSSQZ1JiwsST4cqQzDeyXtP79zkvFD3 import_key "cliuser" 5KQwrPbwdL6PhXujxW37FSSQZ1JiwsST4cqQzDeyXtP79zkvFD3 false unlocked >>> import_key "cliuser" "5KQwrPbwdL6PhXujxW37FSSQZ1JiwsST4cqQzDeyXtP79zkvFD3" import_key "cliuser" "5KQwrPbwdL6PhXujxW37FSSQZ1JiwsST4cqQzDeyXtP79zkvFD3" false unlocked >>> import_key cliuser "5KQwrPbwdL6PhXujxW37FSSQZ1JiwsST4cqQzDeyXtP79zkvFD3" import_key cliuser "5KQwrPbwdL6PhXujxW37FSSQZ1JiwsST4cqQzDeyXtP79zkvFD3" false unlocked >>> import_key cliuser "5KQwrPbwdL6PhXujxW37FSSQZ1JiwsST4cqQzDeyXtP79zkvFD3 import_key cliuser "5KQwrPbwdL6PhXujxW37FSSQZ1JiwsST4cqQzDeyXtP79zkvFD3 10 assert_exception: Assert Exception a0 != e: too few arguments passed to method {} th_a api_connection.hpp:169 call_generic unlocked >>> import_key cliuser 5KQwrPbwdL6PhXujxW37FSSQZ1JiwsST4cqQzDeyXtP79zkvFD3 import_key cliuser 5KQwrPbwdL6PhXujxW37FSSQZ1JiwsST4cqQzDeyXtP79zkvFD3 false unlocked >>> import_key cliuser "5KQwrPbwdL6PhXujxW37FSSQZ1JiwsST4cqQzDeyXtP79zkvFD3" import_key cliuser "5KQwrPbwdL6PhXujxW37FSSQZ1JiwsST4cqQzDeyXtP79zkvFD3" false unlocked >>> import_key "cliuser" "5KQwrPbwdL6PhXujxW37FSSQZ1JiwsST4cqQzDeyXtP79zkvFD3" import_key "cliuser" "5KQwrPbwdL6PhXujxW37FSSQZ1JiwsST4cqQzDeyXtP79zkvFD3" false unlocked >>> import_key "cliuser" "5KeKd6zpDd9yCWY1re1wstDhXHbauuRCMfB6P9EnUwH32QQ6ji6" import_key "cliuser" "5KeKd6zpDd9yCWY1re1wstDhXHbauuRCMfB6P9EnUwH32QQ6ji6" 3339060ms th_a wallet.cpp:631 copy_wallet_file ] backing up wallet wallet.json to after-import-key-ae4470c5.wallet true unlocked >>> import_key "cliuser" 5K3spZpYZAtFPb5RdGDmsVhkCfCVkqPM8UMvFmNysrpNw3ixjv2 import_key "cliuser" 5K3spZpYZAtFPb5RdGDmsVhkCfCVkqPM8UMvFmNysrpNw3ixjv2 3360613ms th_a wallet.cpp:631 copy_wallet_file ] backing up wallet wallet.json to before-import-key-5279af7a.wallet 3360616ms th_a wallet.cpp:631 copy_wallet_file ] backing up wallet wallet.json to after-import-key-5279af7a.wallet true unlocked >>> import_key "cliuser" 5KQwrPbwdL6PhXujxW37FSSQZ1JiwsST4cqQzDeyXtP79zkvFD3 import_key "cliuser" 5KQwrPbwdL6PhXujxW37FSSQZ1JiwsST4cqQzDeyXtP79zkvFD3 3384037ms th_a wallet.cpp:631 copy_wallet_file ] backing up wallet wallet.json to before-import-key-9407629b.wallet false unlocked >>> list_my_accounts list_my_accounts [{ "id": "1.2.68", "membership_expiration_date": "1970-01-01T00:00:00", "registrar": "1.2.18", "referrer": "1.2.18", "lifetime_referrer": "1.2.18", "network_fee_percentage": 2000, "lifetime_referrer_fee_percentage": 3000, "referrer_rewards_percentage": 0, "name": "cliuser", "owner": { "weight_threshold": 1, "account_auths": [], "key_auths": [[ "TEST6GVDqntfTBp5qcyoCz9qPi4grajtS461QinztEpwJATkBenkPy", 1 ] ], "address_auths": [] }, "active": { "weight_threshold": 1, "account_auths": [], "key_auths": [[ "TEST8LnFJngA6oyJ9wgoVnPkqdgk48soeVbS6JfuJvS4kZczdoGZ3t", 1 ] ], "address_auths": [] }, "options": { "memo_key": "TEST7srjnwu4zwG2KpFhZ6knoASweKhdh4KAvHNohoWUHpbDDU3j4A", "voting_account": "1.2.5", "num_witness": 0, "num_committee": 0, "votes": [], "extensions": [] }, "statistics": "2.6.68", "whitelisting_accounts": [], "blacklisting_accounts": [], "whitelisted_accounts": [], "blacklisted_accounts": [], "owner_special_authority": [ 0,{} ], "active_special_authority": [ 0,{} ], "top_n_control_flags": 0 } ] unlocked >>> import_key "prandnum-1" "5KUK6yMf7Zwk2eMtQKn55f1zCTDHre7RZZykNegDgRXQ3K46nWh" import_key "prandnum-1" "5KUK6yMf7Zwk2eMtQKn55f1zCTDHre7RZZykNegDgRXQ3K46nWh" 746912ms th_a wallet.cpp:631 copy_wallet_file ] backing up wallet wallet.json to before-import-key-c0293a26.wallet 10 assert_exception: Assert Exception rec && rec->name == account_name_or_id: Account name or id: prandnum-1 doesn't exist {"account_name_or_id":"prandnum-1"} th_a wallet.cpp:765 get_account unlocked >>> import_key "cliuser" "5KUK6yMf7Zwk2eMtQKn55f1zCTDHre7RZZykNegDgRXQ3K46nWh" import_key "cliuser" "5KUK6yMf7Zwk2eMtQKn55f1zCTDHre7RZZykNegDgRXQ3K46nWh" 766555ms th_a wallet.cpp:631 copy_wallet_file ] backing up wallet wallet.json to before-import-key-c0293a26-1.wallet false unlocked >>> import_key "cliuser2" "5KUK6yMf7Zwk2eMtQKn55f1zCTDHre7RZZykNegDgRXQ3K46nWh" import_key "cliuser2" "5KUK6yMf7Zwk2eMtQKn55f1zCTDHre7RZZykNegDgRXQ3K46nWh" 774655ms th_a wallet.cpp:631 copy_wallet_file ] backing up wallet wallet.json to before-import-key-c0293a26-2.wallet 774658ms th_a wallet.cpp:631 copy_wallet_file ] backing up wallet wallet.json to after-import-key-c0293a26.wallet true unlocked >>> import_key "cliuser3" "5KUK6yMf7Zwk2eMtQKn55f1zCTDHre7RZZykNegDgRXQ3K46nWh" import_key "cliuser3" "5KUK6yMf7Zwk2eMtQKn55f1zCTDHre7RZZykNegDgRXQ3K46nWh" 783655ms th_a wallet.cpp:631 copy_wallet_file ] backing up wallet wallet.json to before-import-key-c0293a26-3.wallet 10 assert_exception: Assert Exception rec && rec->name == account_name_or_id: Account name or id: cliuser3 doesn't exist {"account_name_or_id":"cliuser3"} th_a wallet.cpp:765 get_account unlocked >>> ```
prandnum (Migrated from gitlab.com) closed this issue 2022-02-20 06:16:29 +00:00
Sign in to join this conversation.
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference: Peerplays_Blockchain/peerplays_migrated#54
No description provided.