TimSamshuijzen / iotaproxy

A simple proxy server for the IOTA tangle network, supporting the attachToTangle command (PoW).
GNU General Public License v3.0
43 stars 18 forks source link

Unclear instructions for iota-commandline-wallet #12

Open MichaelBakunin opened 6 years ago

MichaelBakunin commented 6 years ago

I finally got Iotaproxy server running after a whole load of node-gyp.It seems to be listening on http://localhost:14265 with the following index.js var iotaProxy = require('./lib/iotaproxy.js');

iotaProxy.start( { host: 'https://potato.iotasalad.org', port: 80, localPort: 14265, overrideAttachToTangle: true, timeout: 15 } );

but when I pop 'provider': 'http://localhost:14265', in my iota-wallet-config.js and do a node ./my-wallet.js Replay HFDSDOHSDUHUSDH.... iotaproxy says

IOTA proxy server started POW timeout is set to 15 min Listening on port 14265 Relaying requests to https://potato.iotasalad.org:80 Relaying command findTransactions

but the iota-commandline-wallet just comes back with

{ status: "error", message: "Invalid Response: Not Found"}

In step 7 of your setup instructions you say

Now, in your iota.lib.js project you can simply connect to this local proxy server, which in turn connects with the tangle: var IOTA = require('iota.lib.js');

var iota = new IOTA({ 'host': 'http://localhost', 'port': 14265 });

so what the hell do I have to configure to get this working?

TimSamshuijzen commented 6 years ago

Hi @MichaelBakunin, I think the problem might be because iotaproxy does not support connecting to https. To check, you could try a http node:

iotaProxy.start( { host: 'http://node02.iotatoken.nl', port: 14265, localPort: 14265, overrideAttachToTangle: true, timeout: 15 } );