You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I'm assuming that the server is pruned and that specified height in the --header is not available anymore. If I query for a past height that is very close to the latest height then it works.
Maybe a better error message could be returned if that's the case ? Maybe even with a field saying what is the earliest available height that could be queried for?
Thanks!
The text was updated successfully, but these errors were encountered:
Can you confirm that you got 12702000 and 12569986 mixed up? What version of the SDK are you running? (nvm just saw it)
Yes, sorry, I've had a typo the latest height was greater than the height I've specified.
I've noticed the issue was closed and seems the bug has been fixed, I'll see if there's a way to test this later in a new release, have to figure out first which release this has been included
Summary of Bug
Trying to retrieve the bank supply via a REST endpoint for a previous block height and the endpoint returns a panic
Version
Steps to Reproduce
Query the
/cosmos/bank/v1beta1/supply
endpoint for a past height (12702000
), the server latest height at the time of the query is (12569986
)This returns an error:
I'm assuming that the server is pruned and that specified height in the
--header
is not available anymore. If I query for a past height that is very close to the latest height then it works.Maybe a better error message could be returned if that's the case ? Maybe even with a field saying what is the earliest available height that could be queried for?
Thanks!
The text was updated successfully, but these errors were encountered: