There seems to be a new field in the Records.json which includes the battery charging data. The script cannot properly parse and errors.
"serverTimestamp": "2022-09-02T19:26:33.867Z",
"deviceTimestamp": "2022-09-02T19:26:33.407Z",
"batteryCharging": false,
"formFactor": "PHONE",
"timestamp": "2022-09-02T18:26:33.386Z"