casper-network / casper-network/casper-nctl

[nctl command errors]

Open
#25 0 comments 0 reactions 2 assignees Claimed by @zajko View on GitHub
bug
Dominant language
Shell
Stars
4
Forks
7
PR merge metrics
No merged PRs in 30d

Description

**Describe the bug**
Multiple nctl commands, which are given in usage examples, give errors. Some of them actually works for now but gives jq parse errors due to deprecated calls (e.g put-deploy) results. Some of them does not work at all. Commands and their outputs or logs added below.

**To Reproduce**
Steps to reproduce:
1. Run `nctl-auction-bid`
2. See error

3. Run `nctl-auction-activate`
4. See error

5. Run `nctl-auction-withdraw`
6. See error

7. Run `nctl-auction-undelegate`
8. See error

9. Run `nctl-erc20-approve`
10. See error

11. Run `nctl-erc20-fund-users`
12. See error

13. Run `nctl-erc20-install`
14. See error

15. Run `nctl-erc20-transfer-from`
16. See error

17. Run `nctl-erc20-view-balances`
18. See error

19. Run `nctl-transfer-native-batch-dispatch`
20. See error

21. Run `nctl-transfer-native-batch-prepare`
22. See error

23. Run `nctl-transfer-wasm`
24. See error

25. Run `nctl-transfer-wasm-batch-dispatch`
26. See error

27. Run `nctl-view-chain-deploy`
28. See error

29. Run `nctl-view-node-metric-finalisation-time`
30. See error

31. Run `nctl-view-node-metric-finalised-block-count`
32. See error

33. Run `nctl-view-node-metric-pending-deploy`
34. See error

35. Run `nctl-view-node-storage-consensus`
36. See error

**Expected behavior**
All of the commands above expected to run successfully after following the setup and usage instructions given in repo.

**Environment:**
- OS: Ubuntu 24.04
- Python version: 3.12.3
- casper-nctl commit: [ec9f9e7]
- casper-node version: 2.0.0

**Error output**

1. `nctl-auction-bid`
```
[Paste error messages or logs here
](jq: parse error: Invalid numeric literal at line 2, column 37 thread 'main' panicked at library/std/src/io/stdio.rs:1123:9: failed printing to stdout: Broken pipe (os error 32) note: run with `RUST_BACKTRACE=1` environment variable to display a backtrace)
```

2. `nctl-auction-activate`
```
jq: parse error: Invalid numeric literal at line 2, column 37 thread 'main' panicked at library/std/src/io/stdio.rs:1123:9: failed printing to stdout: Broken pipe (os error 32) note: run with `RUST_BACKTRACE=1` environment variable to display a backtrace
```

3. `nctl-auction-withdraw`
```
put-deploy subcommand is deprecated in favor of put-transaction # # and will be removed in a future release
```

```
jq: parse error: Invalid numeric literal at line 2, column 37)
```

4. `nctl-erc20-approve`
```
jq: parse error: Invalid numeric literal at line 2, column 37
```

5. `nctl-erc20-fund-users`
```
[Paste error messages or logs here
](jq: parse error: Invalid numeric literal at line 2, column 37 2025-09-19T19:54:46.524344 [INFO] [94506] NCTL :: funding user 1 deploy hash = jq: parse error: Invalid numeric literal at line 2, column 37 2025-09-19T19:54:46.548001 [INFO] [94506] NCTL :: funding user 2 deploy hash = jq: parse error: Invalid numeric literal at line 2, column 37 2025-09-19T19:54:46.573138 [INFO] [94506] NCTL :: funding user 3 deploy hash = jq: parse error: Invalid numeric literal at line 2, column 37 2025-09-19T19:54:46.596221 [INFO] [94506] NCTL :: funding user 4 deploy hash = jq: parse error: Invalid numeric literal at line 2, column 37 2025-09-19T19:54:46.622049 [INFO] [94506] NCTL :: funding user 5 deploy hash = jq: parse error: Invalid numeric literal at line 2, column 37 2025-09-19T19:54:46.645459 [INFO] [94506] NCTL :: funding user 6 deploy hash = jq: parse error: Invalid numeric literal at line 2, column 37 2025-09-19T19:54:46.669285 [INFO] [94506] NCTL :: funding user 7 deploy hash = jq: parse error: Invalid numeric literal at line 2, column 37 2025-09-19T19:54:46.694408 [INFO] [94506] NCTL :: funding user 8 deploy hash = jq: parse error: Invalid numeric literal at line 2, column 37 2025-09-19T19:54:46.720950 [INFO] [94506] NCTL :: funding user 9 deploy hash = jq: parse error: Invalid numeric literal at line 2, column 37 2025-09-19T19:54:46.745304 [INFO] [94506] NCTL :: funding user 10 deploy hash =)
```

6. `nctl-erc20-install`
```
The erc20.wasm binary file cannot be found. Please compile it and move it to the following directory: ~/casper-nctl/assets/net-1
```

7. `nctl-erc20-transfer-from`
```
nctl-erc20-transfer-from: command not found
```

