Skip to content

Commit

Permalink
Merge pull request #1669 from tidepool-org/dash-checksum-error
Browse files Browse the repository at this point in the history
Checksum error if uploading while Omnipod DASH is still generating IBF file (UPLOAD-1402)
  • Loading branch information
gniezen authored Jan 7, 2025
2 parents 0d71687 + f8b3463 commit 85310ec
Show file tree
Hide file tree
Showing 4 changed files with 11 additions and 3 deletions.
6 changes: 6 additions & 0 deletions app/actions/utils.js
Original file line number Diff line number Diff line change
Expand Up @@ -159,6 +159,12 @@ export function makeUploadCb(dispatch, getState, errCode, utc) {
displayErr.linkText = 'access to removable volumes.';
}

if (err.code === 'E_OMNIPOD_CHECKSUM') {
displayErr.message = 'Before you click to upload, please wait until your PDM displays the message';
displayErr.link = 'https://support.tidepool.org/hc/en-us/articles/360029369472-Uploading-your-Insulet-Omnipod-DASH#h_351dc475-a17c-4d1d-a66b-04912d0b652f';
displayErr.linkText = '\"Your PDM data is ready for export\".';
}

if (err.message === 'E_DATETIME_SET_BY_PUMP') {
displayErr.message = ErrorMessages.E_DATETIME_SET_BY_PUMP;
uploadErrProps.details = 'Incorrect date/time being synced from linked pump';
Expand Down
2 changes: 1 addition & 1 deletion app/package.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"name": "tidepool-uploader",
"productName": "tidepool-uploader",
"version": "2.60.0-log-shutdown.2",
"version": "2.60.0-dash-checksum-error.1",
"description": "Tidepool Project Universal Uploader",
"main": "./main.prod.js",
"author": {
Expand Down
4 changes: 3 additions & 1 deletion lib/drivers/insulet/insuletDriver.js
Original file line number Diff line number Diff line change
Expand Up @@ -1881,7 +1881,9 @@ module.exports = (config) => {
done = true;
} else {
if (!rec.valid) {
return cb('Checksum error', rec);
const err = new Error('Checksum error');
err.code = 'E_OMNIPOD_CHECKSUM';
return cb(err, rec);
}
data.npackets += 1;
offset += rec.packetlen;
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "tidepool-uploader",
"version": "2.60.0-log-shutdown.2",
"version": "2.60.0-dash-checksum-error.1",
"description": "Tidepool Project Universal Uploader",
"private": true,
"main": "main.prod.js",
Expand Down

0 comments on commit 85310ec

Please sign in to comment.