{"action":"created","comment":{"url":"https://api.github.com/repos/nightscout/android-uploader/pulls/comments/24728595","id":24728595,"diff_hunk":"@@ -160,15 +161,31 @@ private boolean upload(List<GlucoseDataSet> glucoseDataSets,\n         for (BaseUploader uploader : uploaders) {\n             // TODO(klee): capture any exceptions here so that all configured uploaders will attempt\n             // to upload\n-            allSuccessful &= uploader.uploadRecords(glucoseDataSets, meterRecords, calRecords, deviceStatus);\n-            reporter.report(EventType.UPLOADER, EventSeverity.INFO,\n-                    String.format(context.getString(R.string.event_success_upload),\n-                            uploader.getIdentifier()));\n-\n+            try {\n+                allSuccessful &= uploader.uploadRecords(glucoseDataSets, meterRecords, calRecords, deviceStatus);\n+                reporter.report(EventType.UPLOADER, EventSeverity.INFO,\n+                        String.format(context.getString(R.string.event_success_upload),\n+                                uploader.getIdentifier()));\n+            } catch (MongoException e) {\n+                if (e.getCode() == 18) {","path":"app/src/main/java/com/nightscout/android/upload/Uploader.java","position":23,"original_position":23,"commit_id":"88d14cc2700e035f49c4031637429376ef998e2f","original_commit_id":"88d14cc2700e035f49c4031637429376ef998e2f","user":{"login":"trhodeos","id":767526,"avatar_url":"https://avatars.githubusercontent.com/u/767526?v=3","gravatar_id":"","url":"https://api.github.com/users/trhodeos","html_url":"https://github.com/trhodeos","followers_url":"https://api.github.com/users/trhodeos/followers","following_url":"https://api.github.com/users/trhodeos/following{/other_user}","gists_url":"https://api.github.com/users/trhodeos/gists{/gist_id}","starred_url":"https://api.github.com/users/trhodeos/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/trhodeos/subscriptions","organizations_url":"https://api.github.com/users/trhodeos/orgs","repos_url":"https://api.github.com/users/trhodeos/repos","events_url":"https://api.github.com/users/trhodeos/events{/privacy}","received_events_url":"https://api.github.com/users/trhodeos/received_events","type":"User","site_admin":false},"body":"Comment or extract as a constant, so that we know what '18' is.","created_at":"2015-02-16T01:17:22Z","updated_at":"2015-02-16T01:17:22Z","html_url":"https://github.com/nightscout/android-uploader/pull/144#discussion_r24728595","pull_request_url":"https://api.github.com/repos/nightscout/android-uploader/pulls/144","_links":{"self":{"href":"https://api.github.com/repos/nightscout/android-uploader/pulls/comments/24728595"},"html":{"href":"https://github.com/nightscout/android-uploader/pull/144#discussion_r24728595"},"pull_request":{"href":"https://api.github.com/repos/nightscout/android-uploader/pulls/144"}}},"pull_request":{"url":"https://api.github.com/repos/nightscout/android-uploader/pulls/144","id":29327836,"html_url":"https://github.com/nightscout/android-uploader/pull/144","diff_url":"https://github.com/nightscout/android-uploader/pull/144.diff","patch_url":"https://github.com/nightscout/android-uploader/pull/144.patch","issue_url":"https://api.github.com/repos/nightscout/android-uploader/issues/144","number":144,"state":"open","locked":false,"title":"UI updates","user":{"login":"ktind","id":6227836,"avatar_url":"https://avatars.githubusercontent.com/u/6227836?v=3","gravatar_id":"","url":"https://api.github.com/users/ktind","html_url":"https://github.com/ktind","followers_url":"https://api.github.com/users/ktind/followers","following_url":"https://api.github.com/users/ktind/following{/other_user}","gists_url":"https://api.github.com/users/ktind/gists{/gist_id}","starred_url":"https://api.github.com/users/ktind/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ktind/subscriptions","organizations_url":"https://api.github.com/users/ktind/orgs","repos_url":"https://api.github.com/users/ktind/repos","events_url":"https://api.github.com/users/ktind/events{/privacy}","received_events_url":"https://api.github.com/users/ktind/received_events","type":"User","site_admin":false},"body":"Tested:\r\nUnit\r\n\r\n@rnpenguin @trhodeos ","created_at":"2015-02-15T00:26:37Z","updated_at":"2015-02-16T01:17:22Z","closed_at":null,"merged_at":null,"merge_commit_sha":"8ec9da69c5d8a775121beb047dbc3576fc833323","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/nightscout/android-uploader/pulls/144/commits","review_comments_url":"https://api.github.com/repos/nightscout/android-uploader/pulls/144/comments","review_comment_url":"https://api.github.com/repos/nightscout/android-uploader/pulls/comments/{number}","comments_url":"https://api.github.com/repos/nightscout/android-uploader/issues/144/comments","statuses_url":"https://api.github.com/repos/nightscout/android-uploader/statuses/88d14cc2700e035f49c4031637429376ef998e2f","head":{"label":"nightscout:76-kl.mqttui","ref":"76-kl.mqttui","sha":"88d14cc2700e035f49c4031637429376ef998e2f","user":{"login":"nightscout","id":7661012,"avatar_url":"https://avatars.githubusercontent.com/u/7661012?v=3","gravatar_id":"","url":"https://api.github.com/users/nightscout","html_url":"https://github.com/nightscout","followers_url":"https://api.github.com/users/nightscout/followers","following_url":"https://api.github.com/users/nightscout/following{/other_user}","gists_url":"https://api.github.com/users/nightscout/gists{/gist_id}","starred_url":"https://api.github.com/users/nightscout/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/nightscout/subscriptions","organizations_url":"https://api.github.com/users/nightscout/orgs","repos_url":"https://api.github.com/users/nightscout/repos","events_url":"https://api.github.com/users/nightscout/events{/privacy}","received_events_url":"https://api.github.com/users/nightscout/received_events","type":"Organization","site_admin":false},"repo":{"id":21967508,"name":"android-uploader","full_name":"nightscout/android-uploader","owner":{"login":"nightscout","id":7661012,"avatar_url":"https://avatars.githubusercontent.com/u/7661012?v=3","gravatar_id":"","url":"https://api.github.com/users/nightscout","html_url":"https://github.com/nightscout","followers_url":"https://api.github.com/users/nightscout/followers","following_url":"https://api.github.com/users/nightscout/following{/other_user}","gists_url":"https://api.github.com/users/nightscout/gists{/gist_id}","starred_url":"https://api.github.com/users/nightscout/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/nightscout/subscriptions","organizations_url":"https://api.github.com/users/nightscout/orgs","repos_url":"https://api.github.com/users/nightscout/repos","events_url":"https://api.github.com/users/nightscout/events{/privacy}","received_events_url":"https://api.github.com/users/nightscout/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/nightscout/android-uploader","description":"nightscout android uploader","fork":false,"url":"https://api.github.com/repos/nightscout/android-uploader","forks_url":"https://api.github.com/repos/nightscout/android-uploader/forks","keys_url":"https://api.github.com/repos/nightscout/android-uploader/keys{/key_id}","collaborators_url":"https://api.github.com/repos/nightscout/android-uploader/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/nightscout/android-uploader/teams","hooks_url":"https://api.github.com/repos/nightscout/android-uploader/hooks","issue_events_url":"https://api.github.com/repos/nightscout/android-uploader/issues/events{/number}","events_url":"https://api.github.com/repos/nightscout/android-uploader/events","assignees_url":"https://api.github.com/repos/nightscout/android-uploader/assignees{/user}","branches_url":"https://api.github.com/repos/nightscout/android-uploader/branches{/branch}","tags_url":"https://api.github.com/repos/nightscout/android-uploader/tags","blobs_url":"https://api.github.com/repos/nightscout/android-uploader/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/nightscout/android-uploader/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/nightscout/android-uploader/git/refs{/sha}","trees_url":"https://api.github.com/repos/nightscout/android-uploader/git/trees{/sha}","statuses_url":"https://api.github.com/repos/nightscout/android-uploader/statuses/{sha}","languages_url":"https://api.github.com/repos/nightscout/android-uploader/languages","stargazers_url":"https://api.github.com/repos/nightscout/android-uploader/stargazers","contributors_url":"https://api.github.com/repos/nightscout/android-uploader/contributors","subscribers_url":"https://api.github.com/repos/nightscout/android-uploader/subscribers","subscription_url":"https://api.github.com/repos/nightscout/android-uploader/subscription","commits_url":"https://api.github.com/repos/nightscout/android-uploader/commits{/sha}","git_commits_url":"https://api.github.com/repos/nightscout/android-uploader/git/commits{/sha}","comments_url":"https://api.github.com/repos/nightscout/android-uploader/comments{/number}","issue_comment_url":"https://api.github.com/repos/nightscout/android-uploader/issues/comments/{number}","contents_url":"https://api.github.com/repos/nightscout/android-uploader/contents/{+path}","compare_url":"https://api.github.com/repos/nightscout/android-uploader/compare/{base}...{head}","merges_url":"https://api.github.com/repos/nightscout/android-uploader/merges","archive_url":"https://api.github.com/repos/nightscout/android-uploader/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/nightscout/android-uploader/downloads","issues_url":"https://api.github.com/repos/nightscout/android-uploader/issues{/number}","pulls_url":"https://api.github.com/repos/nightscout/android-uploader/pulls{/number}","milestones_url":"https://api.github.com/repos/nightscout/android-uploader/milestones{/number}","notifications_url":"https://api.github.com/repos/nightscout/android-uploader/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/nightscout/android-uploader/labels{/name}","releases_url":"https://api.github.com/repos/nightscout/android-uploader/releases{/id}","created_at":"2014-07-18T04:19:38Z","updated_at":"2015-02-15T15:12:39Z","pushed_at":"2015-02-16T00:29:18Z","git_url":"git://github.com/nightscout/android-uploader.git","ssh_url":"git@github.com:nightscout/android-uploader.git","clone_url":"https://github.com/nightscout/android-uploader.git","svn_url":"https://github.com/nightscout/android-uploader","homepage":"","size":5342,"stargazers_count":27,"watchers_count":27,"language":"Java","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":73,"mirror_url":null,"open_issues_count":24,"forks":73,"open_issues":24,"watchers":27,"default_branch":"master"}},"base":{"label":"nightscout:dev","ref":"dev","sha":"ab5d6d4efd3beaba7291d3deb17130f9a9fd7b50","user":{"login":"nightscout","id":7661012,"avatar_url":"https://avatars.githubusercontent.com/u/7661012?v=3","gravatar_id":"","url":"https://api.github.com/users/nightscout","html_url":"https://github.com/nightscout","followers_url":"https://api.github.com/users/nightscout/followers","following_url":"https://api.github.com/users/nightscout/following{/other_user}","gists_url":"https://api.github.com/users/nightscout/gists{/gist_id}","starred_url":"https://api.github.com/users/nightscout/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/nightscout/subscriptions","organizations_url":"https://api.github.com/users/nightscout/orgs","repos_url":"https://api.github.com/users/nightscout/repos","events_url":"https://api.github.com/users/nightscout/events{/privacy}","received_events_url":"https://api.github.com/users/nightscout/received_events","type":"Organization","site_admin":false},"repo":{"id":21967508,"name":"android-uploader","full_name":"nightscout/android-uploader","owner":{"login":"nightscout","id":7661012,"avatar_url":"https://avatars.githubusercontent.com/u/7661012?v=3","gravatar_id":"","url":"https://api.github.com/users/nightscout","html_url":"https://github.com/nightscout","followers_url":"https://api.github.com/users/nightscout/followers","following_url":"https://api.github.com/users/nightscout/following{/other_user}","gists_url":"https://api.github.com/users/nightscout/gists{/gist_id}","starred_url":"https://api.github.com/users/nightscout/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/nightscout/subscriptions","organizations_url":"https://api.github.com/users/nightscout/orgs","repos_url":"https://api.github.com/users/nightscout/repos","events_url":"https://api.github.com/users/nightscout/events{/privacy}","received_events_url":"https://api.github.com/users/nightscout/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/nightscout/android-uploader","description":"nightscout android uploader","fork":false,"url":"https://api.github.com/repos/nightscout/android-uploader","forks_url":"https://api.github.com/repos/nightscout/android-uploader/forks","keys_url":"https://api.github.com/repos/nightscout/android-uploader/keys{/key_id}","collaborators_url":"https://api.github.com/repos/nightscout/android-uploader/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/nightscout/android-uploader/teams","hooks_url":"https://api.github.com/repos/nightscout/android-uploader/hooks","issue_events_url":"https://api.github.com/repos/nightscout/android-uploader/issues/events{/number}","events_url":"https://api.github.com/repos/nightscout/android-uploader/events","assignees_url":"https://api.github.com/repos/nightscout/android-uploader/assignees{/user}","branches_url":"https://api.github.com/repos/nightscout/android-uploader/branches{/branch}","tags_url":"https://api.github.com/repos/nightscout/android-uploader/tags","blobs_url":"https://api.github.com/repos/nightscout/android-uploader/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/nightscout/android-uploader/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/nightscout/android-uploader/git/refs{/sha}","trees_url":"https://api.github.com/repos/nightscout/android-uploader/git/trees{/sha}","statuses_url":"https://api.github.com/repos/nightscout/android-uploader/statuses/{sha}","languages_url":"https://api.github.com/repos/nightscout/android-uploader/languages","stargazers_url":"https://api.github.com/repos/nightscout/android-uploader/stargazers","contributors_url":"https://api.github.com/repos/nightscout/android-uploader/contributors","subscribers_url":"https://api.github.com/repos/nightscout/android-uploader/subscribers","subscription_url":"https://api.github.com/repos/nightscout/android-uploader/subscription","commits_url":"https://api.github.com/repos/nightscout/android-uploader/commits{/sha}","git_commits_url":"https://api.github.com/repos/nightscout/android-uploader/git/commits{/sha}","comments_url":"https://api.github.com/repos/nightscout/android-uploader/comments{/number}","issue_comment_url":"https://api.github.com/repos/nightscout/android-uploader/issues/comments/{number}","contents_url":"https://api.github.com/repos/nightscout/android-uploader/contents/{+path}","compare_url":"https://api.github.com/repos/nightscout/android-uploader/compare/{base}...{head}","merges_url":"https://api.github.com/repos/nightscout/android-uploader/merges","archive_url":"https://api.github.com/repos/nightscout/android-uploader/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/nightscout/android-uploader/downloads","issues_url":"https://api.github.com/repos/nightscout/android-uploader/issues{/number}","pulls_url":"https://api.github.com/repos/nightscout/android-uploader/pulls{/number}","milestones_url":"https://api.github.com/repos/nightscout/android-uploader/milestones{/number}","notifications_url":"https://api.github.com/repos/nightscout/android-uploader/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/nightscout/android-uploader/labels{/name}","releases_url":"https://api.github.com/repos/nightscout/android-uploader/releases{/id}","created_at":"2014-07-18T04:19:38Z","updated_at":"2015-02-15T15:12:39Z","pushed_at":"2015-02-16T00:29:18Z","git_url":"git://github.com/nightscout/android-uploader.git","ssh_url":"git@github.com:nightscout/android-uploader.git","clone_url":"https://github.com/nightscout/android-uploader.git","svn_url":"https://github.com/nightscout/android-uploader","homepage":"","size":5342,"stargazers_count":27,"watchers_count":27,"language":"Java","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":73,"mirror_url":null,"open_issues_count":24,"forks":73,"open_issues":24,"watchers":27,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/nightscout/android-uploader/pulls/144"},"html":{"href":"https://github.com/nightscout/android-uploader/pull/144"},"issue":{"href":"https://api.github.com/repos/nightscout/android-uploader/issues/144"},"comments":{"href":"https://api.github.com/repos/nightscout/android-uploader/issues/144/comments"},"review_comments":{"href":"https://api.github.com/repos/nightscout/android-uploader/pulls/144/comments"},"review_comment":{"href":"https://api.github.com/repos/nightscout/android-uploader/pulls/comments/{number}"},"commits":{"href":"https://api.github.com/repos/nightscout/android-uploader/pulls/144/commits"},"statuses":{"href":"https://api.github.com/repos/nightscout/android-uploader/statuses/88d14cc2700e035f49c4031637429376ef998e2f"}}}}