Erreur: Request error: malformed JSON string
Description
Distribution Name and Version
Debian Stretch
Argonaut Version
1.2
PERL version used
Origin of perl packages
Debian Stretch
Steps to Reproduce
- [First Step]
- [Second Step]
- [and so on...]
Expected behavior:
Actual behavior:
I manage to have a connection with http://:4440/interface ( /interface for http , rpc for https)
But I've now the following error
sept. 20 00:11:12 [INFO] [OPSI] sending action product_getObjects to ly-opsi-prd.lyon.irstea.priv
sept. 20 00:11:12 [DEBUG] [OPSI] Call : $VAR1 = {
'method' => 'product_getObjects',
'params' => [
[
'id',
'name',
'setupScript',
'alwaysScript',
'onceScript',
'customScript',
'userLoginScript',
'updateScript',
'productVersion',
'packageVersion'
],
{
'type' => 'LocalbootProduct'
}
]
};
2017/09/20 00:11:13 App::Daemon die handler triggered.
2017/09/20 00:11:13 Die handler called by eval. Ignored.
sept. 20 00:11:13 [DEBUG] Setting task error 'malformed JSON string, neither array, object, number, string or atom, at character offset 0 (before "<?xml version="1.0" ...") at /usr/share/perl5/JSON/RPC/Legacy/Client.pm line 180.
' for task '0'
On opsi Server
[5] [Sep 20 00:11:13] Application 'JSON::RPC::Legacy::Client/1.06 beta libwww-perl/6.08' on client '10.69.192.190' did not send cookie (workers.py|183) [2] [Sep 20 00:11:13] Traceback: (Logger.py|757) [2] [Sep 20 00:11:13] File "/usr/lib/python2.7/dist-packages/OPSI/Service/Worker.py", line 292, in _errback failure.raiseException() (Logger.py|757) [2] [Sep 20 00:11:13] File "/usr/lib/python2.7/dist-packages/twisted/internet/defer.py", line 577, in _runCallbacks current.result = callback(current.result, *args, **kw) (Logger.py|757) [2] [Sep 20 00:11:13] File "/usr/lib/python2.7/dist-packages/opsiconfd/workers.py", line 191, in _getSession WorkerOpsi._getSession(self, result) (Logger.py|757) [2] [Sep 20 00:11:13] File "/usr/lib/python2.7/dist-packages/OPSI/Service/Worker.py", line 392, in _getSession sessionId = self._getSessionId() (Logger.py|757) [2] [Sep 20 00:11:13] File "/usr/lib/python2.7/dist-packages/opsiconfd/workers.py", line 550, in _getSessionId return WorkerOpsiconfd._getSessionId(self) (Logger.py|757) [2] [Sep 20 00:11:13] File "/usr/lib/python2.7/dist-packages/opsiconfd/workers.py", line 186, in _getSessionId raise OpsiAuthenticationError(u"Application '%s' on client '%s' did neither supply session id nor password" % (self._getUserAgent(), self.request.remoteAddr.host)) (Logger.py|757) [2] [Sep 20 00:11:13] ==>>> Opsi authentication error: Application 'JSON::RPC::Legacy::Client/1.06 beta libwww-perl/6.08' on client '10.69.192.190' did neither supply session id nor password (Worker.py|294) [5] [Sep 20 00:11:13] Application 'JSON::RPC::Legacy::Client/1.06 beta libwww-perl/6.08' on client '10.69.192.190' did not send cookie (workers.py|183) [5] [Sep 20 00:11:13] New session created (session.py|77) [5] [Sep 20 00:11:13] Authorization request from ws-opsi@10.69.192.190 (application: JSON::RPC::Legacy::Client/1.06 beta libwww-perl/6.08) (workers.py|213)
Reproduces how often: