Savoir connection error

+1 vote
>>> from Savoir import Savoir

>>> api = Savoir ('multichainrpc','CaH3f6S8RGnBdpDiLx67FV6m1zBvtDmKnW28tzPgSSPg','localhost','4757','chain1')

>>>api.getinfo()

throws a below error

Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
  File "Savoir/Savoir.py", line 58, in __call__
    r = requests.post(url, data=encoded, headers=self.__headers)
  File "/usr/local/lib/python2.7/dist-packages/requests/api.py", line 112, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/local/lib/python2.7/dist-packages/requests/api.py", line 58, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/local/lib/python2.7/dist-packages/requests/sessions.py", line 518, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/local/lib/python2.7/dist-packages/requests/sessions.py", line 639, in send
    r = adapter.send(request, **kwargs)
  File "/usr/local/lib/python2.7/dist-packages/requests/adapters.py", line 488, in send
    raise ConnectionError(err, request=request)
requests.exceptions.ConnectionError: ('Connection aborted.', BadStatusLine("''",))
asked Dec 3, 2018 by chaitra
We would recommend contacting the authors of Savoir about this, since it's a third party API and the problem isn't immediately obvious from this traceback.

1 Answer

+1 vote
Double check your credentials and make sure that you're running the MultiChain daemon i.e. multichaind <chain_name> -daemon
answered Mar 20, 2019 by mirabdulHaseeb
...