dwaring87 / rtm-cli

Remember the Milk Command Line Interface
MIT License
66 stars 14 forks source link

unexpected end of JSON input #17

Closed yina closed 4 years ago

yina commented 4 years ago

running "rtm ls" produces a syntax error:

ERROR: SyntaxError: /Users/<userdir>/.rtm.indexcache.json: Unexpected end of JSON input

I run a script daily and sometime in the past, it just started to fail.

did something change at the api level from RTM? Any thoughts appreciated.

yina commented 4 years ago

figured it out. just have to delete a corrupt .rtm.indexcache.json.

dwaring87 commented 4 years ago

That file is created by rtm-api to keep a list of index numbers associated with each task. Let me know if becomes corrupt again as that's something I'll have to look into.

yina commented 4 years ago

It wasn't corrupt as much as it was just a blank file that once I deleted, was regenerated, and all is well. However will let you know if it happens again. thank you!