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

daemon doesn't work with wcli #11199

Closed
onvej-sl opened this issue Aug 2, 2023 · 3 comments
Closed

daemon doesn't work with wcli #11199

onvej-sl opened this issue Aug 2, 2023 · 3 comments
Assignees

Comments

@onvej-sl
Copy link
Contributor

onvej-sl commented Aug 2, 2023

I was trying to get wcli to work. I've already fixed this error but there is another one.

cat Config.json

{
  "Network": "TestNet",
  "MainNetBackendUri": "https://api.wasabiwallet.io/",
  "TestNetClearnetBackendUri": "https://api.wasabiwallet.co/",
  "RegTestBackendUri": "http://localhost:37127/",
  "UseTor": true,
  "TerminateTorOnExit": false,
  "DownloadNewVersion": true,
  "StartLocalBitcoinCoreOnStartup": false,
  "StopLocalBitcoinCoreOnShutdown": true,
  "LocalBitcoinCoreDataDir": "WalletWasabi/.bitcoin",
  "MainNetBitcoinP2pEndPoint": "127.0.0.1:8333",
  "TestNetBitcoinP2pEndPoint": "127.0.0.1:18333",
  "RegTestBitcoinP2pEndPoint": "127.0.0.1:18444",
  "JsonRpcServerEnabled": false,
  "JsonRpcUser": "JsonRpcUser",
  "JsonRpcPassword": "JsonRpcPassword",
  "JsonRpcServerPrefixes": [
    "http://localhost:37128/",
    "http://127.0.0.1:37128/"
  ],
  "DustThreshold": "0.00005",
  "EnableGpu": true,
  "CoordinatorIdentifier": "CoinJoinCoordinatorIdentifier"
}
./wcli.sh getstatus

parse error: Invalid numeric literal at line 1, column 8

I discovered that the cause of the error is that the daemon returns <h1>Not Found (Not Found)</h1> if the request contains the headerHost: localhost:37128.

EDITED: I updated Config.json.

@lontivero
Copy link
Collaborator

The RPC server doesn't return html. The error <h1>Not Found (Not Found)</h1> has to come from a different http server.

@lontivero
Copy link
Collaborator

Any update here?

@lontivero
Copy link
Collaborator

Feel free to reopen.

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