-
Notifications
You must be signed in to change notification settings - Fork 925
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
bug: "result": "RPC client error: sendRequest failed: http status 401 Unauthorized unmarshaling response: EOF"
on querying account-address
#3384
Comments
I'm assuming this is fixed by this pr and #3385 can fix it once released. Expected Result should probably not be "account address", 401 signifies you did not have permission to access that endpoint -- meaning the expected result should be an error and not a result, with a cleaner ouput. The 401 could either be internally from node/jsonrpc (by not setting the auth token), or from your networking setup between the client and node. Could you provide more details from the setup? |
my setup is just me running it also fails if i provide the auth token by doing: export CELESTIA_NODE_AUTH_TOKEN=$(celestia light auth write --p2p.network arabica)
celestia state account-address --token $CELESTIA_NODE_AUTH_TOKEN |
hold on a second...i think the auth token needs to be export CELESTIA_NODE_AUTH_TOKEN=$(celestia light auth admin --p2p.network arabica)
celestia state account-address --token $CELESTIA_NODE_AUTH_TOKEN
{
"result": "celestia1lvns26q9d43a5fcl3xjmfy3auk6fekf2x5pp93"
} |
Hmn, the logic added by @mastergaurang94 that removes the need to specify the store should have automatically gotten the admin token. Do i understand correctly that you don't have this issue when you specify admin token, but when not it fails? |
@Wondertan #3246 is not included in v0.13.5 release if running:
celestia state account-address
Error: cant get the access to the auth token: token/node-store flag was not specified
Usage:
celestia state account-address [flags]
Flags:
-h, --help help for account-address
Global Flags:
--node.store string The path to root/home directory of your Celestia Node Store
--token string Authorization token
--url string Request URL (default "http://localhost:26658") |
Ah, I see, thanks for correction |
and now that i've changed the auth token to admin, i cannot reproduce an error where: celestia state account-address --node.store $HOME/.celestia-light-arabica-11 results in an error. i don't know how this is related, though tbh 😅 i can also use this successfully and see no error from using export CELESTIA_NODE_AUTH_TOKEN=$(celestia light auth write --p2p.network arabica)
celestia state account-address --token $CELESTIA_NODE_AUTH_TOKEN
{
"result": "celestia1lvns26q9d43a5fcl3xjmfy3auk6fekf2x5pp93"
} |
@jcstein Is the issue resolved here? If so, feel free to close the issue |
yep let's close this |
Celestia Node version
v0.13.5
OS
macOS
Install tools
docs
Others
No response
Steps to reproduce it
celestia light start --p2p.network arabica --core.ip validator-1.celestia-arabica-11.com
celestia state account-address --node.store $HOME/.celestia-light-arabica-11
Expected result
account address
Actual result
http status 401 Unauthorized unmarshaling response: EOF
Relevant log output
No response
Notes
No response
The text was updated successfully, but these errors were encountered: