Google Drive API daily limit for unauthenticated usage exceeded

I get an error when using the Google API. having the right to connect to Google Drive and add a new sheet and insert data into it.

It worked until yesterday, but when I launch the application today. Im getting the error:

The error appears after users gave a token and tried to access the DRIVE API to get all the files

domain: "usageLimits" extendedHelp: "https://code.google.com/apis/console" message: "Daily Limit for Unauthenticated Use Exceeded. Continued use requires signup." reason: "dailyLimitExceededUnreg" 

I have not changed any settings. The following API allows you to use the access token for my application. I have to add / enable more API for it to work.

enter image description here

+2
javascript google-drive-sdk google-spreadsheet-api google-api google-drive-realtime-api
source share
2 answers

The problem was getting the access token. I did not provide the correct areas. When I changed the scope to

https://spreadsheets.google.com/feeds https://docs.google.com/feeds https://www.googleapis.com/auth/drive.file

it worked fine

+3
source share

I used NodeJS to download the file, but forgot to pass auth.

I originally used:

 function downloadFiles() { const service = google.drive('v3'); const dest = fs.createWriteStream('/tmp/foo.csv'); const fileId = '12345_ID_GOES_HERE'; service.files.export({ fileId: fileId, mimeType: 'text/csv' }); } 

I added the auth argument to the function and passed it to the export method:

 function downloadFiles(auth) { const service = google.drive('v3'); const dest = fs.createWriteStream('/tmp/foo.csv'); const fileId = '12345_ID_GOES_HERE'; service.files.export({ auth: auth, fileId: fileId, mimeType: 'text/csv' }) } 

I get auth instantiating google-auth-library

+1
source share

All Articles