Skip to content
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

Unable to query account via democli #1036

Closed
gkumar7 opened this issue May 22, 2018 · 4 comments
Closed

Unable to query account via democli #1036

gkumar7 opened this issue May 22, 2018 · 4 comments
Labels

Comments

@gkumar7
Copy link
Contributor

gkumar7 commented May 22, 2018

Error is reproducible with following commands:

democoind init
democli keys add test --recover
democli account <testAddress>

This results in:

panic: Not enough bytes to read in UnmarshalBinary, want 829 more bytes but only have 57                                                                                                                            
                                                                                                                                                                                                                    
goroutine 1 [running]:                                                                                                                                                                                              
github.com/cosmos/cosmos-sdk/examples/democoin/types.GetAccountDecoder.func1(0xc4201891c0, 0x3b, 0x3c, 0x1, 0xc66acd, 0x15, 0x0) 
@zramsay zramsay added the C:CLI label May 23, 2018
@ValarDragon
Copy link
Contributor

This was fixed by #1185 (tested this on master), thanks for reporting it!

@gkumar7
Copy link
Contributor Author

gkumar7 commented Jun 19, 2018

@ValarDragon, apologies for the bit of a late response on this. It seems the issue is still there. The fix you reference is for gaiacli for the case when the account does not exist.

In my case, the issue is in the democoin example, and the account does exist. Note I retrieve the address of the genesis account.

democli keys add test --recover

@cwgoes
Copy link
Contributor

cwgoes commented Jun 19, 2018

@gkumar7 What version of democli / democoind are you running? Try upgrading to the newest release.

@gkumar7
Copy link
Contributor Author

gkumar7 commented Jun 20, 2018

@cwgoes I have built the latest develop branch (commit: 0292a3b).

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

4 participants