dashpay / dashd-rpc

Dash Client Library to connect to Dash Core (dashd) via RPC
MIT License
16 stars 65 forks source link

Error: Could not load service "@dashevo/dashd-rpc" as it does not support necessary methods and properties. #25

Closed yourtechcare closed 5 years ago

yourtechcare commented 5 years ago

Error: Could not load service "@dashevo/dashd-rpc" as it does not support necessary methods and properties.

antouhou commented 5 years ago

Hi @yourtechcare ! This error looks like an error from some third party code, and no error from dashd-rpc. Can you provide some more context?

yourtechcare commented 5 years ago

Error: Could not load service "@dashevo/dashd-rpc" as it does not support necessary methods and properties. at checkService (/usr/local/lib/node_modules/@dashevo/dashcore-node/lib/scaffold/start.js:124:11) at Function.setupServices (/usr/local/lib/node_modules/@dashevo/dashcore-node/lib/scaffold/start.js:182:7) at start (/usr/local/lib/node_modules/@dashevo/dashcore-node/lib/scaffold/start.js:85:31) at Command. (/usr/local/lib/node_modules/@dashevo/dashcore-node/lib/cli/main.js:70:7) at Command.listener (/usr/local/lib/node_modules/@dashevo/dashcore-node/node_modules/commander/index.js:315:8) at emitTwo (events.js:126:13) at Command.emit (events.js:214:7) at Command.parseArgs (/usr/local/lib/node_modules/@dashevo/dashcore-node/node_modules/commander/index.js:651:12) at Command.parse (/usr/local/lib/node_modules/@dashevo/dashcore-node/node_modules/commander/index.js:474:21) at Object.main (/usr/local/lib/node_modules/@dashevo/dashcore-node/lib/cli/main.js:147:11) /usr/local/lib/node_modules/@dashevo/dashcore-node/lib/scaffold/start.js:124

antouhou commented 5 years ago

@yourtechcare It looks like you're running an instance of https://github.com/dashevo/dashcore-node with an invalid config file that specifies "@dashevo/dashd-rpc" as a service. This library is not a service of dashcore-node. You can check https://github.com/dashevo/dashcore-node#configuration to see how to configure dashcore-node

yourtechcare commented 5 years ago

Possible for you to guide, how to enable RPC with dashcore-node without installing dashd-rpc?

antouhou commented 5 years ago

RPC server is a part of https://github.com/dashpay/dash, you don't need any additional software to make RPC work

yourtechcare commented 5 years ago

Fatal error: Uncaught exception 'RuntimeException' with message 'Unable to connect to http://dash:local321@xx.xx.xx.xx:9998/ Error: Failed to connect to xx.xx.xx.xx port 9998: Connection refused' in C:\xampp\htdocs\dash\jsonRPCClient.php:231

yourtechcare commented 5 years ago

dash-cli command also giving error related RPC

antouhou commented 5 years ago

Please check your dash configuration file to see the RPC server configuration. The file is usually located under ~/.dashcore/dash.conf, but it is possible to specify another file. It should look like this:

server=1
daemon=1
rpcuser=USERNAME
rpcpassword=PASSWORD

It's also possible to specify a different port here. If all the configs are presented in the file, then it's most likely that you're trying to access RPC with a wrong address, port or user password

yourtechcare commented 5 years ago

Thank you very much !