multichain-node connection with front end

+2 votes
I am trying to call getinfo() method  and print the output on console using multichain-node npm..

I'get following output on console


<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
<META HTTP-EQUIV='Content-Type' CONTENT='text/html; charset=ISO-8859-1'>
<BODY><H1>401 Unauthorized.</H1></BODY>


What could be the possible mistake?
asked Mar 8, 2019 by tk

1 Answer

+1 vote

If you set the RPC username and password correctly, the issue may be that you are trying to access the node API from a different computer. You can fix this using the rpcallowip runtime parameter:

answered Mar 8, 2019 by MultiChain