jamietr1 / google-docs-writing-tracker

Automation scripts to track writing in Google Docs
188 stars 39 forks source link

getDailyWordCount SyntaxError: Empty JSON string (line 357, file "Code") #28

Closed lsolesen closed 9 years ago

lsolesen commented 9 years ago

I had the script working correctly for 7 days. Suddenly, I am experiencing this error. Anybody else encountered this?

jamietr1 commented 9 years ago

I've seen this happen when RescueTime's server is not available and therefore returns an empty JSON string. I have a version that fixes this particular issue so that the entire script doesn't fail. I thought I'd pushed it into the master branch, but it looks like I haven't. I'll push this fix out as soon as I get a chance.

lsolesen commented 9 years ago

That would be great, as it has started happening every night at the moment when being in ECT +1 timezone.

lsolesen commented 9 years ago

Fixed ind the newest version.