cli icon indicating copy to clipboard operation
cli copied to clipboard

json: cannot unmarshal string into Go value of type []chaincmdrunner.Account

Open alberthuang24 opened this issue 3 years ago • 4 comments

Describe the bug image

To reproduce Steps to reproduce the behavior:

  1. ignite chain serve --force-reset -v

Since the latest version of cosmos-sdk if without an account, the output will say "No records were found in keyring", which will cause the JSON serialization to fail

What version are you using?

❯ ignite version Ignite CLI version: development Ignite CLI build date: 2022-10-12T14:16:24 Ignite CLI source hash: 21c6430cfcc17c69885524990c448d4a3f56461c Your OS: darwin Your arch: arm64 Your Node.js version: v14.18.2 Your go version: go version go1.18 darwin/arm64 Your uname -a: Darwin Alberts-MBP 21.6.0 Darwin Kernel Version 21.6.0: Mon Aug 22 20:19:52 PDT 2022; root:xnu-8020.140.49~2/RELEASE_ARM64_T6000 arm64 Your cwd: /Users/alberthuang/code/sodium Is on Gitpod: false

alberthuang24 avatar Oct 12 '22 06:10 alberthuang24

Hey @alberthuang24 I can't reproduce the issue, can you retry with the latest ignite ? Check the nightly release https://github.com/ignite/cli/releases/tag/nightly

tbruyelle avatar Oct 12 '22 13:10 tbruyelle

image

Yes, after I delete all the keys, it has this problem

alberthuang24 avatar Oct 12 '22 14:10 alberthuang24

Maybe having cosmos-sdk print error messages via stderr will solve the problem

alberthuang24 avatar Oct 12 '22 14:10 alberthuang24

What is the query or the transaction you run to trigger this error ?

tbruyelle avatar Oct 12 '22 14:10 tbruyelle

What is the query or the transaction you run to trigger this error ?

@tbruyelle I got this error while working on an SPN related issue. I was not able to start SPN because of this.

jeronimoalbi avatar Oct 14 '22 11:10 jeronimoalbi