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

RPC errors on master #3049

Closed
grdddj opened this issue Jan 25, 2024 · 1 comment
Closed

RPC errors on master #3049

grdddj opened this issue Jan 25, 2024 · 1 comment

Comments

@grdddj
Copy link

grdddj commented Jan 25, 2024

I am getting consistent errors with the latest master build when trying to do any wallet blockchain action - e.g. ord wallet balance

thread 'main' panicked at 'assertion failed: `(left == right)`
  left: `404`,
 right: `200`', src/wallet.rs:74:9
note: run with `RUST_BACKTRACE=1` environment variable to display a backtrace

Assert in question is assert_eq!(response.status(), StatusCode::OK); and it seems to be related with the latest PR - #2929

NOTE: release 0.15.0 is acting fine, even on 4b95ff6, one commit before the abovementioned 08b6380

@raphjaph
Copy link
Collaborator

We made some big changes to the wallet and server, which we will communicate in our next release. The TLDR is that the wallet now talks to the server via JSON RPC so you will have to run it with --enable-json-api. For that reason #3047 now enables the JSON API by default and thus deprecates --enable-json-api. So in order to run wallet commands on the current master branch you will have to run the server with ord server and after it's started up you can run ord wallet balance.

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

No branches or pull requests

2 participants