title: How to fix the "Service invoked too many times for one day: urlfetch" error?
body: <p>I am getting the following error in my Google sheet:</p>
  <pre><code>Service invoked too many times for one day: urlfetch
  </code></pre>
  <p>I know for a fact I am not making 100k calls, but I do have quite a few custom functions in my sheet. I tried to make a new sheet and copy/paste the script into that one, but I still get the same error. I then <em>switched</em> my account, made a new sheet, added the code, and I <em>still</em> got the error.</p>
  <p>Is this just because I am on the same computer? Is Google smart enough to realize I am the same person trying to do it? I highly doubt that, so I am wondering why it would be throwing this error, even after switching accounts and making a new sheet.</p>
  <p>In addition to that, is there any way to make sure I don't go over the limit in the future? This error sets me back at least a day with what I was working on. I do plan to write a script to just copy/paste the imported HTML as values into another sheet, but until I get that working, I need a temporary fix.</p>
  <hr />
  <p>Sample code:</p>
  <pre class="lang-js prettyprint-override"><code>function tbaTeamsAtEvent(eventcode){
    return ImportJSON(&quot;https://www.thebluealliance.com/api/v3/event/&quot; + eventcode + &quot;/teams?X-TBA-Auth-Key=&quot; + auth_key);
  }
  
  function ImportJSONForTeamEvents(url, query, options){
    var includeFunc = includeXPath_;
    var transformFunc = defaultTransform_;
    var jsondata = UrlFetchApp.fetch(url);
    var object   = JSON.parse(jsondata.getContentText());
    var newObject = [];
    for(var i = 0; i &lt; object.length; i++){
      var teamObject = {};
      teamObject.playoff = object[i].alliances
      
      newObject.push(teamObject);
    }
    
    return parseJSONObject_(object, query, &quot;&quot;, includeFunc, transformFunc);
  }
  </code></pre>
  <p>That is one &quot;set&quot; of code that is used for a specific function. I am pulling two different functions multiple times. I have about 600 of one function, and 4 of another. That would only be just over a thousand calls if all were run simultaneously.</p>
  <p>I should note that I also have another sheet in my drive that automatically updates every hour with a <code>UrlFetch</code>. I do no believe this should affect this though, due to the very low pull rate.</p>