unkyulee / micro-journal

Other
233 stars 7 forks source link

contents garbled of ujournal.txt uploaded to Google Drive. #3

Closed CelloGit closed 5 months ago

CelloGit commented 5 months ago

Weird issue. System syncs fine to Google Drive but contents of each uploaded (and datetimestamped) ujournal.txt is garbled. For instance file contents "abcdefh" results in "YWJjZGVmZ2gKCg==" and "h" results in "aA==". Built system myself.

unkyulee commented 5 months ago

Seems like Google Script is not updated. It is BASE64 encoded text that ESP32 is sending to the google apps script. In the script, it should be decoding it. I believe you have older version of the google apps script deployed.

CelloGit commented 5 months ago

Indeed used an older version of sync.js file. Solved. Thanks for your quick response.