Alignak-monitoring-contrib/alignak-backend

Using several client processes raises an exception

Closed this issue · 2 comments

When the client library is configured to use more than one process:

Process Process-26:
Traceback (most recent call last):
  File "/usr/local/lib/python2.7/multiprocessing/process.py", line 267, in _bootstrap
    self.run()
  File "/usr/local/lib/python2.7/multiprocessing/process.py", line 114, in run
    self._target(*self._args, **self._kwargs)
  File "/usr/local/lib/python2.7/site-packages/alignak_backend_client-1.2.1-py2.7.egg/alignak_backend_client/client.py", line 450, in get_pages
    resp = self.get(endpoint, params)
  File "/usr/local/lib/python2.7/site-packages/alignak_backend_client-1.2.1-py2.7.egg/alignak_backend_client/client.py", line 372, in get
    resp = self.decode(response=response)
  File "/usr/local/lib/python2.7/site-packages/alignak_backend_client-1.2.1-py2.7.egg/alignak_backend_client/client.py", line 206, in decode
    resp_json = response.json()
  File "/usr/local/lib/python2.7/site-packages/requests/models.py", line 884, in json
    self.content.decode(encoding), **kwargs
  File "/usr/local/lib/python2.7/json/__init__.py", line 339, in loads
    return _default_decoder.decode(s)
  File "/usr/local/lib/python2.7/json/decoder.py", line 364, in decode
    obj, end = self.raw_decode(s, idx=_w(s, 0).end())
  File "/usr/local/lib/python2.7/json/decoder.py", line 380, in raw_decode
    obj, end = self.scan_once(s, idx)
ValueError: Expecting ':' delimiter: line 1 column 7748 (char 7747)

Probably a backend client library problem, see Alignak-monitoring-contrib/alignak-backend-client#67

Not reproduced after some more tests ... I am closing this issue