bitcoind rest 404 returned when call blockhashbyheight API #15289

issue qshuai opened this issue on January 30, 2019
  1. qshuai commented at 3:27 AM on January 30, 2019: none

    <!-- This issue tracker is only for technical issues related to Bitcoin Core. General bitcoin questions and/or support requests are best directed to the Bitcoin StackExchange at https://bitcoin.stackexchange.com. For reporting security issues, please read instructions at https://bitcoincore.org/en/contact/. If the node is "stuck" during sync or giving "block checksum mismatch" errors, please ensure your hardware is stable by running memtest and observe CPU temperature with a load-test tool such as linpack before creating an issue! -->

    <!-- Describe the issue -->

    curl -v  http://127.0.0.1:8332/rest/blockhashbyheight/23.json
    * About to connect() to 127.0.0.1 port 8332 (#0)
    *   Trying 127.0.0.1...
    * Connected to 127.0.0.1 (127.0.0.1) port 8332 (#0)
    > GET /rest/blockhashbyheight/23.json HTTP/1.1
    > User-Agent: curl/7.29.0
    > Host: 127.0.0.1:8332
    > Accept: */*
    >
    < HTTP/1.1 404 Not Found
    < Date: Wed, 30 Jan 2019 03:24:33 GMT
    < Content-Length: 0
    < Content-Type: text/html; charset=ISO-8859-1
    <
    * Connection [#0](/bitcoin-bitcoin/0/) to host 127.0.0.1 left intact
    

    <!--- What behavior did you expect? -->

    I want to get a json object containing the hexadecimal block hash 000000000cd339982e556dfffa9de94744a4135c53eeef15b7bcc9bdeb9c2182

    <!--- What was the actual behavior (provide screenshots if the issue is GUI-related)? -->

    <!--- How reliably can you reproduce the issue, what are the steps to do so? -->

    <!-- What version of Bitcoin Core are you using, where did you get it (website, self-compiled, etc)? -->

    <!-- What type of machine are you observing the error on (OS/CPU and disk type)? -->

    <!-- For the GUI-related issue on Linux provide names and versions of a distro, a desktop environment and a graphical shell (if relevant). -->

    <!-- Any extra information that might be useful in the debugging process. -->

    <!--- This is normally the contents of a `debug.log` or `config.log` file. Raw text or a link to a pastebin type site are preferred. -->

  2. jonasschnelli commented at 5:09 AM on January 30, 2019: contributor

    Are you aware that this feature is only available in current master (self compile)? It will be in 0.18 though.

  3. qshuai commented at 9:38 AM on January 30, 2019: none

    @jonasschnelli Oh, Thanks!

  4. qshuai closed this on Jan 30, 2019

  5. DrahtBot locked this on Dec 16, 2021

github-metadata-mirror

This is a metadata mirror of the GitHub repository bitcoin/bitcoin. This site is not affiliated with GitHub. Content is generated from a GitHub metadata backup.
generated: 2026-04-22 09:15 UTC

This site is hosted by @0xB10C
More mirrored repositories can be found on mirror.b10c.me