Describe the bug
A clear and concise description of what the bug is.
Mandatory Information
jcli --0.6.1 stderr;jormungandr --0.6.1 stderr;Hey guys. Successfully received funds from the faucet but cant get the ballance. Below command returns Error on Unix box. Any ideas? Anybody got a working command to check the ballance of an account? Thanks. Carl
1) Created new account
2) Successfully put money into account with a Faucet request
3) Went to confirm my new balance with the below command which fails
./jcli rest v0 account get ca1s4cx0uqvl96rnst5u9cw7yzj62vzf9ulj09pwxmqpg9dvvt7kmnw6k55qy9 --host "http://127.0.0.1:3101/api"
Returns below error
failed to make a REST request
|-> node rejected request because of invalid parameters
|-> http://127.0.0.1:3101/api/v0/account/7067f00cf97439c174e170ef1052d29824979f93ca171b600a0ad6317eb6e6ed: Client Error: 404 Not Found
ps. Lots of people on the telenet stake pool best practice work group have the same problem
Hi @carlwhiston . There is a more appropriate place to receive help for such questions - https://iohk.zendesk.com/hc/en-us/categories/360002383814-Shelley-Networked-Testnet
There are also tutorials about how to start the node and how to check that the node is synced before trying other operations. In your case either the node was not working, or it was not synced. And if both previous conditions are met, then you might hit https://github.com/input-output-hk/jormungandr/issues/966
You can make a Bash file in windows to run in git bash with this code.
#!/bin/sh
CLI="./jcli"
COLORS=1
ADDRTYPE="--testing"
ACCOUNT_ADDR="$1"
REST_PORT="$2"
REST_URL="http://127.0.0.1:${REST_PORT}/api"
$CLI rest v0 account get ${ACCOUNT_ADDR} -h ${REST_URL}
exit 0
Just use your address and port as arguments. no instruction manual though 💯
@smurf123444 please keep it civil, no point insulting anyone. I'm not a fan of negative emojis either, but you can just ignore them.
I'm also having difficulty with this, using the script mentioned above and entering the command manually. I used this process to create my address(https://iohk.zendesk.com/hc/en-us/articles/360036923453), and the shelly testnet faucet had no issue sending the ada.
jormungandr 0.7.0-rc3 (HEAD-466c0fb, release, linux [x86_64]) - [rustc 1.38.0 (625451e37 2019-09-23)]
failed to make a REST request
|-> node rejected request because of invalid parameters
|-> http://ip-address:3101/api/v0/account/1838407cfbce0eead918418c12f243ec5565e49b35f88b38c509b34784ef83f5: Client Error: 404 Not Found
I'm quite sure that this is not a bug. We have exactly this scenario in automatic tests (jormungandr-integration-tests::jcli::transaction::e2e::test_account_is_created_if_transaction_out_is_account) and it's working reliably.
@carlwhiston Was the transaction that was supposed to create an account included in the block? When it's only pending and not in the block yet, the account isn't considered existing by the node. The script probably executed in milliseconds and didn't give the node time to build a fresh block.
@smurf123444 @Linicks The script only creates a random number, it has no meaning unless it's used in a transaction accepted by node. It's like writing down an address of a home, that may or may not be built in the future. Sure, everybody will tell you that the address has valid format, but nobody has ever heard about a house standing there, you have to build it first.
Please let me know if the issue really exists, if no, I want to close it.
HI. You can close now as node may not of brental in sync. After the
snapshot I won't need a faucet so that's fine to close this now. Thanks.
Carl
On Wed, 13 Nov 2019 14:40 CodeSandwich, notifications@github.com wrote:
I'm quite sure that this is not a bug. We have exactly this scenario in
automatic tests (
jormungandr-integration-tests::jcli::transaction::e2e::test_account_is_created_if_transaction_out_is_account)
and it's working reliably.@carlwhiston https://github.com/carlwhiston Was the transaction that
was supposed to create an account included in the block? When it's only
pending and not in the block yet, the account isn't considered existing by
the node. The script probably executed in milliseconds and didn't give the
node time to build a fresh block.@smurf123444 https://github.com/smurf123444 @Linicks
https://github.com/Linicks The script only creates a random number, it
has no meaning unless it's used in a transaction accepted by node. It's
like writing down an address of a home, that may or may not be built in the
future. Sure, everybody will tell you that the address has valid format,
but nobody has ever heard about a house standing there, you have to build
it first.Please let me know if the issue really exists, if no, I want to close it.
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
https://github.com/input-output-hk/jormungandr/issues/974?email_source=notifications&email_token=ANIUZK3L2UILGZCDQTSPYTTQTQGWVA5CNFSM4JBWKL2KYY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOED6LLAQ#issuecomment-553432450,
or unsubscribe
https://github.com/notifications/unsubscribe-auth/ANIUZK6FJEH35GDNTIINPLLQTQGWVANCNFSM4JBWKL2A
.
I believe it is fixed as well. Thanks!
Most helpful comment
You can make a Bash file in windows to run in git bash with this code.
#!/bin/shCLI="./jcli"COLORS=1ADDRTYPE="--testing"ACCOUNT_ADDR="$1"REST_PORT="$2"REST_URL="http://127.0.0.1:${REST_PORT}/api"$CLI rest v0 account get ${ACCOUNT_ADDR} -h ${REST_URL}exit 0Just use your address and port as arguments. no instruction manual though 💯