- Used Zammad version: 2.8
- Used Zammad installation source: debian package
- Operating system: debian 9
- Browser + version: any
Expected behavior:
- i-doit integration should work perfectly
- i-doit objects should be accessible
Actual behavior:
- on saving i-doit integration settings, I receive the error message " Can’t fetch objects from http://idoit-hostname/src/jsonrpc.php: #<JSON::ParserError: 765: unexpected token at ‘’> "
- on trying to select i-doit objects in zammad I receive “Can’t fetch objects from http://idoit-hostname/src/jsonrpc.php: #”
Steps to reproduce the behavior:
- save i-doit integration settings
- try to fetch i-doit objects
error messages in i-doit log:
[2018-12-17 18:38:15 704429] INFO: -------------------------------------------------------------
[2018-12-17 18:38:15 704858] DEBUG: i-doit JSON-RPC API v1.10 - i-doit 1.12 PRO
[2018-12-17 18:38:15 705173] DEBUG: Provided raw request:
{
“method”: “cmdb.object_types”,
“params”: {
“apikey”: “myapikey”
},
“version”: “2.0”
}
[2018-12-17 18:38:15 705311] INFO: 1 request(s) to proceed.
[2018-12-17 18:38:15 705465] INFO: Processing request 1/1:
{
“method”: “cmdb.object_types”,
“params”: {
“apikey”: “myapikey”
},
“version”: “2.0”
}
[2018-12-17 18:38:15 705586] DEBUG:
{
“method”: “cmdb.object_types”,
“params”: {
“apikey”: “myapikey”
},
“version”: “2.0”
}
[2018-12-17 18:38:15 705722] WARNING: Request is an notification - aborting.
[2018-12-17 18:38:15 706079] INFO: [METRICS] Request time: 1 request(s) took 0.00056791305541992s.
[2018-12-17 18:38:15 706198] INFO: [METRICS] Requests per second: 1760.8329135181s.
[2018-12-17 18:38:15 706309] INFO: [METRICS] Indexing time: 0s.
[2018-12-17 18:38:15 706436] INFO: [METRICS] Total time: 0.00056791305541992s.
production.log outputs:
I, [2018-12-17T18:51:41.338299 #15919-47199067156320] INFO – : Running job thread for ‘Execute jobs’ (Job.run) status is: sleep
I, [2018-12-17T18:51:53.658235 #15914-70226782645100] INFO – : Started POST “/api/v1/integration/idoit/verify” for 127.0.0.1 at 2018-12-17 18:51:53 +0100
I, [2018-12-17T18:51:53.662902 #15914-70226782645100] INFO – : Processing by Integration::IdoitController#verify as JSON
I, [2018-12-17T18:51:53.662968 #15914-70226782645100] INFO – : Parameters: {“method”=>“cmdb.object_types”, “api_token”=>“myapitoken”, “endpoint”=>“http://idoithostname”, “client_id”=>""}
I, [2018-12-17T18:51:54.244719 #15914-70226743877220] INFO – : Started GET “/api/v1/http_logs/idoit?limit=50&=1545068948713" for 127.0.0.1 at 2018-12-17 18:51:54 +0100
I, [2018-12-17T18:51:54.248869 #15914-70226743877220] INFO – : Processing by HttpLogsController#index as JSON
I, [2018-12-17T18:51:54.248941 #15914-70226743877220] INFO – : Parameters: {“limit”=>“50”, "”=>“1545068948713”, “facility”=>“idoit”}
I, [2018-12-17T18:51:54.398732 #15914-70226782645580] INFO – : Started PUT “/api/v1/taskbar/37” for 127.0.0.1 at 2018-12-17 18:51:54 +0100
I, [2018-12-17T18:51:54.401467 #15914-70226743877220] INFO – : Completed 200 OK in 152ms (Views: 142.0ms | ActiveRecord: 4.9ms)
I, [2018-12-17T18:51:54.404938 #15914-70226782645580] INFO – : Processing by TaskbarController#update as JSON
I, [2018-12-17T18:51:54.406660 #15914-70226782645580] INFO – : Parameters: {“key”=>“Ticket-6”, “client_id”=>“123”, “callback”=>“TicketZoom”, “state”=>{“ticket”=>{}, “article”=>{“form_id”=>“069024360”}}, “params”=>{“ticket_id”=>6, “overview_id”=>12, “shown”=>true}, “prio”=>2, “notify”=>false, “active”=>false, “attachments”=>[], “updated_at”=>“2018-12-17T17:49:38.262Z”, “id”=>“37”}
I, [2018-12-17T18:51:54.447958 #15914-70226782645580] INFO – : Completed 200 OK in 41ms (Views: 0.5ms | ActiveRecord: 5.2ms)
E, [2018-12-17T18:51:58.707299 #15914-70226782645100] ERROR – : Can’t fetch objects from http://idoithostname/src/jsonrpc.php: #<JSON::ParserError: 765: unexpected token at ‘’> (RuntimeError)
/opt/zammad/lib/idoit.rb:124:in _query' /opt/zammad/lib/idoit.rb:25:in
verify’
Settings in zammad are quite simple:
API Token is (not really) myapitoken
Endpoint is http://idoithostname
have tried it with http://idoithostname/src/jsonrpc.php as well, same error
Settings in i-doit as well:
API-Key is (not really) myapitoken
“Activate JSON-RPC API” is active
“Enforce authentication by username and password” is inactive
what am I doing wrong?
Thanks
Babak