Daily Limit for Unauthenticated Use Exceeded. Continued use requires signup

123 views
Skip to first unread message

Alan Wells

unread,
Apr 18, 2021, 8:56:55 PM4/18/21
to Google Apps Script Community
I got this error:
Daily Limit for Unauthenticated Use Exceeded. Continued use requires signup

And did a search.
There are hundreds of posts about this error.
In my case it had nothing to do with signing up for anything.
I was making an unauthenticated request to the Google Drive API in Apps Script.
As soon as I included a token in the options, the error when away.

  options = {
    "method" : "get",
    "headers" : {"Authorization": "Bearer " + ScriptApp.getOAuthToken()},
    "muteHttpExceptions":true
  }
  
  mp4_fileId = 'FILE_ID_FOR_MP4_FILE';
  downloadUrl = UrlFetchApp.fetch('https://www.googleapis.com/drive/v3/files/' + mp4_fileId + '?fields=webContentLink',options)
  Logger.log('downloadUrl: ' + downloadUrl)


Tanaike

unread,
Apr 18, 2021, 10:02:09 PM4/18/21
to Google Apps Script Community
At first, I'm not sure whether my this post is useful for your situation. I apologize for this.

For example, as the test situations, how about confirming the following tests?

1. Using your script, when Drive API v2 is used, what result will you obtain?
2. When Drive API of Advanced Google services is used without using UrlFetchApp, what result will you obtain?

When the hint for knowing the reason of your issue from above result can be obtained, I'm glad.
Reply all
Reply to author
Forward
0 new messages