Savoir: No JSON object could be decoded

+1 vote

Hi,

I have not been able to use Savoir to make api calls to my multichain node. The node is running in a docker container and I have included rpcallowip of my computer from which I am trying make api calls using python and savoir.

First, making the standard getinfo() call raises "No handlers could be found for logger "Savoir". This is odd. The final error raised is "No JSON object could be decoded".

How can this problem be solved? Many thanks!!

No handlers could be found for logger "Savoir"
Traceback (most recent call last):
  File "test_savoir.py", line 10, in <module>
    result=api.listassets()
  File "/home/helio/blockchain/multichain/savoir/Savoir/Savoir.py", line 65, in __call__
    log.error("Json: %s" % r.json())
  File "/usr/local/lib/python2.7/dist-packages/requests/models.py", line 885, in json
    return complexjson.loads(self.text, **kwargs)
  File "/usr/lib/python2.7/json/__init__.py", line 339, in loads
    return _default_decoder.decode(s)
  File "/usr/lib/python2.7/json/decoder.py", line 364, in decode
    obj, end = self.raw_decode(s, idx=_w(s, 0).end())
  File "/usr/lib/python2.7/json/decoder.py", line 382, in raw_decode
    raise ValueError("No JSON object could be decoded")
ValueError: No JSON object could be decoded

 

 

asked Mar 3 by dasilvah

1 Answer

+1 vote
This is a third party library so we would suggest reviewing the documentation to make sure you're using it correctly, and if that does not help, contacting the authors for assistance.
answered Mar 5 by MultiChain
...