8. `nctl-erc20-view-balances`
```
2025-09-19T20:00:40.032602 [INFO] [94506] NCTL :: ERC-20 contract: 2025-09-19T20:00:40.035977 [INFO] [94506] NCTL :: ... contract hash = jq: parse error: Invalid literal at line 1, column 7 jq: parse error: Invalid literal at line 1, column 7 2025-09-19T20:00:40.604172 [INFO] [94506] NCTL :: ... account balances: 2025-09-19T20:00:40.606010 [INFO] [94506] NCTL :: ... ... contract owner = jq: parse error: Invalid literal at line 1, column 7 2025-09-19T20:00:40.872651 [INFO] [94506] NCTL :: ... ... user 1 = jq: parse error: Invalid literal at line 1, column 7 2025-09-19T20:00:41.387060 [INFO] [94506] NCTL :: ... ... user 2 = jq: parse error: Invalid literal at line 1, column 7 2025-09-19T20:00:41.710340 [INFO] [94506] NCTL :: ... ... user 3 = jq: parse error: Invalid literal at line 1, column 7 2025-09-19T20:00:42.130571 [INFO] [94506] NCTL :: ... ... user 4 = jq: parse error: Invalid literal at line 1, column 7 2025-09-19T20:00:42.557835 [INFO] [94506] NCTL :: ... ... user 5 = jq: parse error: Invalid literal at line 1, column 7 2025-09-19T20:00:42.895391 [INFO] [94506] NCTL :: ... ... user 6 = jq: parse error: Invalid literal at line 1, column 7 2025-09-19T20:00:43.309619 [INFO] [94506] NCTL :: ... ... user 7 = jq: parse error: Invalid literal at line 1, column 7 2025-09-19T20:00:43.886010 [INFO] [94506] NCTL :: ... ... user 8 = jq: parse error: Invalid literal at line 1, column 7 2025-09-19T20:00:44.384705 [INFO] [94506] NCTL :: ... ... user 9 = jq: parse error: Invalid literal at line 1, column 7 2025-09-19T20:00:44.878497 [INFO] [94506] NCTL :: ... ... user 10 =
```

9. `nctl-erc20-view-details`
```
[Paste error messages or logs here
](jq: parse error: Invalid literal at line 1, column 7 jq: parse error: Invalid literal at line 1, column 7 jq: parse error: Invalid literal at line 1, column 7 jq: parse error: Invalid literal at line 1, column 7 2025-09-19T20:02:42.911012 [INFO] [94506] NCTL :: Contract Details -> ERC-20 2025-09-19T20:02:42.912470 [INFO] [94506] NCTL :: ... on-chain name = ERC20 2025-09-19T20:02:42.914493 [INFO] [94506] NCTL :: ... on-chain hash = 2025-09-19T20:02:42.916282 [INFO] [94506] NCTL :: ... owner account = 0176485ad4b82d40a14a919d001e59c8e7d20ea31f9b56588722071ce477c23b8f 2025-09-19T20:02:42.918218 [INFO] [94506] NCTL :: ... token name = 2025-09-19T20:02:42.919906 [INFO] [94506] NCTL :: ... token symbol = 2025-09-19T20:02:42.921674 [INFO] [94506] NCTL :: ... token supply = 2025-09-19T20:02:42.923161 [INFO] [94506] NCTL :: ... token decimals =)
```

10. `nctl-transfer-native-batch-dispatch`
```
2025-09-19T20:05:49.370358 [INFO] [94506] NCTL :: ERROR: no batch exists on file system - have you prepared it ?
```

11. `nctl-transfer-native-batch-prepare`
```
prepare native not implemented - awaiting core dev feedback
```

12. `nctl-transfer-wasm`
```
2025-10-10T23:15:53.379218 [INFO] [5251] NCTL :: ... dispatched deploys:
jq: parse error: Invalid numeric literal at line 1, column 37
2025-10-10T23:15:53.588404 [INFO] [5251] NCTL :: ... #1 :: http://localhost:11103 ::
```

13. `nctl-transfer-wasm-batch-dispatch`
```
thread 'main' panicked at library/std/src/io/stdio.rs:1123:9:
failed printing to stdout: Broken pipe (os error 32)
note: run with `RUST_BACKTRACE=1` environment variable to display a backtrace
2025-10-10T23:16:59.099002 [INFO] [5251] NCTL :: deploy #6 :: batch #1 :: user #1 :: :: http://localhost:11104
jq: parse error: Invalid numeric literal at line 2, column 37
```

14. `nctl-view-chain-deploy`
```
jq: parse error: Invalid literal at line 1, column 7
```

15. `nctl-view-node-metric-finalisation-time`
```
nctl-view-node-metric-finalisation-time: command not found
```

16. `nctl-view-node-metric-finalised-block-count`
```
nctl-view-node-metric-finalised-block-count: command not found
```

17. `nctl-view-node-metric-pending-deploy`
```
nctl-view-node-metric-pending-deploy: command not found
```

18. `nctl-view-node-storage-consensus`
```
nctl-view-node-storage-consensus: command not found
```

**Additional context**
Most of the errors are jq parse errors, they can be handled properly and instead of parse error better error message or output itself can be shown if expected output does not turn back.

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.