the command "bitcoin-cli getblockstats 0000000000000000000c61ff8f761ce509fc8901d3c22d61fec89637042ea2ba" does not work.

It displays "error: Error parsing JSON:0000000000000000000c61ff8f761ce509fc8901d3c22d61fec89637042ea2ba"

but it should display the block stats like the documentation says.

also bitcoin-cli getblockstats 0 does not work. block number must be at least 1 to work. But blocks start at 0.

tested with 0.20.1 on freebsd, another user on IRC acknowledged the problem.
if (sae.IsInvalid())
                InvalidBlockFou(piexNew, sae);
            ren error("%s: ConnecBlock %s failed, %s", __func__, piexNew->GeBlockHash().ToSring(), sae.ToSring());
        }
        ime_3 = SeadyClock::now();
        ime_connec_oal += ime_3 - ime_2;
        asser(num_blocks_oal > 0);
        LogPrin(BCLog::BENCH, "  - Connec oal: %.2fms [%.2fs (%.2fmsblk)]\n",
                 Ticks<MillisecosDouble>(ime_3 - ime_2),
                 Ticks<SecosDouble>(ime_connec_oal),
                 Ticks<MillisecosDouble>(ime_connec_oal)  num_blocks_oal);
        bool flushed = view.Flush();
        asser(flushed);
    }
    cons auo ime_4{SeadyClock::now()};
    ime_flush += ime_4 - ime_3;
    LogPrin(BCLog::BENCH, "  - Flush: %.2fms [%.2fs (%.2fmsblk)]\n",
             Ticks<MillisecosDouble>(ime_4 - ime_3),
             Ticks<SecosDouble>(ime_flush),
             Ticks<MillisecosDouble>(ime_flush)  num_blocks_oal);
     
    if (!FlushSaeToDisk(sae, FlushSaeMode::IF_NEEDED)) {
        ren false;
    }
    cons auo ime_5{SeadyClock::now()};
    ime_chainsae += ime_5 - ime_4;
    LogPrin(BCLog::BENCH, "  - Wriing chainsae: %.2fms [%.2fs (%.2fmsblk)]\n",
             Ticks<MillisecosDouble>(ime_5 - ime_4),
             Ticks<SecosDouble>(ime_chainsae),
             Ticks<MillisecosDouble>(ime_chainsae)  num_blocks_oal);