{"action":"created","issue":{"url":"https://api.github.com/repos/evercam/evercam-discovery-java/issues/29","labels_url":"https://api.github.com/repos/evercam/evercam-discovery-java/issues/29/labels{/name}","comments_url":"https://api.github.com/repos/evercam/evercam-discovery-java/issues/29/comments","events_url":"https://api.github.com/repos/evercam/evercam-discovery-java/issues/29/events","html_url":"https://github.com/evercam/evercam-discovery-java/issues/29","id":104377984,"number":29,"title":"Runnable should return empty JSON cameras object if no cameras found","user":{"login":"scandox","id":5648857,"avatar_url":"https://avatars.githubusercontent.com/u/5648857?v=3","gravatar_id":"","url":"https://api.github.com/users/scandox","html_url":"https://github.com/scandox","followers_url":"https://api.github.com/users/scandox/followers","following_url":"https://api.github.com/users/scandox/following{/other_user}","gists_url":"https://api.github.com/users/scandox/gists{/gist_id}","starred_url":"https://api.github.com/users/scandox/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/scandox/subscriptions","organizations_url":"https://api.github.com/users/scandox/orgs","repos_url":"https://api.github.com/users/scandox/repos","events_url":"https://api.github.com/users/scandox/events{/privacy}","received_events_url":"https://api.github.com/users/scandox/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/evercam/evercam-discovery-java/labels/bug","name":"bug","color":"fc2929"}],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":1,"created_at":"2015-09-02T00:02:15Z","updated_at":"2015-09-02T14:48:11Z","closed_at":null,"body":"At present the runnable discovery returns nothing at all if no cameras are discovered. Instead it should return:\r\n\r\n     {\"cameras\": [ ] }\r\n\r\nThat way we know nothing went wrong. Just no cameras. "},"comment":{"url":"https://api.github.com/repos/evercam/evercam-discovery-java/issues/comments/137109628","html_url":"https://github.com/evercam/evercam-discovery-java/issues/29#issuecomment-137109628","issue_url":"https://api.github.com/repos/evercam/evercam-discovery-java/issues/29","id":137109628,"user":{"login":"liutingdu","id":5046761,"avatar_url":"https://avatars.githubusercontent.com/u/5046761?v=3","gravatar_id":"","url":"https://api.github.com/users/liutingdu","html_url":"https://github.com/liutingdu","followers_url":"https://api.github.com/users/liutingdu/followers","following_url":"https://api.github.com/users/liutingdu/following{/other_user}","gists_url":"https://api.github.com/users/liutingdu/gists{/gist_id}","starred_url":"https://api.github.com/users/liutingdu/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/liutingdu/subscriptions","organizations_url":"https://api.github.com/users/liutingdu/orgs","repos_url":"https://api.github.com/users/liutingdu/repos","events_url":"https://api.github.com/users/liutingdu/events{/privacy}","received_events_url":"https://api.github.com/users/liutingdu/received_events","type":"User","site_admin":false},"created_at":"2015-09-02T14:48:11Z","updated_at":"2015-09-02T14:48:11Z","body":"@scandox \r\n\r\nI just added the empty camera json array if no cameras are discovered.\r\n\r\nBut before the fix, if no cameras are discovered the behaviour should be print nothing with ```On normal completion: 0```.  You mentioned that you got ```On error: 1``` in the end, it means unexpected error/exception happened during discovery. \r\n\r\nSo if you are seeing  ```On error: 1```, could you please send me the verbose log? It should contains the exception trace."}}