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

Improve logging when client commands are issued while bootstrapping #3172

Open
doronz2 opened this issue Aug 11, 2019 · 2 comments

Comments

@doronz2
Copy link

commented Aug 11, 2019

whenever I run the command: coda client get-balance -address $CODA_PK
I get the following error massage:
Failed to get balance
((rpc_error
(Uncaught_exn
((location "server-side rpc computation")
(exn
(monitor.ml.Error (Failure "Node is still bootstrapping")
("Raised at file "stdlib.ml", line 33, characters 17-33"
"Called from file "lib/participating_state/participating_state.ml" (inlined), line 44, characters 6-44"
"Called from file "app/cli/src/coda_run.ml", line 113, characters 12-95"
"Called from file "src/result.ml", line 151, characters 9-15"))))))
(connection_description ) (rpc_tag Get_balance)
(rpc_version 0))

And in the node side I get the following error:
2019-08-11 12:02:07.402803Z Error ("Exception raised to [Monitor.try_with] that already returned.""This error was captured by a default handler in [Async.Log]."(exn(monitor.ml.Error(Failure"traced task R&Get_balance failed, exception reported to parent monitor")("Raised at file "stdlib.ml", line 33, characters 17-33""Called from file "src/result.ml", line 96, characters 19-24""Called from file "src/monad.ml" (inlined), line 37, characters 20-29""Called from file "src/implementations.ml", line 493, characters 25-67""Called from file "src/result.ml", line 151, characters 9-15"))))

What should I do?

@Schmavery

This comment has been minimized.

Copy link
Contributor

commented Aug 12, 2019

Looks like the error says the node is still bootstrapping, once it's synced, then the get-balance should probably work fine. You can run coda client status to check.

@o1pranay

This comment has been minimized.

Copy link
Contributor

commented Aug 12, 2019

Thanks for reporting @doronz2 - please follow the instructions that @Schmavery provided. This is not a bug, but this is good feedback for us to improve the logging to be more clear.

Changing this issue title to reflect that we need to update the logging when bootstrapping to convey that users need to wait before trying client actions like get-balance

@o1pranay o1pranay changed the title Cannot get balance Improve logging when client commands are issued while bootstrapping Aug 12, 2019

@o1pranay o1pranay added the logging label Aug 12, 2019

@o1pranay o1pranay added this to the Testnet Beta milestone Aug 12, 2019

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
3 participants
You can’t perform that action at this time.