I have successfully run geth --rpc to test some functionality, but I need the personal API which according to this answer should be done by IPC.
When I run
geth --ipcapi "db,eth,net,web3,personal" --ipcpath /tmp/geth.ipc
This creates the ipc file and geth appears to otherwise start normally.
I have the following npm modules installed: web3 web3_extended web3_ipc
Then I run this on nodejs:
var web3_extended = require('web3_extended');
var options =
{
host: '/tmp/geth.ipc',
ipc: true,
personal: true,
admin: false,
debug: false
};
var web3 = web3_extended .create (options);
var coinbase = web3.eth.coinbase;
The last line gives me an HTML response which includes
Your browser sent a request that this server could not understand.
and
Apache/2.4.12 (Ubuntu) Server at localhost Port 80
That Apache line makes me think nodejs isn't even attempting to connect by IPC.
Why not? Or, what else is the problem?
npm install web3_ipcto install mine as opposed toweb3_extendedfor the other version – Tjaden Hess Apr 27 '16 at 00:58web3_ipcand notweb3_extended? As in this case I am getting errorcannot find node module web3_extended. And If install both node modulesweb3_extendedandweb3_ipc, I get same error asYour browser sent a request that this server could not understand.Please help! – Prashant Prabhakar Singh Dec 16 '16 at 05:56