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

Wallet file not specified error if multiple Core wallets open #98

Open
thephez opened this issue Nov 26, 2024 · 1 comment
Open

Wallet file not specified error if multiple Core wallets open #98

thephez opened this issue Nov 26, 2024 · 1 comment

Comments

@thephez
Copy link
Contributor

thephez commented Nov 26, 2024

Issue

If Core has multiple wallets open, this JSON-RPC error is returned because DET isn't providing an rpcwallet parameter (see docs):

JSON-RPC error: RPC error response: RpcError { code: -19, message: "Wallet file not specified (must request wallet RPC through /wallet/<filename> uri-path).", data: None }

Example screenshot:

image

Also, it seems that the error won't go away even if the user closes all but one wallet and hits refresh. It's not clear if the refresh works and the error just isn't removed or if the refresh is failing.

Possible solution

Use the listwallets RPC to check if multiple Core wallets are open and provide a more helpful error message to the user.

Or allow them to select which wallet they want to use? Not sure if that's a good idea though 🤷‍♂️

@thephez
Copy link
Contributor Author

thephez commented Dec 19, 2024

Maybe you could just tell the user they must have one, and only one, wallet open in Core for DET to work instead of passing this error to them?

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

1 participant