Failed to make a REST request to my testnet node

Hi, I followed the how to on github to set up the testnet: https://github.com/input-output-hk/shelley-testnet/wiki/How-to-setup-a-Jormungandr-Networking--node-(--v0.5.0)

I think my node is connected to the blockchain. Next I created an address successfully and requested some ADA to my newly created account.
At the moment I stuck at “Checking the address balance”:

./jcli rest v0 account get 12345tg8hurk8e5uxngsdu932n6u7eh5qrwu4h6hf0j48afvpztnydfyqjltsn -h  http://127.0.0.1:3101/api
failed to make a REST request
  |-> node rejected request because of invalid parameters
  |-> http://127.0.0.1:3101/api/v0/account/1683df83b1f34e1a68837858aa7ae7b37a006ee56faba5f2a9fa96044b991a92: Client Error: 404 Not Found

Output of the node:
Oct 03 15:31:54.495 WARN Error occurred during request handling: Account does not exist, scope: global

Whats wrong? I’ve created the account address why the node isn`t aware of it?

Faucet having some hiccups lately. Your address is empty, so the node doesn’t know it

1 Like

i have experienced the same issue as mentioned in the following thread, i believe it could be related to bugs when processing the config file or perhaps something else, I’ll be waiting for v5.5 to retest

mod - please move this thread to developer / testnets category

1 Like

This is my address ca1s5tg8hurk8e5uxngsdu932n6u7eh5qrwu4h6hf0j48afvpztnydfyqjltsn I changed it for some reason. Have you checked my address with an explorer?

not sure there is a external blockchain explorer for the testnet, i suspect if the rest api can’t find it then it doesn’t exist

maybe it is related to the faucet and 0 credits, perhaps psychomb can send you a few testnet ADA to your testnet address to confirm, if it works then maybe he can send me some as well :wink:

1 Like

I use linux mint 18.2 as well. I think I’ve got the same issue.

I use an other distrib and I got the problem as well.
I think it’s more related with the faucet imo. The faucet does not send any tokens. And for an address to be known by a node or the entire network, it need to be in at least one transaction, from what I understand.

1 Like

Haha. Send ada pls. I get the same output:

./jcli rest v0 account get ca1s44h5hytev8d9wty220ckglvj7ewm3yetyug8a29pu2lj5dff28sy2yf8yj -h http://127.0.0.1:3101/api

output:

---
counter: 0
delegation:
  pools: []
value: 40000000000

I think the api is fine!

Try to simply restart your node after making the request to the faucet. The node will download the blockchain again. Now it has the account information with the new balance.

Now my account looks like:

counter: 0
delegation:
pools:
value: 20000000000

I am using 5.5 on windows 10 and following the tutorial. The send-money.sh script gives the node rejected error as well.

$ bash send-money.sh ca1sk3aj54u0jh926adru453u0c0sln46pq06qdtsd4cf0e0fhzppxawdwhqx6 1000 3101 ed25519e_sk1uzqstfj530py0hwzwdry2jqrutnaeandabunchmoregobbldeegoop
================Send Money=================
DESTINATION_ADDRESS: ca1sk3aj54u0jh926adru453u0c0sln46pq06qdtsd4cf0e0fhzppxawdwhqx6
DESTINATION_AMOUNT: 1000
REST_PORT: 3101
SOURCE_SK: ed25519e_sk1uzqstfj530py0hwzwdry2jqrutnaeandabunchmoregobbldeegoop
BLOCK0_HASH: adbdd5ede31637f6c9bad5c271eec0bc3d0cb9efb86a5b913bb55cba549d0770
FEE_CONSTANT: 1000
FEE_COEFFICIENT: 50
==================================================
## Sending 1000 to ca1sk3aj54u0jh926adru453u0c0sln46pq06qdtsd4cf0e0fhzppxawdwhqx6
discrimination: testing
account: ed25519_pk150v490ru4e2khtgl9dy0r7ru8uawsgr7sr2urdwzt7t6dcsgfhtsav65rh
failed to make a REST request
  |-> node rejected request because of invalid parameters
  |-> http://127.0.0.1:3101/api/v0/account/0f20b670776afabe28c7b457ea959f4341cd1462841644286d0bb14270a695bb: Client Error: 404 Not Found
 ##1. Create the offline transaction file
 ##2. Add input details
 ##3. Add output details
 ##4. Finalize the transactions
 ##5. Create the witness
error: Invalid value for '--account-spending-counter <account-spending-counter>': cannot parse integer from empty string

two items of note: the line below appears to be truncated
account: ed25519_pk150v490ru4e2khtgl9dy0r7ru8uawsgr7sr2urdwzt7t6dcsgfhtsav65rh

and the line below contains an account that appears to have come out of nowhere.

http://127.0.0.1:3101/api/v0/account/0f20b670776afabe28c7b457ea959f4341cd1462841644286d0bb14270a695bb: Client Error: 404 Not Found

What do you mean by counter is still at 0?
Counter is at 0 like in the how to. Could you explain what the counter is used for please?

I’m stucking at 8: “waiting for new block to be created”.

After 5 minutes I got the output:
Output : ##ERROR: Waited 2s secs (1*2) and no new block created

./send-money.sh ca1sk2vwe0nxx5uqjful8hefz56pt290vl3k2wyvy8gm433atzxw9f6c7h5ggw 2000 3101 ed25519e_sk17qwmgx7750wefu3deevfrjpe8hepvussh3my75g6zd8cgytjk4z745gtffxxn8g94e3hgxkj2d845d9akkt246gnjxg6m45qgk57k9qvfuz82
================Send Money=================
DESTINATION_ADDRESS: ca1sk2vwe0nxx5uqjful8hefz56pt290vl3k2wyvy8gm433atzxw9f6c7h5ggw
DESTINATION_AMOUNT: 2000
REST_PORT: 3101
SOURCE_SK: ed25519e_sk17qwmgx7750wefu3deevfrjpe8hepvussh3my75g6zd8cgytjk4z745gtffxxn8g94e3hgxkj2d845d9akkt246gnjxg6m45qgk57k9qvfuz82
BLOCK0_HASH: adbdd5ede31637f6c9bad5c271eec0bc3d0cb9efb86a5b913bb55cba549d0770
FEE_CONSTANT: 1000
FEE_COEFFICIENT: 50
==================================================
## Sending 2000 to ca1sk2vwe0nxx5uqjful8hefz56pt290vl3k2wyvy8gm433atzxw9f6c7h5ggw
discrimination: testing
account: ed25519_pk1jnrktue348qyj08ea72g4xs263tm8udjn3rpp6xavv02c3n32wkqf27ql0
##1. Create the offline transaction file
##2. Add input details
##3. Add output details
##4. Finalize the transactions
##5. Create the witness
##6. Add the witness to the transaction
##7. Show the transaction info
Transaction `adcbb8e1fc6284e0f710a5b9f8adf8cb46c0abd80de3f7f73c0bec936811e42e’ (finalizing)
Input: 3100
Output: 2000
Fees: 1100
Balance: 0
- 1683df83b1f34e1a68837858aa7ae7b37a006ee56faba5f2a9fa96044b991a92 3100
+ ca1sk2vwe0nxx5uqjful8hefz56pt290vl3k2wyvy8gm433atzxw9f6c7h5ggw 2000
##7. Finalize the transaction and send it
80d68e217a7eb669103d11368479359c298f7c3cb5a01ccb3b937d6da1b4f528
##8. Remove the temporary files
##Waiting for new block to be created (timeout = 200 blocks = 400s)

having the same issue
linux on AWS ubuntu

Blockquote
./jormungandr --config ./node-config.yaml --genesis-block-hash adbdd5ede31637f6c9bad5c271eec0bc3d0cb9efb86a5b913bb55cba549d0770

Oct 06 14:07:02.976 INFO Starting jormungandr 0.5.5 (HEAD-aec29a1, release, linux [x86_64]) - [rustc 1.38.0 (625451e37 2019-09-23)] , task : init

Oct 06 14:07:02.980 WARN Node started without path to the stored secret keys (not a stake pool or a BFT leader) , task : init

Oct 06 14:07:02.980 INFO storing blockchain in ‘"/tmp/jormungandr/blocks.sqlite"’ , task : init

Oct 06 14:07:43.528 INFO connecting to bootstrap peer 18.139.40.4:3000 , peer_addr : 18.139.40.4:3000, task : bootstrap

Oct 06 14:07:43.760 WARN Unable to reach peer for initial bootstrap , reason : HTTP/2.0 connection error, peer_addr : 18.139.40.4:3000, task : bootstrap

Oct 06 14:07:43.760 INFO connecting to bootstrap peer 18.140.134.230:3000 , peer_addr : 18.140.134.230:3000, task : bootstrap

Oct 06 14:07:43.987 WARN Unable to reach peer for initial bootstrap , reason : HTTP/2.0 connection error, peer_addr : 18.140.134.230:3000, task : bootstrap

Oct 06 14:07:43.987 INFO connecting to bootstrap peer 3.123.177.192:3000 , peer_addr : 3.123.177.192:3000, task : bootstrap

Oct 06 14:07:44.980 INFO initial bootstrap completed , peer_addr : 3.123.177.192:3000, task : bootstrap

Oct 06 14:07:44.981 INFO Starting 1 workers , scope : global

Oct 06 14:07:44.981 INFO starting task , task : network

Oct 06 14:07:44.982 INFO adding P2P Topology module: trusted-peers , task : network

Oct 06 14:07:44.982 INFO start listening and accepting gRPC connections on 0.0.0.0:3100 , task : network

Oct 06 14:07:44.982 INFO starting task , task : client-query

Oct 06 14:07:44.983 INFO Starting server on 127.0.0.1:3101 , scope : global

Oct 06 14:07:44.983 INFO connecting to initial gossip peer , peer_addr : 3.112.185.217:3000, task : network

Oct 06 14:07:44.984 INFO connecting to initial gossip peer , peer_addr : 3.115.57.216:3000, task : network

Oct 06 14:07:44.984 INFO connecting to initial gossip peer , peer_addr : 52.57.157.167:3000, task : network

Oct 06 14:07:44.985 INFO connecting to initial gossip peer , peer_addr : 18.139.40.4:3000, task : network

Oct 06 14:07:44.985 INFO connecting to initial gossip peer , peer_addr : 3.123.177.192:3000, task : network

Oct 06 14:07:44.985 INFO connecting to initial gossip peer , peer_addr : 3.123.155.47:3000, task : network

Oct 06 14:07:44.986 INFO connecting to initial gossip peer , peer_addr : 18.140.134.230:3000, task : network

Oct 06 14:08:31.964 WARN Error occurred during request handling: Account does not exist , scope : global

Blockquote

./jcli rest v0 message logs --host “http://127.0.0.1:3101/api


I have waited over an hour after requesting from faucet.

any thoughts?