-
Notifications
You must be signed in to change notification settings - Fork 899
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
blob.GetAll not returning correct base64 data, GetShare and GetSharesByNamespace also don't work #2503
Comments
only steps you need to repro:
|
Duplicate to #2500 |
ok now context is linked :) |
other issue doesn't seem to address the issues with the response from the RPC, though, so reopening. but please close if wrong |
Input params are incorrect here: |
But I agree that there is an issue because we don't check indexes before handing in the request. |
what is the correct format? |
|
so what namespace is this for? celestia rpc share GetShare "$(celestia rpc header GetByHeight 101810 | jq '.result.dah' -r)" 0 0
{
"jsonrpc": "2.0",
"result": "AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAQBAAACuAAAACbcAgrQAgqgAQqdAQogL2NlbGVzdGlhLmJsb2IudjEuTXNnUGF5Rm9yQmxvYnMSeQovY2VsZXN0aWExNXJkZHB3amY1M3Fsa21xcnkzbmE5Y2FzY3dsYzl4Z3J2czRraDcSHQAAAAAAAAAAAAAAAAAAAAAAAAA+6F39tPkv7BI9GgKLDCIgAW7uZlBgQDnTc8czrN6voDfKphfmVcZLebBsjzEVpoRCAQASaQpRCkYKHy9jb3Ntb3MuY3J5cHRvLnNlY3AyNTZrMS5QdWJLZXkSIwohA9QZjbTNT9DKL9qkJKO/SBiv4uqoulCE8pngYUyJRQ1jEgQKAggBGNN1EhQKDgoEdXRpYRIGMjAwMDAwEICJehpAEdmeKwe6M1bi+Yzj/2wpsfUjA2d7BOxnGsJTpFZzEW0RzhBRa52BD54LsV4xk3zwGE0QormkbQIvO5k9KFD8qxIBAhoESU5EWNgCCswCCp8BCpwBCiAvY2VsZXN0aWEuYmxvYi52MS5Nc2dQYXlGb3JCbG9icxJ4Ci9jZWxlc3RpYTF5aDM2OTh4MzJwYTVtN2NxM2U2azg3bTQ0NWZjOG1wdWU4bWU2dhIdAAAAAAAAAAAAAAAAAAAAAAAAAEJpDCBNOWA=",
"id": 1
} |
This request is not about the namespace, it fetches the share at a particular position(I actually do not understand why do we need it to be exposed via rpc). |
Celestia Node version
v0.11.0-rc8
OS
mac
Install tools
docs
Others
nope
Steps to reproduce it
Q: if i post plain-text data
'"gm"'
and retrieve it, the response is in base64, correct?i’m updating the based64.xyz tutorial, and during testing I used
'"gm"'
as a check, the base64 share that i retrieve is:SW1kdElnPT0=
which converts from base64 to text:ImdtIg==
, notgm
(plus some metadata bytes). i’m on arabica-9 v0.11.0-rc8i previously had
celestia rpc share GetSharesByNamespace "$(celestia rpc header GetByHeight $HEIGHT | jq '.result.dah' -r)" GHTmQvXd5Yk=
but now am usingcelestia rpc blob GetAll $HEIGHT 0x42690c204d39600fddd3
the commands that previously worked, also do not work anymore as expected, detailed in this issue:
celestiaorg/docs#914
updated tutorial is at https://based64.xyz/
i also went through the node tutorial page, and the examples on retrieval work with CLI when submitting hex.
Expected result
returns blob in base64 which can be converted to base64 to text. this is how it worked originally and there seems to be a bug on the serialization or deserialization in rpc.go (based on what Hlib and I were looking at yesterday)
Actual result
returns data in wrong format
Relevant log output
Notes
I know for a fact that I submitted data to the namespace and at the block heights above.
the methods themselves did not change. i am using the correct length of namespace.
The text was updated successfully, but these errors were encountered: