[EOSIO/eos] 3100002 : unknown_block_exception (#4093)

when I use curl –request POST
–url http://127.0.0.1:8888/v1/chain/get_block_header_state
–data ‘{“block_num_or_id”:”1″}’
it return 500
{
“code”: 500,
“message”: “Internal Service Error”,
“error”: {
“code”: 3100002,
“name”: “unknown_block_exception”,
“what”: “unknown block”,
“details”: [
{
“message”: “Could not find reversible block: 1”,
“file”: “chain_plugin.cpp”,
“line_number”: 846,
“method”: “get_block_header_state”
}
]
}
}

the nodeos logs is
1719060ms thread-0 http_plugin.cpp:396 handle_exception ] FC Exception encountered while processing chain.get_block_header_state: 3100002 unknown_block_exception: unknown block
Could not find reversible block: 1
{“block”:”1″}
thread-0 chain_plugin.cpp:846 get_block_header_state

This post was last modified on June 14, 2018, 10:36 am