PsychicCat / monero-nodejs

Monero wallet management via JSON-RPC
MIT License
116 stars 61 forks source link

Unhandled rejection RequestError: Error: getaddrinfo ENOTFOUND http http:80 #27

Open abdul745 opened 3 years ago

abdul745 commented 3 years ago

In nodejs, While creating an instance of monero-wallet using following code and my own server details where the program is running:

var moneroWallet = require('/home/server/auth/monero-nodejs/lib/wallet.js'); var mWallet = new moneroWallet( hostName, port);

I am getting the following error: Unhandled rejection RequestError: Error: getaddrinfo ENOTFOUND http http:80 at new RequestError (/home/server/node_modules/request-promise-core/lib/errors.js:14:15) at Request.plumbing.callback (/home/server/node_modules/request-promise-core/lib/plumbing.js:87:29) at Request.RP$callback [as _callback] (/home/server/node_modules/request-promise-core/lib/plumbing.js:46:31) at self.callback (/home/server/node_modules/request/request.js:185:22) at Request.emit (events.js:198:13) at Request.onRequestError (/home/server/node_modules/request/request.js:877:8) at ClientRequest.emit (events.js:198:13) at Socket.socketErrorListener (_http_client.js:401:9) at Socket.emit (events.js:198:13) at emitErrorNT (internal/streams/destroy.js:91:8) at emitErrorAndCloseNT (internal/streams/destroy.js:59:3) at process._tickCallback (internal/process/next_tick.js:63:19)

Anyone knows the problem?