What should I do if I do not pass the test when installing masternodes
JSONRPCException: -342: non-JSON HTTP response with '401 Unauthorized' from server
venv/local/lib/python2.7/site-packages/bitcoinrpc/authproxy.py:187: JSONRPCException
self =
def _get_response(self):
http_response = self.__conn.getresponse()
if http_response is None:
raise JSONRPCException({
'code': -342, 'message': 'missing HTTP response from server'})
content_type = http_response.getheader('Content-Type')
if content_type != 'application/json':
raise JSONRPCException({
> 'code': -342, 'message': 'non-JSON HTTP response with \'%i %s\' from server' % (http_response.status, http_response.reason)})
E JSONRPCException: -342: non-JSON HTTP response with '401 Unauthorized' from server
venv/local/lib/python2.7/site-packages/bitcoinrpc/authproxy.py:187: JSONRPCException
=============================== 1 failed, 19 passed in 1.46 seconds ================================
I was getting this same error this evening and was working on it for hours and discovered was very simple fix. I am assuming it is with test_monacoCoind.
1. verify your .monacoCoin.conf file located in .monacoCoinCore. This is where my problem was.
2. I don't know which fix did it, but I had a couple things that did not look right in the file. first, I had rpcuser = xxxxxx so I took out spaces before and after the = sign. rpcuser=xxxxx (and did so on all other variables in the file). I am not sure how they got there. They may actually be there in the installation file before it's modified. I cannot remember.
3. I put a blank line between maxconnections=24 and masternode=1 (the instructions show one being there and i did not do that)
4. If you find any issues, you must edit the file, save it, stop the monacoCoind, then restart it. After that, rerun the test. mine passed after I made those simple changes. I attribute it to being late. The problem is more than likely an error in that .conf file.