{"action":"created","comment":{"url":"https://api.github.com/repos/Kinvey/js-sdk/pulls/comments/92190807","pull_request_review_id":12701086,"id":92190807,"diff_hunk":"@@ -53,12 +53,25 @@ describe('ActiveUserError', () => {\n   describe('code', () => {\n     it('should return the default code -1', () => {\n       const error = new ActiveUserError();\n-      expect(error.debug).toEqual('');\n+      expect(error.code).toEqual(-1);\n     });\n \n     it('should return the custom code 309', () => {\n       const error = new ActiveUserError(undefined, undefined, 309);\n       expect(error.code).toEqual(309);\n     });\n   });\n+\n+  describe('kinveyRequestId', () => {\n+    it('should return undefined as the default value', () => {\n+      const error = new ActiveUserError();\n+      expect(error.kinveyRequestId).toEqual(undefined);\n+    });\n+\n+    it('should return 1', () => {\n+      const kinveyRequestId = 1;\n+      const error = new ActiveUserError(null, null, null, kinveyRequestId);","path":"test/unit/errors/activeUser.test.js","position":null,"original_position":40,"commit_id":"5aa95da30b2d1268797f30494c2e6f81e1c3ce8e","original_commit_id":"3da1db6856262a0383ff686c7d2d87291f767b1d","user":{"login":"thomasconner","id":950052,"avatar_url":"https://avatars.githubusercontent.com/u/950052?v=3","gravatar_id":"","url":"https://api.github.com/users/thomasconner","html_url":"https://github.com/thomasconner","followers_url":"https://api.github.com/users/thomasconner/followers","following_url":"https://api.github.com/users/thomasconner/following{/other_user}","gists_url":"https://api.github.com/users/thomasconner/gists{/gist_id}","starred_url":"https://api.github.com/users/thomasconner/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/thomasconner/subscriptions","organizations_url":"https://api.github.com/users/thomasconner/orgs","repos_url":"https://api.github.com/users/thomasconner/repos","events_url":"https://api.github.com/users/thomasconner/events{/privacy}","received_events_url":"https://api.github.com/users/thomasconner/received_events","type":"User","site_admin":false},"body":"I updated the tests.","created_at":"2016-12-13T15:23:14Z","updated_at":"2016-12-13T15:23:14Z","html_url":"https://github.com/Kinvey/js-sdk/pull/84#discussion_r92190807","pull_request_url":"https://api.github.com/repos/Kinvey/js-sdk/pulls/84","_links":{"self":{"href":"https://api.github.com/repos/Kinvey/js-sdk/pulls/comments/92190807"},"html":{"href":"https://github.com/Kinvey/js-sdk/pull/84#discussion_r92190807"},"pull_request":{"href":"https://api.github.com/repos/Kinvey/js-sdk/pulls/84"}}},"pull_request":{"url":"https://api.github.com/repos/Kinvey/js-sdk/pulls/84","id":97366220,"html_url":"https://github.com/Kinvey/js-sdk/pull/84","diff_url":"https://github.com/Kinvey/js-sdk/pull/84.diff","patch_url":"https://github.com/Kinvey/js-sdk/pull/84.patch","issue_url":"https://api.github.com/repos/Kinvey/js-sdk/issues/84","number":84,"state":"open","locked":false,"title":"Add X-Kinvey-Request-Id to errors","user":{"login":"thomasconner","id":950052,"avatar_url":"https://avatars.githubusercontent.com/u/950052?v=3","gravatar_id":"","url":"https://api.github.com/users/thomasconner","html_url":"https://github.com/thomasconner","followers_url":"https://api.github.com/users/thomasconner/followers","following_url":"https://api.github.com/users/thomasconner/following{/other_user}","gists_url":"https://api.github.com/users/thomasconner/gists{/gist_id}","starred_url":"https://api.github.com/users/thomasconner/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/thomasconner/subscriptions","organizations_url":"https://api.github.com/users/thomasconner/orgs","repos_url":"https://api.github.com/users/thomasconner/repos","events_url":"https://api.github.com/users/thomasconner/events{/privacy}","received_events_url":"https://api.github.com/users/thomasconner/received_events","type":"User","site_admin":false},"body":"#### Description\r\nThis PR adds `X-Kinvey-Request-Id` to errors. You can view the `X-Kinvey-Request-Id` related to a specific error by accessing the `kinveyRequestId` property on an error object.\r\n\r\n```javascript\r\nasyncNetworkCall()\r\n  .catch(function(error) {\r\n    // error.kinveyRequestId\r\n  });\r\n```\r\n\r\n#### Changes\r\n- Add `X-Kinvey-Request-Id` to error objects.\r\n- Add unit tests to check if `X-Kinvey-Request-Id` is set properly on an error object.\r\n","created_at":"2016-12-09T19:29:55Z","updated_at":"2016-12-13T15:23:14Z","closed_at":null,"merged_at":null,"merge_commit_sha":"47e6d76751827ab040dbd14002289c3ebb2b025e","assignee":{"login":"thomasconner","id":950052,"avatar_url":"https://avatars.githubusercontent.com/u/950052?v=3","gravatar_id":"","url":"https://api.github.com/users/thomasconner","html_url":"https://github.com/thomasconner","followers_url":"https://api.github.com/users/thomasconner/followers","following_url":"https://api.github.com/users/thomasconner/following{/other_user}","gists_url":"https://api.github.com/users/thomasconner/gists{/gist_id}","starred_url":"https://api.github.com/users/thomasconner/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/thomasconner/subscriptions","organizations_url":"https://api.github.com/users/thomasconner/orgs","repos_url":"https://api.github.com/users/thomasconner/repos","events_url":"https://api.github.com/users/thomasconner/events{/privacy}","received_events_url":"https://api.github.com/users/thomasconner/received_events","type":"User","site_admin":false},"assignees":[{"login":"thomasconner","id":950052,"avatar_url":"https://avatars.githubusercontent.com/u/950052?v=3","gravatar_id":"","url":"https://api.github.com/users/thomasconner","html_url":"https://github.com/thomasconner","followers_url":"https://api.github.com/users/thomasconner/followers","following_url":"https://api.github.com/users/thomasconner/following{/other_user}","gists_url":"https://api.github.com/users/thomasconner/gists{/gist_id}","starred_url":"https://api.github.com/users/thomasconner/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/thomasconner/subscriptions","organizations_url":"https://api.github.com/users/thomasconner/orgs","repos_url":"https://api.github.com/users/thomasconner/repos","events_url":"https://api.github.com/users/thomasconner/events{/privacy}","received_events_url":"https://api.github.com/users/thomasconner/received_events","type":"User","site_admin":false}],"milestone":null,"commits_url":"https://api.github.com/repos/Kinvey/js-sdk/pulls/84/commits","review_comments_url":"https://api.github.com/repos/Kinvey/js-sdk/pulls/84/comments","review_comment_url":"https://api.github.com/repos/Kinvey/js-sdk/pulls/comments{/number}","comments_url":"https://api.github.com/repos/Kinvey/js-sdk/issues/84/comments","statuses_url":"https://api.github.com/repos/Kinvey/js-sdk/statuses/5aa95da30b2d1268797f30494c2e6f81e1c3ce8e","head":{"label":"Kinvey:MLIBZ-1494","ref":"MLIBZ-1494","sha":"5aa95da30b2d1268797f30494c2e6f81e1c3ce8e","user":{"login":"Kinvey","id":1276480,"avatar_url":"https://avatars.githubusercontent.com/u/1276480?v=3","gravatar_id":"","url":"https://api.github.com/users/Kinvey","html_url":"https://github.com/Kinvey","followers_url":"https://api.github.com/users/Kinvey/followers","following_url":"https://api.github.com/users/Kinvey/following{/other_user}","gists_url":"https://api.github.com/users/Kinvey/gists{/gist_id}","starred_url":"https://api.github.com/users/Kinvey/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Kinvey/subscriptions","organizations_url":"https://api.github.com/users/Kinvey/orgs","repos_url":"https://api.github.com/users/Kinvey/repos","events_url":"https://api.github.com/users/Kinvey/events{/privacy}","received_events_url":"https://api.github.com/users/Kinvey/received_events","type":"Organization","site_admin":false},"repo":{"id":30971013,"name":"js-sdk","full_name":"Kinvey/js-sdk","owner":{"login":"Kinvey","id":1276480,"avatar_url":"https://avatars.githubusercontent.com/u/1276480?v=3","gravatar_id":"","url":"https://api.github.com/users/Kinvey","html_url":"https://github.com/Kinvey","followers_url":"https://api.github.com/users/Kinvey/followers","following_url":"https://api.github.com/users/Kinvey/following{/other_user}","gists_url":"https://api.github.com/users/Kinvey/gists{/gist_id}","starred_url":"https://api.github.com/users/Kinvey/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Kinvey/subscriptions","organizations_url":"https://api.github.com/users/Kinvey/orgs","repos_url":"https://api.github.com/users/Kinvey/repos","events_url":"https://api.github.com/users/Kinvey/events{/privacy}","received_events_url":"https://api.github.com/users/Kinvey/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/Kinvey/js-sdk","description":"JavaScript Core SDK - shared code for all Kinvey JS SDKs","fork":false,"url":"https://api.github.com/repos/Kinvey/js-sdk","forks_url":"https://api.github.com/repos/Kinvey/js-sdk/forks","keys_url":"https://api.github.com/repos/Kinvey/js-sdk/keys{/key_id}","collaborators_url":"https://api.github.com/repos/Kinvey/js-sdk/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/Kinvey/js-sdk/teams","hooks_url":"https://api.github.com/repos/Kinvey/js-sdk/hooks","issue_events_url":"https://api.github.com/repos/Kinvey/js-sdk/issues/events{/number}","events_url":"https://api.github.com/repos/Kinvey/js-sdk/events","assignees_url":"https://api.github.com/repos/Kinvey/js-sdk/assignees{/user}","branches_url":"https://api.github.com/repos/Kinvey/js-sdk/branches{/branch}","tags_url":"https://api.github.com/repos/Kinvey/js-sdk/tags","blobs_url":"https://api.github.com/repos/Kinvey/js-sdk/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/Kinvey/js-sdk/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/Kinvey/js-sdk/git/refs{/sha}","trees_url":"https://api.github.com/repos/Kinvey/js-sdk/git/trees{/sha}","statuses_url":"https://api.github.com/repos/Kinvey/js-sdk/statuses/{sha}","languages_url":"https://api.github.com/repos/Kinvey/js-sdk/languages","stargazers_url":"https://api.github.com/repos/Kinvey/js-sdk/stargazers","contributors_url":"https://api.github.com/repos/Kinvey/js-sdk/contributors","subscribers_url":"https://api.github.com/repos/Kinvey/js-sdk/subscribers","subscription_url":"https://api.github.com/repos/Kinvey/js-sdk/subscription","commits_url":"https://api.github.com/repos/Kinvey/js-sdk/commits{/sha}","git_commits_url":"https://api.github.com/repos/Kinvey/js-sdk/git/commits{/sha}","comments_url":"https://api.github.com/repos/Kinvey/js-sdk/comments{/number}","issue_comment_url":"https://api.github.com/repos/Kinvey/js-sdk/issues/comments{/number}","contents_url":"https://api.github.com/repos/Kinvey/js-sdk/contents/{+path}","compare_url":"https://api.github.com/repos/Kinvey/js-sdk/compare/{base}...{head}","merges_url":"https://api.github.com/repos/Kinvey/js-sdk/merges","archive_url":"https://api.github.com/repos/Kinvey/js-sdk/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/Kinvey/js-sdk/downloads","issues_url":"https://api.github.com/repos/Kinvey/js-sdk/issues{/number}","pulls_url":"https://api.github.com/repos/Kinvey/js-sdk/pulls{/number}","milestones_url":"https://api.github.com/repos/Kinvey/js-sdk/milestones{/number}","notifications_url":"https://api.github.com/repos/Kinvey/js-sdk/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/Kinvey/js-sdk/labels{/name}","releases_url":"https://api.github.com/repos/Kinvey/js-sdk/releases{/id}","deployments_url":"https://api.github.com/repos/Kinvey/js-sdk/deployments","created_at":"2015-02-18T15:20:34Z","updated_at":"2016-12-06T20:42:56Z","pushed_at":"2016-12-13T15:23:10Z","git_url":"git://github.com/Kinvey/js-sdk.git","ssh_url":"git@github.com:Kinvey/js-sdk.git","clone_url":"https://github.com/Kinvey/js-sdk.git","svn_url":"https://github.com/Kinvey/js-sdk","homepage":"http://devcenter.kinvey.com","size":23504,"stargazers_count":4,"watchers_count":4,"language":"JavaScript","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":1,"mirror_url":null,"open_issues_count":4,"forks":1,"open_issues":4,"watchers":4,"default_branch":"master"}},"base":{"label":"Kinvey:MLIBZ-1507","ref":"MLIBZ-1507","sha":"cd0836b2631f58bad497740404236568099b9565","user":{"login":"Kinvey","id":1276480,"avatar_url":"https://avatars.githubusercontent.com/u/1276480?v=3","gravatar_id":"","url":"https://api.github.com/users/Kinvey","html_url":"https://github.com/Kinvey","followers_url":"https://api.github.com/users/Kinvey/followers","following_url":"https://api.github.com/users/Kinvey/following{/other_user}","gists_url":"https://api.github.com/users/Kinvey/gists{/gist_id}","starred_url":"https://api.github.com/users/Kinvey/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Kinvey/subscriptions","organizations_url":"https://api.github.com/users/Kinvey/orgs","repos_url":"https://api.github.com/users/Kinvey/repos","events_url":"https://api.github.com/users/Kinvey/events{/privacy}","received_events_url":"https://api.github.com/users/Kinvey/received_events","type":"Organization","site_admin":false},"repo":{"id":30971013,"name":"js-sdk","full_name":"Kinvey/js-sdk","owner":{"login":"Kinvey","id":1276480,"avatar_url":"https://avatars.githubusercontent.com/u/1276480?v=3","gravatar_id":"","url":"https://api.github.com/users/Kinvey","html_url":"https://github.com/Kinvey","followers_url":"https://api.github.com/users/Kinvey/followers","following_url":"https://api.github.com/users/Kinvey/following{/other_user}","gists_url":"https://api.github.com/users/Kinvey/gists{/gist_id}","starred_url":"https://api.github.com/users/Kinvey/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Kinvey/subscriptions","organizations_url":"https://api.github.com/users/Kinvey/orgs","repos_url":"https://api.github.com/users/Kinvey/repos","events_url":"https://api.github.com/users/Kinvey/events{/privacy}","received_events_url":"https://api.github.com/users/Kinvey/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/Kinvey/js-sdk","description":"JavaScript Core SDK - shared code for all Kinvey JS SDKs","fork":false,"url":"https://api.github.com/repos/Kinvey/js-sdk","forks_url":"https://api.github.com/repos/Kinvey/js-sdk/forks","keys_url":"https://api.github.com/repos/Kinvey/js-sdk/keys{/key_id}","collaborators_url":"https://api.github.com/repos/Kinvey/js-sdk/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/Kinvey/js-sdk/teams","hooks_url":"https://api.github.com/repos/Kinvey/js-sdk/hooks","issue_events_url":"https://api.github.com/repos/Kinvey/js-sdk/issues/events{/number}","events_url":"https://api.github.com/repos/Kinvey/js-sdk/events","assignees_url":"https://api.github.com/repos/Kinvey/js-sdk/assignees{/user}","branches_url":"https://api.github.com/repos/Kinvey/js-sdk/branches{/branch}","tags_url":"https://api.github.com/repos/Kinvey/js-sdk/tags","blobs_url":"https://api.github.com/repos/Kinvey/js-sdk/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/Kinvey/js-sdk/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/Kinvey/js-sdk/git/refs{/sha}","trees_url":"https://api.github.com/repos/Kinvey/js-sdk/git/trees{/sha}","statuses_url":"https://api.github.com/repos/Kinvey/js-sdk/statuses/{sha}","languages_url":"https://api.github.com/repos/Kinvey/js-sdk/languages","stargazers_url":"https://api.github.com/repos/Kinvey/js-sdk/stargazers","contributors_url":"https://api.github.com/repos/Kinvey/js-sdk/contributors","subscribers_url":"https://api.github.com/repos/Kinvey/js-sdk/subscribers","subscription_url":"https://api.github.com/repos/Kinvey/js-sdk/subscription","commits_url":"https://api.github.com/repos/Kinvey/js-sdk/commits{/sha}","git_commits_url":"https://api.github.com/repos/Kinvey/js-sdk/git/commits{/sha}","comments_url":"https://api.github.com/repos/Kinvey/js-sdk/comments{/number}","issue_comment_url":"https://api.github.com/repos/Kinvey/js-sdk/issues/comments{/number}","contents_url":"https://api.github.com/repos/Kinvey/js-sdk/contents/{+path}","compare_url":"https://api.github.com/repos/Kinvey/js-sdk/compare/{base}...{head}","merges_url":"https://api.github.com/repos/Kinvey/js-sdk/merges","archive_url":"https://api.github.com/repos/Kinvey/js-sdk/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/Kinvey/js-sdk/downloads","issues_url":"https://api.github.com/repos/Kinvey/js-sdk/issues{/number}","pulls_url":"https://api.github.com/repos/Kinvey/js-sdk/pulls{/number}","milestones_url":"https://api.github.com/repos/Kinvey/js-sdk/milestones{/number}","notifications_url":"https://api.github.com/repos/Kinvey/js-sdk/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/Kinvey/js-sdk/labels{/name}","releases_url":"https://api.github.com/repos/Kinvey/js-sdk/releases{/id}","deployments_url":"https://api.github.com/repos/Kinvey/js-sdk/deployments","created_at":"2015-02-18T15:20:34Z","updated_at":"2016-12-06T20:42:56Z","pushed_at":"2016-12-13T15:23:10Z","git_url":"git://github.com/Kinvey/js-sdk.git","ssh_url":"git@github.com:Kinvey/js-sdk.git","clone_url":"https://github.com/Kinvey/js-sdk.git","svn_url":"https://github.com/Kinvey/js-sdk","homepage":"http://devcenter.kinvey.com","size":23504,"stargazers_count":4,"watchers_count":4,"language":"JavaScript","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":1,"mirror_url":null,"open_issues_count":4,"forks":1,"open_issues":4,"watchers":4,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/Kinvey/js-sdk/pulls/84"},"html":{"href":"https://github.com/Kinvey/js-sdk/pull/84"},"issue":{"href":"https://api.github.com/repos/Kinvey/js-sdk/issues/84"},"comments":{"href":"https://api.github.com/repos/Kinvey/js-sdk/issues/84/comments"},"review_comments":{"href":"https://api.github.com/repos/Kinvey/js-sdk/pulls/84/comments"},"review_comment":{"href":"https://api.github.com/repos/Kinvey/js-sdk/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/Kinvey/js-sdk/pulls/84/commits"},"statuses":{"href":"https://api.github.com/repos/Kinvey/js-sdk/statuses/5aa95da30b2d1268797f30494c2e6f81e1c3ce8e"}}}}
{"actor":{"display_login":"thomasconner"}}