getBlockHeadersByHash Error: Extension "json" is not supported #14537

issue educob opened this issue on October 21, 2018
  1. educob commented at 1:47 PM on October 21, 2018: none

    Hello.

    I am receiving block notifications (via zmq) and by calling client.getBlockByHash (json extension) but when running: client.getBlockHeadersByHash( '00000xxxxx...', 1, { extension: 'json'})

    I get: Error: Extension "json" is not supported

    It works with extensions bin and hex.

    solution: line 220: if (!_lodash.default.includes(['bin', 'hex'], extension)) { Must be changed to: if (!_lodash.default.includes(['bin', 'hex', 'json'], extension)) {

  2. MarcoFalke commented at 1:51 PM on October 21, 2018: member

    Usually the issue tracker is used to track technical issues related to the Bitcoin Core code base. Keep in mind that general bitcoin questions and/or support requests for other clients or software are best directed to the Bitcoin StackExchange.

  3. MarcoFalke closed this on Oct 21, 2018

  4. MarcoFalke locked this on Sep 8, 2021
Contributors

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-17 03:14 UTC

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