Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Checksum error if uploading while Omnipod DASH is still generating IBF file (UPLOAD-1402) #1669

Merged
merged 4 commits into from
Jan 7, 2025
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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