Open IvantheTricourne opened 4 years ago
related to #109
Edit: Ok, this was resolved by bumping kepler, so I think it can be ignored.
I'm running into
*** Exception: ParsingException "parsing Word64 failed, expected Number, but encountered String"
when trying to use RPC.abciInfo
even though manually curling works
{
"jsonrpc": "2.0",
"id": "",
"result": {
"response": {
"data": "1",
"version": "123",
"app_version": "1",
"last_block_height": "123"
}
}
}
I see this was erroring as of https://github.com/f-o-a-m/kepler/pull/84/commits/92b3b4c3af88a80cbafc5927947464dc03b32c3f.
I'm currently depending on an older version than that, and was wondering if bumping Kepler would fix this.
It seems to work in current Travis? https://travis-ci.com/github/f-o-a-m/kepler/jobs/310896828
RPC Request
{
"jsonrpc": "2.0",
"params": [],
"method": "abci_info",
"id": 2149148217020253723
}
RPC Response
{
"result": {
"response": {
"data": "{\"size\":0}",
"app_version": "1",
"version": "0.16.1"
}
},
"jsonrpc": "2.0",
"id": 2149148217020253696
}
Can query /abci_info and parse the result
Yeah this kind of stuff was always a pain to get right, we only lazily discover these kinds of errors. Let me know if you're problem wasn't actually fixed by the bump
Related to #75.
Missing Fields
Type definitions with fields that are missing when uninitialized
last_block_height
andlast_block_app_hash
Null Fields
Type definitions with fields that are set to
null
when uninitializedString Fields
Type definitions with fields typed
"string"
(i.e., wrappers over number types)Client.hs
height
,round
andindex
height
height_ptr
height
Response.hs
gas_wanted
andgas_used
gas_wanted
andgas_used
height
andindex
height
andapp_version
Request.hs
height
height
FieldTypes.hs
height
andtotal_voting_power
height
,num_txs
, andtotal_txs
block
andapp
total
round
power
power
max_age
max_bytes
andmax_gas
Types.hs
height
andindex
block_height