Cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

TypeError: Cannot call method "getContentText" of undefined.

I've gotten the above error from google for since the 29th for an automated script that I've been running for a while now. 

The failing line is:

  var o = Utilities.jsonParse(result.getContentText());

Nothing has changed, that I can tell.

 

Any ideas?

 

Thanks,

Dan

Best Answer
0 Votes
1 REPLY 1

@SunsetRunner

I  realize this is an old thread, but I found it by searching for this same issue.

I started to get the same error as you after the script's been working for the last 4 months (when I first started using it).

I solved it, I think, by bumping the start date in the "fitbit/setup" menu to a more recent date. (Changed it from 01-01-2018 to 03-01-2018). I guess every 3 months or so the start time should be bumped up. This seems to have fixed it, so far. Time will tell.

Best Answer
0 Votes