Multichain Demo: 401 Unauthorized

+4 votes

Hey all,

 

Got an issue when I try to configure the web demo on a secondary node.

I got it working on my main node with the following configuration:

default.name=Default        
default.rpchost=127.0.0.1      
default.rpcport=4252             
default.rpcuser=User
default.rpcpassword=Password
default.rpcallowip=172.31.254.20

 

Now Im trying to do the exact same thing on my secondary node.

I use:

default.name=Default         
default.rpchost=127.0.0.1
default.rpcport=4252          
default.rpcuser=multichainrpc        
default.rpcpassword=Arah1fLriC9cR7SeZL8Aqifb7TcfeAeQZixybcdX22xs       
default.rpcallowip=10.51.120.192

 

But this gives me an error: 

Error: HTTP 401
Error 401 Unauthorized. http://127.0.0.1:4252/

 

On my main node I only got it working with 127.0.0.1, but that should also work here right?

The rpcallowip is from the cmd window when I start my node.

 

Anyone?

 

Thanks

asked Apr 19, 2018 by silox

1 Answer

+1 vote

First, this is not the right place to set rpcallowip, but anyway you shouldn't need that if all connections to the JSON-RPC API are local.

As for getting the unauthorized error, if this is a local connection, the issue is probably that you got the wrong password.

answered Apr 19, 2018 by MultiChain
...