I've followed the instructions form Bitshares GUI (web wallet). I wanna start a client and access the RCP json. My config file looks like this:
"rpc": {
"enable": true,
"rpc_user": "test",
"rpc_password": "test",
"rpc_endpoint": "127.0.0.1:0",
"httpd_endpoint": "127.0.0.1:0",
"htdocs": "./htdocs"
}
and so on.
I start the client with this command: ./bitshares_client --server / --rpcuser=test --rpcpassword=test / --httpdendpoint=127.0.0.1:5000.
And I get this result at console:
Loading blockchain from: /home/ekrem/.BitShares/chain
Loading config from file: /home/ekrem/.BitShares/config.json
Starting JSON RPC server on port 48449 (localhost only)
Starting HTTP JSON RPC server on port 5000 (localhost only)
Attempting to map P2P port 1776 with UPNP...
Listening for P2P connections on port 1776
Adding peer 54.77.51.177:1776 to peer database
Adding peer 104.131.35.149:1776 to peer database
Adding peer 106.185.26.162:1776 to peer database
Adding peer 178.62.50.61:1779 to peer database
Adding peer 178.62.50.61:1778 to peer database
Adding peer 178.62.157.161:1776 to peer database
Adding peer 180.153.142.120:1777 to peer database
Adding peer 5.101.106.138:1777 to peer database
Adding peer 61.129.33.213:1776 to peer database
Adding peer 95.85.33.16:8764 to peer database
Adding peer 46.226.109.66:1776 to peer database
Adding peer 84.238.140.192:42577 to peer database
Adding peer 188.226.195.137:60696 to peer database
Adding peer 5.101.106.138:1778 to peer database
Adding peer 5.101.106.138:1776 to peer database
Adding peer 178.62.50.61:1776 to peer database
Adding peer 54.79.27.224:1776 to peer database
Adding peer 185.25.22.21:1776 to peer database
Adding peer 178.62.50.61:1777 to peer database
Adding peer 85.214.53.224:1776 to peer database
--- there are now 8 active connections to the p2p network
--- syncing with p2p network, 4861 blocks left to fetch
--- syncing with p2p network, our last block is 10 hours old
--- currently syncing at 48 blocks/sec, 70 seconds remaining
--- in sync with p2p network
--- there are now 6 active connections to the p2p network
(wallet closed)
When I go to localhost:5000, it show me a dialog windows that requires username and password (A username and password are beeing required by localhost:5000. This site says "bts wallet"). I've wrote username: test and password: test, like in my config.json file and the command I started bitshares_client, and the result I've get is "Invalid RPC Request".
Does anyone have the idea how to solve this?