title: Google sheet and Script editor under debug returns different resut
body: <p>I am using Google Sheet to retrieve information from Alpha Vantage.  If I run the below code under debug and inspect variable v, v has the data that I want.</p>
  <p>If I call the function in a sheet, it return &quot;Thank you for using Alpha Vantage! Our standard API call frequency is 5 calls per minute and 500 calls per day....&quot; which imply that I have called function more often than I am allowed to.</p>
  <p>I have tried this multiple times. I always get the right results in debug and wrong result in the sheet. Any suggestion?</p>
  <pre><code>function AVFunction()
  {
    var func=&quot;OVERVIEW&quot;
      var query=&quot;AAPL&quot;  
      var v= AVImportJSON(func,query,&quot;&quot;);
      return v;  // &lt;-breakpoint
  }
  </code></pre>
  <p>AVImportJSON is a wrap that eventually uses the code from  <a href="http://blog.fastfedora.com/projects/import-json" rel="nofollow noreferrer">http://blog.fastfedora.com/projects/import-json</a></p>
  <p>Edit: There is only one cell that call the function.</p>