{"action":"created","comment":{"url":"https://api.github.com/repos/lightblue-platform/lightblue-camel/pulls/comments/35763782","id":35763782,"diff_hunk":"@@ -21,21 +22,29 @@ public LightblueScheduledPollConsumer(LightblueScheduledPollEndpoint endpoint, P\n     @Override\n     protected int poll() throws Exception {\n         Exchange exchange = endpoint.createExchange();\n+        LightblueResponse response = null;\n \n-        // create a message body\n-        LightblueResponse response = endpoint.getLightblueClient().data(endpoint.getLightbluePollingRequest());\n-        exchange.getIn().setBody(response);\n+        try {\n+            response = endpoint.getLightblueClient().data(endpoint.getLightbluePollingRequest());\n+            if (response.hasError()) {\n+                throw new RuntimeException(response.getText());","path":"src/main/java/com/redhat/lightblue/camel/LightblueScheduledPollConsumer.java","position":20,"original_position":20,"commit_id":"fa462957147fe759a03f52c953785c20442352d7","original_commit_id":"fa462957147fe759a03f52c953785c20442352d7","user":{"login":"vritant","id":2501280,"avatar_url":"https://avatars.githubusercontent.com/u/2501280?v=3","gravatar_id":"","url":"https://api.github.com/users/vritant","html_url":"https://github.com/vritant","followers_url":"https://api.github.com/users/vritant/followers","following_url":"https://api.github.com/users/vritant/following{/other_user}","gists_url":"https://api.github.com/users/vritant/gists{/gist_id}","starred_url":"https://api.github.com/users/vritant/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/vritant/subscriptions","organizations_url":"https://api.github.com/users/vritant/orgs","repos_url":"https://api.github.com/users/vritant/repos","events_url":"https://api.github.com/users/vritant/events{/privacy}","received_events_url":"https://api.github.com/users/vritant/received_events","type":"User","site_admin":false},"body":"@dcrissman same reason.","created_at":"2015-07-29T14:21:51Z","updated_at":"2015-07-29T14:21:51Z","html_url":"https://github.com/lightblue-platform/lightblue-camel/pull/18#discussion_r35763782","pull_request_url":"https://api.github.com/repos/lightblue-platform/lightblue-camel/pulls/18","_links":{"self":{"href":"https://api.github.com/repos/lightblue-platform/lightblue-camel/pulls/comments/35763782"},"html":{"href":"https://github.com/lightblue-platform/lightblue-camel/pull/18#discussion_r35763782"},"pull_request":{"href":"https://api.github.com/repos/lightblue-platform/lightblue-camel/pulls/18"}}},"pull_request":{"url":"https://api.github.com/repos/lightblue-platform/lightblue-camel/pulls/18","id":41070441,"html_url":"https://github.com/lightblue-platform/lightblue-camel/pull/18","diff_url":"https://github.com/lightblue-platform/lightblue-camel/pull/18.diff","patch_url":"https://github.com/lightblue-platform/lightblue-camel/pull/18.patch","issue_url":"https://api.github.com/repos/lightblue-platform/lightblue-camel/issues/18","number":18,"state":"open","locked":false,"title":"merge LightblueErrorVerifier into producer/consumer","user":{"login":"vritant","id":2501280,"avatar_url":"https://avatars.githubusercontent.com/u/2501280?v=3","gravatar_id":"","url":"https://api.github.com/users/vritant","html_url":"https://github.com/vritant","followers_url":"https://api.github.com/users/vritant/followers","following_url":"https://api.github.com/users/vritant/following{/other_user}","gists_url":"https://api.github.com/users/vritant/gists{/gist_id}","starred_url":"https://api.github.com/users/vritant/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/vritant/subscriptions","organizations_url":"https://api.github.com/users/vritant/orgs","repos_url":"https://api.github.com/users/vritant/repos","events_url":"https://api.github.com/users/vritant/events{/privacy}","received_events_url":"https://api.github.com/users/vritant/received_events","type":"User","site_admin":false},"body":"","created_at":"2015-07-28T22:54:44Z","updated_at":"2015-07-29T14:21:51Z","closed_at":null,"merged_at":null,"merge_commit_sha":"3d3318930f904e5a2cfe6729a027704dcc264f9e","assignee":{"login":"dcrissman","id":1878960,"avatar_url":"https://avatars.githubusercontent.com/u/1878960?v=3","gravatar_id":"","url":"https://api.github.com/users/dcrissman","html_url":"https://github.com/dcrissman","followers_url":"https://api.github.com/users/dcrissman/followers","following_url":"https://api.github.com/users/dcrissman/following{/other_user}","gists_url":"https://api.github.com/users/dcrissman/gists{/gist_id}","starred_url":"https://api.github.com/users/dcrissman/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/dcrissman/subscriptions","organizations_url":"https://api.github.com/users/dcrissman/orgs","repos_url":"https://api.github.com/users/dcrissman/repos","events_url":"https://api.github.com/users/dcrissman/events{/privacy}","received_events_url":"https://api.github.com/users/dcrissman/received_events","type":"User","site_admin":false},"milestone":null,"commits_url":"https://api.github.com/repos/lightblue-platform/lightblue-camel/pulls/18/commits","review_comments_url":"https://api.github.com/repos/lightblue-platform/lightblue-camel/pulls/18/comments","review_comment_url":"https://api.github.com/repos/lightblue-platform/lightblue-camel/pulls/comments{/number}","comments_url":"https://api.github.com/repos/lightblue-platform/lightblue-camel/issues/18/comments","statuses_url":"https://api.github.com/repos/lightblue-platform/lightblue-camel/statuses/fa462957147fe759a03f52c953785c20442352d7","head":{"label":"vritant:master","ref":"master","sha":"fa462957147fe759a03f52c953785c20442352d7","user":{"login":"vritant","id":2501280,"avatar_url":"https://avatars.githubusercontent.com/u/2501280?v=3","gravatar_id":"","url":"https://api.github.com/users/vritant","html_url":"https://github.com/vritant","followers_url":"https://api.github.com/users/vritant/followers","following_url":"https://api.github.com/users/vritant/following{/other_user}","gists_url":"https://api.github.com/users/vritant/gists{/gist_id}","starred_url":"https://api.github.com/users/vritant/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/vritant/subscriptions","organizations_url":"https://api.github.com/users/vritant/orgs","repos_url":"https://api.github.com/users/vritant/repos","events_url":"https://api.github.com/users/vritant/events{/privacy}","received_events_url":"https://api.github.com/users/vritant/received_events","type":"User","site_admin":false},"repo":{"id":38436064,"name":"lightblue-camel","full_name":"vritant/lightblue-camel","owner":{"login":"vritant","id":2501280,"avatar_url":"https://avatars.githubusercontent.com/u/2501280?v=3","gravatar_id":"","url":"https://api.github.com/users/vritant","html_url":"https://github.com/vritant","followers_url":"https://api.github.com/users/vritant/followers","following_url":"https://api.github.com/users/vritant/following{/other_user}","gists_url":"https://api.github.com/users/vritant/gists{/gist_id}","starred_url":"https://api.github.com/users/vritant/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/vritant/subscriptions","organizations_url":"https://api.github.com/users/vritant/orgs","repos_url":"https://api.github.com/users/vritant/repos","events_url":"https://api.github.com/users/vritant/events{/privacy}","received_events_url":"https://api.github.com/users/vritant/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/vritant/lightblue-camel","description":"","fork":true,"url":"https://api.github.com/repos/vritant/lightblue-camel","forks_url":"https://api.github.com/repos/vritant/lightblue-camel/forks","keys_url":"https://api.github.com/repos/vritant/lightblue-camel/keys{/key_id}","collaborators_url":"https://api.github.com/repos/vritant/lightblue-camel/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/vritant/lightblue-camel/teams","hooks_url":"https://api.github.com/repos/vritant/lightblue-camel/hooks","issue_events_url":"https://api.github.com/repos/vritant/lightblue-camel/issues/events{/number}","events_url":"https://api.github.com/repos/vritant/lightblue-camel/events","assignees_url":"https://api.github.com/repos/vritant/lightblue-camel/assignees{/user}","branches_url":"https://api.github.com/repos/vritant/lightblue-camel/branches{/branch}","tags_url":"https://api.github.com/repos/vritant/lightblue-camel/tags","blobs_url":"https://api.github.com/repos/vritant/lightblue-camel/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/vritant/lightblue-camel/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/vritant/lightblue-camel/git/refs{/sha}","trees_url":"https://api.github.com/repos/vritant/lightblue-camel/git/trees{/sha}","statuses_url":"https://api.github.com/repos/vritant/lightblue-camel/statuses/{sha}","languages_url":"https://api.github.com/repos/vritant/lightblue-camel/languages","stargazers_url":"https://api.github.com/repos/vritant/lightblue-camel/stargazers","contributors_url":"https://api.github.com/repos/vritant/lightblue-camel/contributors","subscribers_url":"https://api.github.com/repos/vritant/lightblue-camel/subscribers","subscription_url":"https://api.github.com/repos/vritant/lightblue-camel/subscription","commits_url":"https://api.github.com/repos/vritant/lightblue-camel/commits{/sha}","git_commits_url":"https://api.github.com/repos/vritant/lightblue-camel/git/commits{/sha}","comments_url":"https://api.github.com/repos/vritant/lightblue-camel/comments{/number}","issue_comment_url":"https://api.github.com/repos/vritant/lightblue-camel/issues/comments{/number}","contents_url":"https://api.github.com/repos/vritant/lightblue-camel/contents/{+path}","compare_url":"https://api.github.com/repos/vritant/lightblue-camel/compare/{base}...{head}","merges_url":"https://api.github.com/repos/vritant/lightblue-camel/merges","archive_url":"https://api.github.com/repos/vritant/lightblue-camel/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/vritant/lightblue-camel/downloads","issues_url":"https://api.github.com/repos/vritant/lightblue-camel/issues{/number}","pulls_url":"https://api.github.com/repos/vritant/lightblue-camel/pulls{/number}","milestones_url":"https://api.github.com/repos/vritant/lightblue-camel/milestones{/number}","notifications_url":"https://api.github.com/repos/vritant/lightblue-camel/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/vritant/lightblue-camel/labels{/name}","releases_url":"https://api.github.com/repos/vritant/lightblue-camel/releases{/id}","created_at":"2015-07-02T14:02:50Z","updated_at":"2015-07-02T14:02:50Z","pushed_at":"2015-07-28T22:53:51Z","git_url":"git://github.com/vritant/lightblue-camel.git","ssh_url":"git@github.com:vritant/lightblue-camel.git","clone_url":"https://github.com/vritant/lightblue-camel.git","svn_url":"https://github.com/vritant/lightblue-camel","homepage":null,"size":185,"stargazers_count":0,"watchers_count":0,"language":"Java","has_issues":false,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":0,"forks":0,"open_issues":0,"watchers":0,"default_branch":"master"}},"base":{"label":"lightblue-platform:master","ref":"master","sha":"0f12ddde9611205ca102e72e43223f618f3b1f3f","user":{"login":"lightblue-platform","id":7061725,"avatar_url":"https://avatars.githubusercontent.com/u/7061725?v=3","gravatar_id":"","url":"https://api.github.com/users/lightblue-platform","html_url":"https://github.com/lightblue-platform","followers_url":"https://api.github.com/users/lightblue-platform/followers","following_url":"https://api.github.com/users/lightblue-platform/following{/other_user}","gists_url":"https://api.github.com/users/lightblue-platform/gists{/gist_id}","starred_url":"https://api.github.com/users/lightblue-platform/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/lightblue-platform/subscriptions","organizations_url":"https://api.github.com/users/lightblue-platform/orgs","repos_url":"https://api.github.com/users/lightblue-platform/repos","events_url":"https://api.github.com/users/lightblue-platform/events{/privacy}","received_events_url":"https://api.github.com/users/lightblue-platform/received_events","type":"Organization","site_admin":false},"repo":{"id":37941166,"name":"lightblue-camel","full_name":"lightblue-platform/lightblue-camel","owner":{"login":"lightblue-platform","id":7061725,"avatar_url":"https://avatars.githubusercontent.com/u/7061725?v=3","gravatar_id":"","url":"https://api.github.com/users/lightblue-platform","html_url":"https://github.com/lightblue-platform","followers_url":"https://api.github.com/users/lightblue-platform/followers","following_url":"https://api.github.com/users/lightblue-platform/following{/other_user}","gists_url":"https://api.github.com/users/lightblue-platform/gists{/gist_id}","starred_url":"https://api.github.com/users/lightblue-platform/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/lightblue-platform/subscriptions","organizations_url":"https://api.github.com/users/lightblue-platform/orgs","repos_url":"https://api.github.com/users/lightblue-platform/repos","events_url":"https://api.github.com/users/lightblue-platform/events{/privacy}","received_events_url":"https://api.github.com/users/lightblue-platform/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/lightblue-platform/lightblue-camel","description":"","fork":false,"url":"https://api.github.com/repos/lightblue-platform/lightblue-camel","forks_url":"https://api.github.com/repos/lightblue-platform/lightblue-camel/forks","keys_url":"https://api.github.com/repos/lightblue-platform/lightblue-camel/keys{/key_id}","collaborators_url":"https://api.github.com/repos/lightblue-platform/lightblue-camel/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/lightblue-platform/lightblue-camel/teams","hooks_url":"https://api.github.com/repos/lightblue-platform/lightblue-camel/hooks","issue_events_url":"https://api.github.com/repos/lightblue-platform/lightblue-camel/issues/events{/number}","events_url":"https://api.github.com/repos/lightblue-platform/lightblue-camel/events","assignees_url":"https://api.github.com/repos/lightblue-platform/lightblue-camel/assignees{/user}","branches_url":"https://api.github.com/repos/lightblue-platform/lightblue-camel/branches{/branch}","tags_url":"https://api.github.com/repos/lightblue-platform/lightblue-camel/tags","blobs_url":"https://api.github.com/repos/lightblue-platform/lightblue-camel/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/lightblue-platform/lightblue-camel/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/lightblue-platform/lightblue-camel/git/refs{/sha}","trees_url":"https://api.github.com/repos/lightblue-platform/lightblue-camel/git/trees{/sha}","statuses_url":"https://api.github.com/repos/lightblue-platform/lightblue-camel/statuses/{sha}","languages_url":"https://api.github.com/repos/lightblue-platform/lightblue-camel/languages","stargazers_url":"https://api.github.com/repos/lightblue-platform/lightblue-camel/stargazers","contributors_url":"https://api.github.com/repos/lightblue-platform/lightblue-camel/contributors","subscribers_url":"https://api.github.com/repos/lightblue-platform/lightblue-camel/subscribers","subscription_url":"https://api.github.com/repos/lightblue-platform/lightblue-camel/subscription","commits_url":"https://api.github.com/repos/lightblue-platform/lightblue-camel/commits{/sha}","git_commits_url":"https://api.github.com/repos/lightblue-platform/lightblue-camel/git/commits{/sha}","comments_url":"https://api.github.com/repos/lightblue-platform/lightblue-camel/comments{/number}","issue_comment_url":"https://api.github.com/repos/lightblue-platform/lightblue-camel/issues/comments{/number}","contents_url":"https://api.github.com/repos/lightblue-platform/lightblue-camel/contents/{+path}","compare_url":"https://api.github.com/repos/lightblue-platform/lightblue-camel/compare/{base}...{head}","merges_url":"https://api.github.com/repos/lightblue-platform/lightblue-camel/merges","archive_url":"https://api.github.com/repos/lightblue-platform/lightblue-camel/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/lightblue-platform/lightblue-camel/downloads","issues_url":"https://api.github.com/repos/lightblue-platform/lightblue-camel/issues{/number}","pulls_url":"https://api.github.com/repos/lightblue-platform/lightblue-camel/pulls{/number}","milestones_url":"https://api.github.com/repos/lightblue-platform/lightblue-camel/milestones{/number}","notifications_url":"https://api.github.com/repos/lightblue-platform/lightblue-camel/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/lightblue-platform/lightblue-camel/labels{/name}","releases_url":"https://api.github.com/repos/lightblue-platform/lightblue-camel/releases{/id}","created_at":"2015-06-23T19:49:02Z","updated_at":"2015-06-23T19:49:36Z","pushed_at":"2015-07-28T22:54:45Z","git_url":"git://github.com/lightblue-platform/lightblue-camel.git","ssh_url":"git@github.com:lightblue-platform/lightblue-camel.git","clone_url":"https://github.com/lightblue-platform/lightblue-camel.git","svn_url":"https://github.com/lightblue-platform/lightblue-camel","homepage":null,"size":422,"stargazers_count":0,"watchers_count":0,"language":"Java","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":5,"mirror_url":null,"open_issues_count":3,"forks":5,"open_issues":3,"watchers":0,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/lightblue-platform/lightblue-camel/pulls/18"},"html":{"href":"https://github.com/lightblue-platform/lightblue-camel/pull/18"},"issue":{"href":"https://api.github.com/repos/lightblue-platform/lightblue-camel/issues/18"},"comments":{"href":"https://api.github.com/repos/lightblue-platform/lightblue-camel/issues/18/comments"},"review_comments":{"href":"https://api.github.com/repos/lightblue-platform/lightblue-camel/pulls/18/comments"},"review_comment":{"href":"https://api.github.com/repos/lightblue-platform/lightblue-camel/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/lightblue-platform/lightblue-camel/pulls/18/commits"},"statuses":{"href":"https://api.github.com/repos/lightblue-platform/lightblue-camel/statuses/fa462957147fe759a03f52c953785c20442352d7"}}}}