{"action":"created","comment":{"url":"https://api.github.com/repos/botify-labs/botify-sdk-js-middlewares/pulls/comments/44282650","id":44282650,"diff_hunk":"@@ -94,7 +95,7 @@ class Queue {\n             return callback(error);\n           }\n           if (!result) {\n-            return callback(apiErrorObject('API returned an empty body'));\n+            return callback(apiErrorObject({message: 'API returned an empty body'}));","path":"src/middlewares/batchMiddleware.js","position":20,"original_position":20,"commit_id":"65a1706b7e6005e3f08e0888fd4ccec217071e3c","original_commit_id":"65a1706b7e6005e3f08e0888fd4ccec217071e3c","user":{"login":"zallek","id":1886834,"avatar_url":"https://avatars.githubusercontent.com/u/1886834?v=3","gravatar_id":"","url":"https://api.github.com/users/zallek","html_url":"https://github.com/zallek","followers_url":"https://api.github.com/users/zallek/followers","following_url":"https://api.github.com/users/zallek/following{/other_user}","gists_url":"https://api.github.com/users/zallek/gists{/gist_id}","starred_url":"https://api.github.com/users/zallek/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/zallek/subscriptions","organizations_url":"https://api.github.com/users/zallek/orgs","repos_url":"https://api.github.com/users/zallek/repos","events_url":"https://api.github.com/users/zallek/events{/privacy}","received_events_url":"https://api.github.com/users/zallek/received_events","type":"User","site_admin":false},"body":"also used bellow","created_at":"2015-11-09T14:52:44Z","updated_at":"2015-11-09T14:52:44Z","html_url":"https://github.com/botify-labs/botify-sdk-js-middlewares/pull/20#discussion_r44282650","pull_request_url":"https://api.github.com/repos/botify-labs/botify-sdk-js-middlewares/pulls/20","_links":{"self":{"href":"https://api.github.com/repos/botify-labs/botify-sdk-js-middlewares/pulls/comments/44282650"},"html":{"href":"https://github.com/botify-labs/botify-sdk-js-middlewares/pull/20#discussion_r44282650"},"pull_request":{"href":"https://api.github.com/repos/botify-labs/botify-sdk-js-middlewares/pulls/20"}}},"pull_request":{"url":"https://api.github.com/repos/botify-labs/botify-sdk-js-middlewares/pulls/20","id":50130352,"html_url":"https://github.com/botify-labs/botify-sdk-js-middlewares/pull/20","diff_url":"https://github.com/botify-labs/botify-sdk-js-middlewares/pull/20.diff","patch_url":"https://github.com/botify-labs/botify-sdk-js-middlewares/pull/20.patch","issue_url":"https://api.github.com/repos/botify-labs/botify-sdk-js-middlewares/issues/20","number":20,"state":"open","locked":false,"title":"feature/change-api-error-signature/#16","user":{"login":"Uhsac","id":6172122,"avatar_url":"https://avatars.githubusercontent.com/u/6172122?v=3","gravatar_id":"","url":"https://api.github.com/users/Uhsac","html_url":"https://github.com/Uhsac","followers_url":"https://api.github.com/users/Uhsac/followers","following_url":"https://api.github.com/users/Uhsac/following{/other_user}","gists_url":"https://api.github.com/users/Uhsac/gists{/gist_id}","starred_url":"https://api.github.com/users/Uhsac/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Uhsac/subscriptions","organizations_url":"https://api.github.com/users/Uhsac/orgs","repos_url":"https://api.github.com/users/Uhsac/repos","events_url":"https://api.github.com/users/Uhsac/events{/privacy}","received_events_url":"https://api.github.com/users/Uhsac/received_events","type":"User","site_admin":false},"body":"#16","created_at":"2015-11-09T14:46:58Z","updated_at":"2015-11-09T14:52:44Z","closed_at":null,"merged_at":null,"merge_commit_sha":"2b14933d8d9e7c871309d9a91e374eb8f78b61b4","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/botify-labs/botify-sdk-js-middlewares/pulls/20/commits","review_comments_url":"https://api.github.com/repos/botify-labs/botify-sdk-js-middlewares/pulls/20/comments","review_comment_url":"https://api.github.com/repos/botify-labs/botify-sdk-js-middlewares/pulls/comments{/number}","comments_url":"https://api.github.com/repos/botify-labs/botify-sdk-js-middlewares/issues/20/comments","statuses_url":"https://api.github.com/repos/botify-labs/botify-sdk-js-middlewares/statuses/65a1706b7e6005e3f08e0888fd4ccec217071e3c","head":{"label":"botify-labs:feature/change-api-error-signature/#16","ref":"feature/change-api-error-signature/#16","sha":"65a1706b7e6005e3f08e0888fd4ccec217071e3c","user":{"login":"botify-labs","id":2925517,"avatar_url":"https://avatars.githubusercontent.com/u/2925517?v=3","gravatar_id":"","url":"https://api.github.com/users/botify-labs","html_url":"https://github.com/botify-labs","followers_url":"https://api.github.com/users/botify-labs/followers","following_url":"https://api.github.com/users/botify-labs/following{/other_user}","gists_url":"https://api.github.com/users/botify-labs/gists{/gist_id}","starred_url":"https://api.github.com/users/botify-labs/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/botify-labs/subscriptions","organizations_url":"https://api.github.com/users/botify-labs/orgs","repos_url":"https://api.github.com/users/botify-labs/repos","events_url":"https://api.github.com/users/botify-labs/events{/privacy}","received_events_url":"https://api.github.com/users/botify-labs/received_events","type":"Organization","site_admin":false},"repo":{"id":43750819,"name":"botify-sdk-js-middlewares","full_name":"botify-labs/botify-sdk-js-middlewares","owner":{"login":"botify-labs","id":2925517,"avatar_url":"https://avatars.githubusercontent.com/u/2925517?v=3","gravatar_id":"","url":"https://api.github.com/users/botify-labs","html_url":"https://github.com/botify-labs","followers_url":"https://api.github.com/users/botify-labs/followers","following_url":"https://api.github.com/users/botify-labs/following{/other_user}","gists_url":"https://api.github.com/users/botify-labs/gists{/gist_id}","starred_url":"https://api.github.com/users/botify-labs/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/botify-labs/subscriptions","organizations_url":"https://api.github.com/users/botify-labs/orgs","repos_url":"https://api.github.com/users/botify-labs/repos","events_url":"https://api.github.com/users/botify-labs/events{/privacy}","received_events_url":"https://api.github.com/users/botify-labs/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/botify-labs/botify-sdk-js-middlewares","description":"","fork":false,"url":"https://api.github.com/repos/botify-labs/botify-sdk-js-middlewares","forks_url":"https://api.github.com/repos/botify-labs/botify-sdk-js-middlewares/forks","keys_url":"https://api.github.com/repos/botify-labs/botify-sdk-js-middlewares/keys{/key_id}","collaborators_url":"https://api.github.com/repos/botify-labs/botify-sdk-js-middlewares/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/botify-labs/botify-sdk-js-middlewares/teams","hooks_url":"https://api.github.com/repos/botify-labs/botify-sdk-js-middlewares/hooks","issue_events_url":"https://api.github.com/repos/botify-labs/botify-sdk-js-middlewares/issues/events{/number}","events_url":"https://api.github.com/repos/botify-labs/botify-sdk-js-middlewares/events","assignees_url":"https://api.github.com/repos/botify-labs/botify-sdk-js-middlewares/assignees{/user}","branches_url":"https://api.github.com/repos/botify-labs/botify-sdk-js-middlewares/branches{/branch}","tags_url":"https://api.github.com/repos/botify-labs/botify-sdk-js-middlewares/tags","blobs_url":"https://api.github.com/repos/botify-labs/botify-sdk-js-middlewares/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/botify-labs/botify-sdk-js-middlewares/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/botify-labs/botify-sdk-js-middlewares/git/refs{/sha}","trees_url":"https://api.github.com/repos/botify-labs/botify-sdk-js-middlewares/git/trees{/sha}","statuses_url":"https://api.github.com/repos/botify-labs/botify-sdk-js-middlewares/statuses/{sha}","languages_url":"https://api.github.com/repos/botify-labs/botify-sdk-js-middlewares/languages","stargazers_url":"https://api.github.com/repos/botify-labs/botify-sdk-js-middlewares/stargazers","contributors_url":"https://api.github.com/repos/botify-labs/botify-sdk-js-middlewares/contributors","subscribers_url":"https://api.github.com/repos/botify-labs/botify-sdk-js-middlewares/subscribers","subscription_url":"https://api.github.com/repos/botify-labs/botify-sdk-js-middlewares/subscription","commits_url":"https://api.github.com/repos/botify-labs/botify-sdk-js-middlewares/commits{/sha}","git_commits_url":"https://api.github.com/repos/botify-labs/botify-sdk-js-middlewares/git/commits{/sha}","comments_url":"https://api.github.com/repos/botify-labs/botify-sdk-js-middlewares/comments{/number}","issue_comment_url":"https://api.github.com/repos/botify-labs/botify-sdk-js-middlewares/issues/comments{/number}","contents_url":"https://api.github.com/repos/botify-labs/botify-sdk-js-middlewares/contents/{+path}","compare_url":"https://api.github.com/repos/botify-labs/botify-sdk-js-middlewares/compare/{base}...{head}","merges_url":"https://api.github.com/repos/botify-labs/botify-sdk-js-middlewares/merges","archive_url":"https://api.github.com/repos/botify-labs/botify-sdk-js-middlewares/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/botify-labs/botify-sdk-js-middlewares/downloads","issues_url":"https://api.github.com/repos/botify-labs/botify-sdk-js-middlewares/issues{/number}","pulls_url":"https://api.github.com/repos/botify-labs/botify-sdk-js-middlewares/pulls{/number}","milestones_url":"https://api.github.com/repos/botify-labs/botify-sdk-js-middlewares/milestones{/number}","notifications_url":"https://api.github.com/repos/botify-labs/botify-sdk-js-middlewares/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/botify-labs/botify-sdk-js-middlewares/labels{/name}","releases_url":"https://api.github.com/repos/botify-labs/botify-sdk-js-middlewares/releases{/id}","created_at":"2015-10-06T13:00:30Z","updated_at":"2015-10-09T21:14:10Z","pushed_at":"2015-11-09T14:46:58Z","git_url":"git://github.com/botify-labs/botify-sdk-js-middlewares.git","ssh_url":"git@github.com:botify-labs/botify-sdk-js-middlewares.git","clone_url":"https://github.com/botify-labs/botify-sdk-js-middlewares.git","svn_url":"https://github.com/botify-labs/botify-sdk-js-middlewares","homepage":null,"size":516,"stargazers_count":1,"watchers_count":1,"language":"JavaScript","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":8,"forks":0,"open_issues":8,"watchers":1,"default_branch":"master"}},"base":{"label":"botify-labs:master","ref":"master","sha":"57d5ef9d174f7030faad461926dfb20754f2ad27","user":{"login":"botify-labs","id":2925517,"avatar_url":"https://avatars.githubusercontent.com/u/2925517?v=3","gravatar_id":"","url":"https://api.github.com/users/botify-labs","html_url":"https://github.com/botify-labs","followers_url":"https://api.github.com/users/botify-labs/followers","following_url":"https://api.github.com/users/botify-labs/following{/other_user}","gists_url":"https://api.github.com/users/botify-labs/gists{/gist_id}","starred_url":"https://api.github.com/users/botify-labs/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/botify-labs/subscriptions","organizations_url":"https://api.github.com/users/botify-labs/orgs","repos_url":"https://api.github.com/users/botify-labs/repos","events_url":"https://api.github.com/users/botify-labs/events{/privacy}","received_events_url":"https://api.github.com/users/botify-labs/received_events","type":"Organization","site_admin":false},"repo":{"id":43750819,"name":"botify-sdk-js-middlewares","full_name":"botify-labs/botify-sdk-js-middlewares","owner":{"login":"botify-labs","id":2925517,"avatar_url":"https://avatars.githubusercontent.com/u/2925517?v=3","gravatar_id":"","url":"https://api.github.com/users/botify-labs","html_url":"https://github.com/botify-labs","followers_url":"https://api.github.com/users/botify-labs/followers","following_url":"https://api.github.com/users/botify-labs/following{/other_user}","gists_url":"https://api.github.com/users/botify-labs/gists{/gist_id}","starred_url":"https://api.github.com/users/botify-labs/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/botify-labs/subscriptions","organizations_url":"https://api.github.com/users/botify-labs/orgs","repos_url":"https://api.github.com/users/botify-labs/repos","events_url":"https://api.github.com/users/botify-labs/events{/privacy}","received_events_url":"https://api.github.com/users/botify-labs/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/botify-labs/botify-sdk-js-middlewares","description":"","fork":false,"url":"https://api.github.com/repos/botify-labs/botify-sdk-js-middlewares","forks_url":"https://api.github.com/repos/botify-labs/botify-sdk-js-middlewares/forks","keys_url":"https://api.github.com/repos/botify-labs/botify-sdk-js-middlewares/keys{/key_id}","collaborators_url":"https://api.github.com/repos/botify-labs/botify-sdk-js-middlewares/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/botify-labs/botify-sdk-js-middlewares/teams","hooks_url":"https://api.github.com/repos/botify-labs/botify-sdk-js-middlewares/hooks","issue_events_url":"https://api.github.com/repos/botify-labs/botify-sdk-js-middlewares/issues/events{/number}","events_url":"https://api.github.com/repos/botify-labs/botify-sdk-js-middlewares/events","assignees_url":"https://api.github.com/repos/botify-labs/botify-sdk-js-middlewares/assignees{/user}","branches_url":"https://api.github.com/repos/botify-labs/botify-sdk-js-middlewares/branches{/branch}","tags_url":"https://api.github.com/repos/botify-labs/botify-sdk-js-middlewares/tags","blobs_url":"https://api.github.com/repos/botify-labs/botify-sdk-js-middlewares/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/botify-labs/botify-sdk-js-middlewares/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/botify-labs/botify-sdk-js-middlewares/git/refs{/sha}","trees_url":"https://api.github.com/repos/botify-labs/botify-sdk-js-middlewares/git/trees{/sha}","statuses_url":"https://api.github.com/repos/botify-labs/botify-sdk-js-middlewares/statuses/{sha}","languages_url":"https://api.github.com/repos/botify-labs/botify-sdk-js-middlewares/languages","stargazers_url":"https://api.github.com/repos/botify-labs/botify-sdk-js-middlewares/stargazers","contributors_url":"https://api.github.com/repos/botify-labs/botify-sdk-js-middlewares/contributors","subscribers_url":"https://api.github.com/repos/botify-labs/botify-sdk-js-middlewares/subscribers","subscription_url":"https://api.github.com/repos/botify-labs/botify-sdk-js-middlewares/subscription","commits_url":"https://api.github.com/repos/botify-labs/botify-sdk-js-middlewares/commits{/sha}","git_commits_url":"https://api.github.com/repos/botify-labs/botify-sdk-js-middlewares/git/commits{/sha}","comments_url":"https://api.github.com/repos/botify-labs/botify-sdk-js-middlewares/comments{/number}","issue_comment_url":"https://api.github.com/repos/botify-labs/botify-sdk-js-middlewares/issues/comments{/number}","contents_url":"https://api.github.com/repos/botify-labs/botify-sdk-js-middlewares/contents/{+path}","compare_url":"https://api.github.com/repos/botify-labs/botify-sdk-js-middlewares/compare/{base}...{head}","merges_url":"https://api.github.com/repos/botify-labs/botify-sdk-js-middlewares/merges","archive_url":"https://api.github.com/repos/botify-labs/botify-sdk-js-middlewares/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/botify-labs/botify-sdk-js-middlewares/downloads","issues_url":"https://api.github.com/repos/botify-labs/botify-sdk-js-middlewares/issues{/number}","pulls_url":"https://api.github.com/repos/botify-labs/botify-sdk-js-middlewares/pulls{/number}","milestones_url":"https://api.github.com/repos/botify-labs/botify-sdk-js-middlewares/milestones{/number}","notifications_url":"https://api.github.com/repos/botify-labs/botify-sdk-js-middlewares/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/botify-labs/botify-sdk-js-middlewares/labels{/name}","releases_url":"https://api.github.com/repos/botify-labs/botify-sdk-js-middlewares/releases{/id}","created_at":"2015-10-06T13:00:30Z","updated_at":"2015-10-09T21:14:10Z","pushed_at":"2015-11-09T14:46:58Z","git_url":"git://github.com/botify-labs/botify-sdk-js-middlewares.git","ssh_url":"git@github.com:botify-labs/botify-sdk-js-middlewares.git","clone_url":"https://github.com/botify-labs/botify-sdk-js-middlewares.git","svn_url":"https://github.com/botify-labs/botify-sdk-js-middlewares","homepage":null,"size":516,"stargazers_count":1,"watchers_count":1,"language":"JavaScript","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":8,"forks":0,"open_issues":8,"watchers":1,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/botify-labs/botify-sdk-js-middlewares/pulls/20"},"html":{"href":"https://github.com/botify-labs/botify-sdk-js-middlewares/pull/20"},"issue":{"href":"https://api.github.com/repos/botify-labs/botify-sdk-js-middlewares/issues/20"},"comments":{"href":"https://api.github.com/repos/botify-labs/botify-sdk-js-middlewares/issues/20/comments"},"review_comments":{"href":"https://api.github.com/repos/botify-labs/botify-sdk-js-middlewares/pulls/20/comments"},"review_comment":{"href":"https://api.github.com/repos/botify-labs/botify-sdk-js-middlewares/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/botify-labs/botify-sdk-js-middlewares/pulls/20/commits"},"statuses":{"href":"https://api.github.com/repos/botify-labs/botify-sdk-js-middlewares/statuses/65a1706b7e6005e3f08e0888fd4ccec217071e3c"}}}}