Edit, it looks like rpc is not running correctly or the script/caller does not have the correct permissions to access the proxy url
>>> dir(access._get_response())
Traceback (most recent call last):
File "", line 1, in
File "/usr/local/lib/python2.7/dist-packages/bitcoinrpc/authproxy.py", line 163, in _get_response
http_response = self.__conn.getresponse()
File "/usr/lib/python2.7/httplib.py", line 1018, in getresponse
raise ResponseNotReady()
httplib.ResponseNotReady
Hypothesis is correct:
root@fullnode:/# curl http://****:****@127.0.0.1:8332
"http://www.w3.org/TR/1999/REC-html401-19991224/loose.dtd">
Error
401 Unauthorized.
Need some help with this guys.
bitcoind is running fine
root@fullnode:/# bitcoind getinfo
{
"version" : 90300,
"protocolversion" : 70002,
"walletversion" : 60000,
"balance" : 0.00000000,
"blocks" : 336975,
"timeoffset" : 1,
"connections" : 20,
"proxy" : "",
"difficulty" : 40640955016.57649231,
"testnet" : false,
"keypoololdest" : 1403450557,
"keypoolsize" : 102,
"paytxfee" : 0.00000000,
"relayfee" : 0.00001000,
"errors" : ""
}
root@fullnode:/#
Issue running btc-update.py
root@fullnode:/# sudo python ./usr/local/bin/btc-update.py
Traceback (most recent call last):
File "./usr/local/bin/btc-update.py", line 6, in
info = access.getinfo()
File "/usr/local/lib/python2.7/dist-packages/bitcoinrpc/authproxy.py", line 124, in __call__
response = self._get_response()
File "/usr/local/lib/python2.7/dist-packages/bitcoinrpc/authproxy.py", line 170, in _get_response
response = json.loads(responsedata, parse_float=decimal.Decimal)
File "/usr/lib/python2.7/json/__init__.py", line 339, in loads
return cls(encoding=encoding, **kw).decode(s)
File "/usr/lib/python2.7/json/decoder.py", line 366, in decode
obj, end = self.raw_decode(s, idx=_w(s, 0).end())
File "/usr/lib/python2.7/json/decoder.py", line 384, in raw_decode
raise ValueError("No JSON object could be decoded")
ValueError: No JSON object could be decoded
root@fullnode:/#
Tried running the script manually, no luck
root@fullnode:/# python
Python 2.7.3 (default, Feb 27 2014, 19:58:35)
[GCC 4.6.3] on linux2
Type "help", "copyright", "credits" or "license" for more information.
>>> from bitcoinrpc.authproxy import AuthServiceProxy
>>> import time
>>> access = AuthServiceProxy("http://*****:****@127.0.0.1:8332")
>>> access.getinfo()
Traceback (most recent call last):
File "", line 1, in
File "/usr/local/lib/python2.7/dist-packages/bitcoinrpc/authproxy.py", line 124, in __call__
response = self._get_response()
File "/usr/local/lib/python2.7/dist-packages/bitcoinrpc/authproxy.py", line 170, in _get_response
response = json.loads(responsedata, parse_float=decimal.Decimal)
File "/usr/lib/python2.7/json/__init__.py", line 339, in loads
return cls(encoding=encoding, **kw).decode(s)
File "/usr/lib/python2.7/json/decoder.py", line 366, in decode
obj, end = self.raw_decode(s, idx=_w(s, 0).end())
File "/usr/lib/python2.7/json/decoder.py", line 384, in raw_decode
raise ValueError("No JSON object could be decoded")
ValueError: No JSON object could be decoded
>>>