darkrenaissance/darkfi

Failed to get airdrop: `Timeout not expired, try again later`

marek22k opened this issue · 1 comments

Steps: Running the first two commands from https://darkrenaissance.github.io/darkfi/testnet/airdrop.html

Actual behavior:

$./drk airdrop 42.69 DARKfZX1utGbz8ZpnvtCH6i46nSDZEEGa5fMnhoubWPq
Transaction ID: 8ac0f233e0afaca27ebf32295a33617dd7093b327bad2dba7c26cc2c5b66504b
$./drk airdrop 13.37 BobvfQrDaf32VNhVtX6Adyi3WGfPpPYZPJBn6rnrxHKm
Error: Failed to request airdrop

Caused by:
    JSON-RPC error: "Timeout not expired, try again later"

Expected behavior: Get another Transaction ID.

Maybe related to:

$./drk subscribe
Subscribing to receive notifications of incoming blocks
Detached subscription to background
Got Block notification from darkfid subscription
=======================================
Block header:
Header {
    version: 1,
    previous: Hash(
        "b77238fa1167c06587891eac3990cb0469cfdd52f2ecec84d952266ee3fa1d7c",
    ),
    epoch: 588,
    slot: 5888,
    timestamp: Timestamp(
        1676844724,
    ),
    root: MerkleNode(
        0x2fd8e51a03d9bbe2dd809831b1497aeb68a6e37ddf707ced4aa2d8dff13529ae,
    ),
}
=======================================
Deserialized successfully. Scanning block...
[Money] Iterating over 0 transactions
[DAO] Iterating over 0 transactions
Got Block notification from darkfid subscription
=======================================
Block header:
Header {
    version: 1,
    previous: Hash(
        "a3bc57ce8d53bbf6107037a81e1212fccaecb5eee58c06bd8f0548c020aa3eb7",
    ),
    epoch: 588,
    slot: 5889,
    timestamp: Timestamp(
        1676844814,
    ),
    root: MerkleNode(
        0x0d8fb1b081d250414c008568e4acc9989f0ff129e3fd0602e64e8685d87e7587,
    ),
}
=======================================
Deserialized successfully. Scanning block...
[Money] Iterating over 1 transactions
Found Money::Transfer in call 0
Successfully decrypted a Money Note
Witnessing coin in Merkle tree
Found 1 OwnCoin(s) in transaction
OwnCoin: Coin(0x36b060c0e09b7b4621bfdf860944386660d2e12f6ee87a250fd58ba5eb19441b)
[src/libout123/module.c:185] error: Failure getting module directory! (Perhaps set MPG123_MODDIR?)
[src/libout123/module.c:185] error: Failure getting module directory! (Perhaps set MPG123_MODDIR?)
[src/libout123/module.c:185] error: Failure getting module directory! (Perhaps set MPG123_MODDIR?)
[src/libout123/module.c:185] error: Failure getting module directory! (Perhaps set MPG123_MODDIR?)
[src/libout123/module.c:185] error: Failure getting module directory! (Perhaps set MPG123_MODDIR?)
[src/libout123/module.c:185] error: Failure getting module directory! (Perhaps set MPG123_MODDIR?)
[src/libout123/module.c:185] error: Failure getting module directory! (Perhaps set MPG123_MODDIR?)
[src/libout123/libout123.c:468] error: Found no driver out of [alsa,oss,jack,portaudio,pulse,nas,openal] working with device <default>.
[DAO] Iterating over 1 transactions
Got Block notification from darkfid subscription
=======================================
Block header:
Header {
    version: 1,
    previous: Hash(
        "c6183b4e55aa682763c5513dd7ac43ea697e3a7d583163778e6f5c5f1a611443",
    ),
    epoch: 589,
    slot: 5890,
    timestamp: Timestamp(
        1676844906,
    ),
    root: MerkleNode(
        0x2fd8e51a03d9bbe2dd809831b1497aeb68a6e37ddf707ced4aa2d8dff13529ae,
    ),
}
=======================================
Deserialized successfully. Scanning block...
[Money] Iterating over 0 transactions
[DAO] Iterating over 0 transactions
Got Block notification from darkfid subscription
=======================================
Block header:
Header {
    version: 1,
    previous: Hash(
        "31c6a71e6670b765a1447d8905fa4c85ed678d941edf752c92e5ac8a1176c7e1",
    ),
    epoch: 589,
    slot: 5891,
    timestamp: Timestamp(
        1676844994,
    ),
    root: MerkleNode(
        0x2fd8e51a03d9bbe2dd809831b1497aeb68a6e37ddf707ced4aa2d8dff13529ae,
    ),
}
=======================================
Deserialized successfully. Scanning block...
[Money] Iterating over 0 transactions
[DAO] Iterating over 0 transactions

Now it works - was probably again too fast with the issue open. Maybe color the note on https://darkrenaissance.github.io/darkfi/testnet/airdrop.html so that it catches the eye more.