{"action":"opened","number":260,"pull_request":{"url":"https://api.github.com/repos/osuosl/timesync-node/pulls/260","id":64868135,"html_url":"https://github.com/osuosl/timesync-node/pull/260","diff_url":"https://github.com/osuosl/timesync-node/pull/260.diff","patch_url":"https://github.com/osuosl/timesync-node/pull/260.patch","issue_url":"https://api.github.com/repos/osuosl/timesync-node/issues/260","number":260,"state":"open","locked":false,"title":"Add errors.send() helper function to prevent \"cannot set headers\" error.","user":{"login":"LyonesGamer","id":2058985,"avatar_url":"https://avatars.githubusercontent.com/u/2058985?v=3","gravatar_id":"","url":"https://api.github.com/users/LyonesGamer","html_url":"https://github.com/LyonesGamer","followers_url":"https://api.github.com/users/LyonesGamer/followers","following_url":"https://api.github.com/users/LyonesGamer/following{/other_user}","gists_url":"https://api.github.com/users/LyonesGamer/gists{/gist_id}","starred_url":"https://api.github.com/users/LyonesGamer/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/LyonesGamer/subscriptions","organizations_url":"https://api.github.com/users/LyonesGamer/orgs","repos_url":"https://api.github.com/users/LyonesGamer/repos","events_url":"https://api.github.com/users/LyonesGamer/events{/privacy}","received_events_url":"https://api.github.com/users/LyonesGamer/received_events","type":"User","site_admin":false},"body":"Fixes #259 by checking whether data has already been sent before sending any errors.","created_at":"2016-03-31T22:16:03Z","updated_at":"2016-03-31T22:16:03Z","closed_at":null,"merged_at":null,"merge_commit_sha":null,"assignee":{"login":"LyonesGamer","id":2058985,"avatar_url":"https://avatars.githubusercontent.com/u/2058985?v=3","gravatar_id":"","url":"https://api.github.com/users/LyonesGamer","html_url":"https://github.com/LyonesGamer","followers_url":"https://api.github.com/users/LyonesGamer/followers","following_url":"https://api.github.com/users/LyonesGamer/following{/other_user}","gists_url":"https://api.github.com/users/LyonesGamer/gists{/gist_id}","starred_url":"https://api.github.com/users/LyonesGamer/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/LyonesGamer/subscriptions","organizations_url":"https://api.github.com/users/LyonesGamer/orgs","repos_url":"https://api.github.com/users/LyonesGamer/repos","events_url":"https://api.github.com/users/LyonesGamer/events{/privacy}","received_events_url":"https://api.github.com/users/LyonesGamer/received_events","type":"User","site_admin":false},"milestone":{"url":"https://api.github.com/repos/osuosl/timesync-node/milestones/8","html_url":"https://github.com/osuosl/timesync-node/milestones/Release%20v0.1.0","labels_url":"https://api.github.com/repos/osuosl/timesync-node/milestones/8/labels","id":1648840,"number":8,"title":"Release v0.1.0","description":"","creator":{"login":"LyonesGamer","id":2058985,"avatar_url":"https://avatars.githubusercontent.com/u/2058985?v=3","gravatar_id":"","url":"https://api.github.com/users/LyonesGamer","html_url":"https://github.com/LyonesGamer","followers_url":"https://api.github.com/users/LyonesGamer/followers","following_url":"https://api.github.com/users/LyonesGamer/following{/other_user}","gists_url":"https://api.github.com/users/LyonesGamer/gists{/gist_id}","starred_url":"https://api.github.com/users/LyonesGamer/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/LyonesGamer/subscriptions","organizations_url":"https://api.github.com/users/LyonesGamer/orgs","repos_url":"https://api.github.com/users/LyonesGamer/repos","events_url":"https://api.github.com/users/LyonesGamer/events{/privacy}","received_events_url":"https://api.github.com/users/LyonesGamer/received_events","type":"User","site_admin":false},"open_issues":5,"closed_issues":4,"state":"open","created_at":"2016-03-16T19:46:15Z","updated_at":"2016-03-31T22:16:03Z","due_on":"2016-03-25T07:00:00Z","closed_at":null},"commits_url":"https://api.github.com/repos/osuosl/timesync-node/pulls/260/commits","review_comments_url":"https://api.github.com/repos/osuosl/timesync-node/pulls/260/comments","review_comment_url":"https://api.github.com/repos/osuosl/timesync-node/pulls/comments{/number}","comments_url":"https://api.github.com/repos/osuosl/timesync-node/issues/260/comments","statuses_url":"https://api.github.com/repos/osuosl/timesync-node/statuses/5dd9442cf3311083c7533949b784a0d1bf76885f","head":{"label":"osuosl:tristan/error-helper","ref":"tristan/error-helper","sha":"5dd9442cf3311083c7533949b784a0d1bf76885f","user":{"login":"osuosl","id":1380625,"avatar_url":"https://avatars.githubusercontent.com/u/1380625?v=3","gravatar_id":"","url":"https://api.github.com/users/osuosl","html_url":"https://github.com/osuosl","followers_url":"https://api.github.com/users/osuosl/followers","following_url":"https://api.github.com/users/osuosl/following{/other_user}","gists_url":"https://api.github.com/users/osuosl/gists{/gist_id}","starred_url":"https://api.github.com/users/osuosl/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/osuosl/subscriptions","organizations_url":"https://api.github.com/users/osuosl/orgs","repos_url":"https://api.github.com/users/osuosl/repos","events_url":"https://api.github.com/users/osuosl/events{/privacy}","received_events_url":"https://api.github.com/users/osuosl/received_events","type":"Organization","site_admin":false},"repo":{"id":33685026,"name":"timesync-node","full_name":"osuosl/timesync-node","owner":{"login":"osuosl","id":1380625,"avatar_url":"https://avatars.githubusercontent.com/u/1380625?v=3","gravatar_id":"","url":"https://api.github.com/users/osuosl","html_url":"https://github.com/osuosl","followers_url":"https://api.github.com/users/osuosl/followers","following_url":"https://api.github.com/users/osuosl/following{/other_user}","gists_url":"https://api.github.com/users/osuosl/gists{/gist_id}","starred_url":"https://api.github.com/users/osuosl/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/osuosl/subscriptions","organizations_url":"https://api.github.com/users/osuosl/orgs","repos_url":"https://api.github.com/users/osuosl/repos","events_url":"https://api.github.com/users/osuosl/events{/privacy}","received_events_url":"https://api.github.com/users/osuosl/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/osuosl/timesync-node","description":"NodeJS implementation of the TimeSync API","fork":false,"url":"https://api.github.com/repos/osuosl/timesync-node","forks_url":"https://api.github.com/repos/osuosl/timesync-node/forks","keys_url":"https://api.github.com/repos/osuosl/timesync-node/keys{/key_id}","collaborators_url":"https://api.github.com/repos/osuosl/timesync-node/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/osuosl/timesync-node/teams","hooks_url":"https://api.github.com/repos/osuosl/timesync-node/hooks","issue_events_url":"https://api.github.com/repos/osuosl/timesync-node/issues/events{/number}","events_url":"https://api.github.com/repos/osuosl/timesync-node/events","assignees_url":"https://api.github.com/repos/osuosl/timesync-node/assignees{/user}","branches_url":"https://api.github.com/repos/osuosl/timesync-node/branches{/branch}","tags_url":"https://api.github.com/repos/osuosl/timesync-node/tags","blobs_url":"https://api.github.com/repos/osuosl/timesync-node/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/osuosl/timesync-node/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/osuosl/timesync-node/git/refs{/sha}","trees_url":"https://api.github.com/repos/osuosl/timesync-node/git/trees{/sha}","statuses_url":"https://api.github.com/repos/osuosl/timesync-node/statuses/{sha}","languages_url":"https://api.github.com/repos/osuosl/timesync-node/languages","stargazers_url":"https://api.github.com/repos/osuosl/timesync-node/stargazers","contributors_url":"https://api.github.com/repos/osuosl/timesync-node/contributors","subscribers_url":"https://api.github.com/repos/osuosl/timesync-node/subscribers","subscription_url":"https://api.github.com/repos/osuosl/timesync-node/subscription","commits_url":"https://api.github.com/repos/osuosl/timesync-node/commits{/sha}","git_commits_url":"https://api.github.com/repos/osuosl/timesync-node/git/commits{/sha}","comments_url":"https://api.github.com/repos/osuosl/timesync-node/comments{/number}","issue_comment_url":"https://api.github.com/repos/osuosl/timesync-node/issues/comments{/number}","contents_url":"https://api.github.com/repos/osuosl/timesync-node/contents/{+path}","compare_url":"https://api.github.com/repos/osuosl/timesync-node/compare/{base}...{head}","merges_url":"https://api.github.com/repos/osuosl/timesync-node/merges","archive_url":"https://api.github.com/repos/osuosl/timesync-node/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/osuosl/timesync-node/downloads","issues_url":"https://api.github.com/repos/osuosl/timesync-node/issues{/number}","pulls_url":"https://api.github.com/repos/osuosl/timesync-node/pulls{/number}","milestones_url":"https://api.github.com/repos/osuosl/timesync-node/milestones{/number}","notifications_url":"https://api.github.com/repos/osuosl/timesync-node/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/osuosl/timesync-node/labels{/name}","releases_url":"https://api.github.com/repos/osuosl/timesync-node/releases{/id}","deployments_url":"https://api.github.com/repos/osuosl/timesync-node/deployments","created_at":"2015-04-09T18:20:54Z","updated_at":"2016-03-09T19:26:17Z","pushed_at":"2016-03-31T22:15:02Z","git_url":"git://github.com/osuosl/timesync-node.git","ssh_url":"git@github.com:osuosl/timesync-node.git","clone_url":"https://github.com/osuosl/timesync-node.git","svn_url":"https://github.com/osuosl/timesync-node","homepage":"","size":1113,"stargazers_count":3,"watchers_count":3,"language":"JavaScript","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":4,"mirror_url":null,"open_issues_count":16,"forks":4,"open_issues":16,"watchers":3,"default_branch":"develop"}},"base":{"label":"osuosl:develop","ref":"develop","sha":"6cb8346f8e8c709e94991089d6921dbcbd31400c","user":{"login":"osuosl","id":1380625,"avatar_url":"https://avatars.githubusercontent.com/u/1380625?v=3","gravatar_id":"","url":"https://api.github.com/users/osuosl","html_url":"https://github.com/osuosl","followers_url":"https://api.github.com/users/osuosl/followers","following_url":"https://api.github.com/users/osuosl/following{/other_user}","gists_url":"https://api.github.com/users/osuosl/gists{/gist_id}","starred_url":"https://api.github.com/users/osuosl/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/osuosl/subscriptions","organizations_url":"https://api.github.com/users/osuosl/orgs","repos_url":"https://api.github.com/users/osuosl/repos","events_url":"https://api.github.com/users/osuosl/events{/privacy}","received_events_url":"https://api.github.com/users/osuosl/received_events","type":"Organization","site_admin":false},"repo":{"id":33685026,"name":"timesync-node","full_name":"osuosl/timesync-node","owner":{"login":"osuosl","id":1380625,"avatar_url":"https://avatars.githubusercontent.com/u/1380625?v=3","gravatar_id":"","url":"https://api.github.com/users/osuosl","html_url":"https://github.com/osuosl","followers_url":"https://api.github.com/users/osuosl/followers","following_url":"https://api.github.com/users/osuosl/following{/other_user}","gists_url":"https://api.github.com/users/osuosl/gists{/gist_id}","starred_url":"https://api.github.com/users/osuosl/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/osuosl/subscriptions","organizations_url":"https://api.github.com/users/osuosl/orgs","repos_url":"https://api.github.com/users/osuosl/repos","events_url":"https://api.github.com/users/osuosl/events{/privacy}","received_events_url":"https://api.github.com/users/osuosl/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/osuosl/timesync-node","description":"NodeJS implementation of the TimeSync API","fork":false,"url":"https://api.github.com/repos/osuosl/timesync-node","forks_url":"https://api.github.com/repos/osuosl/timesync-node/forks","keys_url":"https://api.github.com/repos/osuosl/timesync-node/keys{/key_id}","collaborators_url":"https://api.github.com/repos/osuosl/timesync-node/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/osuosl/timesync-node/teams","hooks_url":"https://api.github.com/repos/osuosl/timesync-node/hooks","issue_events_url":"https://api.github.com/repos/osuosl/timesync-node/issues/events{/number}","events_url":"https://api.github.com/repos/osuosl/timesync-node/events","assignees_url":"https://api.github.com/repos/osuosl/timesync-node/assignees{/user}","branches_url":"https://api.github.com/repos/osuosl/timesync-node/branches{/branch}","tags_url":"https://api.github.com/repos/osuosl/timesync-node/tags","blobs_url":"https://api.github.com/repos/osuosl/timesync-node/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/osuosl/timesync-node/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/osuosl/timesync-node/git/refs{/sha}","trees_url":"https://api.github.com/repos/osuosl/timesync-node/git/trees{/sha}","statuses_url":"https://api.github.com/repos/osuosl/timesync-node/statuses/{sha}","languages_url":"https://api.github.com/repos/osuosl/timesync-node/languages","stargazers_url":"https://api.github.com/repos/osuosl/timesync-node/stargazers","contributors_url":"https://api.github.com/repos/osuosl/timesync-node/contributors","subscribers_url":"https://api.github.com/repos/osuosl/timesync-node/subscribers","subscription_url":"https://api.github.com/repos/osuosl/timesync-node/subscription","commits_url":"https://api.github.com/repos/osuosl/timesync-node/commits{/sha}","git_commits_url":"https://api.github.com/repos/osuosl/timesync-node/git/commits{/sha}","comments_url":"https://api.github.com/repos/osuosl/timesync-node/comments{/number}","issue_comment_url":"https://api.github.com/repos/osuosl/timesync-node/issues/comments{/number}","contents_url":"https://api.github.com/repos/osuosl/timesync-node/contents/{+path}","compare_url":"https://api.github.com/repos/osuosl/timesync-node/compare/{base}...{head}","merges_url":"https://api.github.com/repos/osuosl/timesync-node/merges","archive_url":"https://api.github.com/repos/osuosl/timesync-node/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/osuosl/timesync-node/downloads","issues_url":"https://api.github.com/repos/osuosl/timesync-node/issues{/number}","pulls_url":"https://api.github.com/repos/osuosl/timesync-node/pulls{/number}","milestones_url":"https://api.github.com/repos/osuosl/timesync-node/milestones{/number}","notifications_url":"https://api.github.com/repos/osuosl/timesync-node/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/osuosl/timesync-node/labels{/name}","releases_url":"https://api.github.com/repos/osuosl/timesync-node/releases{/id}","deployments_url":"https://api.github.com/repos/osuosl/timesync-node/deployments","created_at":"2015-04-09T18:20:54Z","updated_at":"2016-03-09T19:26:17Z","pushed_at":"2016-03-31T22:15:02Z","git_url":"git://github.com/osuosl/timesync-node.git","ssh_url":"git@github.com:osuosl/timesync-node.git","clone_url":"https://github.com/osuosl/timesync-node.git","svn_url":"https://github.com/osuosl/timesync-node","homepage":"","size":1113,"stargazers_count":3,"watchers_count":3,"language":"JavaScript","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":4,"mirror_url":null,"open_issues_count":16,"forks":4,"open_issues":16,"watchers":3,"default_branch":"develop"}},"_links":{"self":{"href":"https://api.github.com/repos/osuosl/timesync-node/pulls/260"},"html":{"href":"https://github.com/osuosl/timesync-node/pull/260"},"issue":{"href":"https://api.github.com/repos/osuosl/timesync-node/issues/260"},"comments":{"href":"https://api.github.com/repos/osuosl/timesync-node/issues/260/comments"},"review_comments":{"href":"https://api.github.com/repos/osuosl/timesync-node/pulls/260/comments"},"review_comment":{"href":"https://api.github.com/repos/osuosl/timesync-node/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/osuosl/timesync-node/pulls/260/commits"},"statuses":{"href":"https://api.github.com/repos/osuosl/timesync-node/statuses/5dd9442cf3311083c7533949b784a0d1bf76885f"}},"merged":false,"mergeable":null,"mergeable_state":"unknown","merged_by":null,"comments":0,"review_comments":0,"commits":8,"additions":396,"deletions":416,"changed_files":9}}