Describe the bug
When trying to do a full sync of the data from AAPS to a new nightscout instance, only part of the data gets written in the database.
It's been a while since I've troubleshooted this issue, but from what I recall, in the nightscout AAPS tab the entries showed as db update, even if the db was empty.
Was not able to find correlation from the data that was actually being written and the one that was not, seemed random to me.
To Reproduce
Create new instance of nightscout
From the Nightscout AAPS tab click on the three dots on the top right and click full sync
Missing data in mongodb
Expected behavior
All the data should be uploaded
Your setup information
AAPS 3.1.0.3 + xdrip
Nightscout 14.2.6 (self build docker container)
MongoDB: 6.0.8 (docker mongo image)
Dexcom g6 + Omnipod dash
The fix that worked for me
Edit lib/server/websocket.js function at line 214 in:
Describe the bug When trying to do a full sync of the data from AAPS to a new nightscout instance, only part of the data gets written in the database. It's been a while since I've troubleshooted this issue, but from what I recall, in the nightscout AAPS tab the entries showed as db update, even if the db was empty. Was not able to find correlation from the data that was actually being written and the one that was not, seemed random to me.
To Reproduce
Expected behavior All the data should be uploaded
Your setup information
The fix that worked for me Edit
lib/server/websocket.js
function at line 214 in: