-
Incident report
-
Resolution: Duplicate
-
Major
-
None
-
2.0.0
-
None
-
Ubuntu 12.04
There is no way to logout with JSON API.
##Attempt 1
##Request
##Response
{"jsonrpc":"2.0","error":
,"id":9}
##Attempt 2
##Request
##Response
{"jsonrpc":"2.0","error":{"code":-32602,"message":"Invalid params.","data":"Cannot logout.","debug":[
,
{"function":"logout","class":"CUser","type":"->","args":[["f463f3fc908972b66c0662b47363b1da"]]},{"file":"\/usr\/share\/zabbix\/api\/rpc\/class.czbxrpc.php","line":106,"function":"call_user_func","args":[[{},"logout"],["f463f3fc908972b66c0662b47363b1da"]]},
{"file":"\/usr\/share\/zabbix\/api\/rpc\/class.czbxrpc.php","line":64,"function":"callAPI","class":"czbxrpc","type":"::","args":["user.logout",["f463f3fc908972b66c0662b47363b1da"]]},
{"file":"\/usr\/share\/zabbix\/api\/rpc\/class.cjsonrpc.php","line":66,"function":"call","class":"czbxrpc","type":"::","args":["user.logout",["f463f3fc908972b66c0662b47363b1da"],"f463f3fc908972b66c0662b47363b1da"]},
{"file":"\/usr\/share\/zabbix\/api_jsonrpc.php","line":54,"function":"execute","class":"CJSONrpc","type":"->","args":[]}]},"id":8}
- duplicates
-
ZBX-3907 Logout API operation doesn't work
- Closed