Problem running safe_network examples

I’ve a pretty recent pull of safe_network repo (from a day or so ago) but am repeatedly getting an error sending to the wallet (see below).

I’m deleting ~/.local/share/safe prior to starting each test from the top.

Here’s the error from the network console when I try to get from the faucet in another console:

received request! method: Get, url: "/96e9dc943b6ab5edace7ce113a67525b1632db803b73e0d427cc0d1b9908cb46d75895246946df7d631c3c33c8ecb2d6", headers: [Header { field: HeaderField("accept"), value: "*/*" }, Header { field: HeaderField("host"), value: "127.0.0.1:8000" }]
Loading faucet...
Loading faucet wallet... "/home/dkfj/.local/share/safe/test_faucet"
Loading genesis...
Sending 1288490188.500000000 from genesis to faucet wallet..
Failed to claim genesis: Transfer Error Failed to send tokens due to The transfer was not successfully registered in the network: CouldNotSendMoney("Network Error GetRecord Query Error NotEnoughCopies { record_key: 153cdd(28542e01c860f392444a2e424fa829cb5b83959cd1c4a0bd0f0b7d5f92123c94), expected: 3, got: 1 }.").
Trying to claiming genesis... attempt 1
Loading faucet...
Loading faucet wallet... "/home/dfhk/.local/share/safe/test_faucet"
Loading genesis...
Sending 1288490188.500000000 from genesis to faucet wallet..
3 Likes

Where does this error occur? While you’re using the node manager to start a local network?

2 Likes

Can you check if any faucet or safenode process is left running? I hit the problem earlier today, and it seemed like safenode-manager kill doesn’t terminate the processes under certain circumstances. I wasn’t able to recreate the exact scenario, but I used killall faucet safenode instead of safenode-manager kill to get it working.

6 Likes

I haven’t seen that. Let me know if you figure out how to reproduce it.

Thanks @Roland, I have a working faucet…

EDIT: and a buggy, incomplete register_history example: :partying_face:

Syncing with SAFE in 2s...
synced!
====================
Values (root Nodes):
"[alice]: this is alice 3"
"[bob]: this is bob 3"
====================
Node(Err(FromUtf8Error { bytes: [78, 173, 217, 152, 30, 60], error: Utf8Error { valid_up_to: 1, error_len: Some(1) } })..) Entry("[alice]: this is alice 3")
Node(Err(FromUtf8Error { bytes: [240, 81, 18, 188, 206, 180], error: Utf8Error { valid_up_to: 0, error_len: Some(1) } })..) Entry("[bob]: this is bob 3")
====================
4 Likes