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
When running a read-only query at a height wherein data (e.g., an object store) does not exist, we get an Eof error without context as to why the query failed.
Details
For example, try running the following command (on the "bleeding edge" testnet)—the height value provided is some arbitrary block number prior to the object store being created:
hoku os query --address t2ge4bsavi6uaz5pq4toqwvhhwzav5mw6aryrhjsi --height 100
This logs a cbor Eof error:
Error: error parsing as ListObjectsReturn: Serialization error for Cbor protocol: Eof
Ideally, we should catch this and, at least, log something like invalid height. Depending on the query, perhaps we could provide more context too, like invalid height: object store created at block XXX.
And this probably happens with other APIs, so we should handle those here, too...I'd have to test this out to further confirm.
The text was updated successfully, but these errors were encountered:
Summary
When running a read-only query at a
height
wherein data (e.g., an object store) does not exist, we get an Eof error without context as to why the query failed.Details
For example, try running the following command (on the "bleeding edge" testnet)—the height value provided is some arbitrary block number prior to the object store being created:
This logs a cbor Eof error:
Ideally, we should catch this and, at least, log something like
invalid height
. Depending on the query, perhaps we could provide more context too, likeinvalid height: object store created at block XXX
.And this probably happens with other APIs, so we should handle those here, too...I'd have to test this out to further confirm.
The text was updated successfully, but these errors were encountered: