question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

google.drive.files.list v3 parameters ignored?

See original GitHub issue

Hey!

I’m trying to get files from my google drive, but looks like the v3 parameters are completely ignored, even if I send a ‘pageSize’ of 1, I always get 100 results. When I specify fields to get additional data from the files I always get the same 4 fields: kind, id, name and mimeType.

Simple call:

const gdrive = google.drive('v3');

gdrive.files.list({
    auth: authClient,
    pageSize: 1
}

Using googleapis 26.0.1 (also tried with 25).

Thanks!

Issue Analytics

  • State:closed
  • Created 6 years ago
  • Reactions:1
  • Comments:15 (6 by maintainers)

github_iconTop GitHub Comments

1reaction
JustinBeckwithcommented, Mar 15, 2018

Greetings! Please remove google-auth-library from your package.json, run ‘npm install’, and try again 😃

0reactions
vbunjescommented, Mar 27, 2018

@philcal This works now with this example code, weird this is not yet fixed on the google quick start

Read more comments on GitHub >

github_iconTop Results From Across the Web

Files: list | Google Drive
Lists or searches files. Try it now. This method accepts the q parameter, which is a search query combining one or more search...
Read more >
Google Drive API Listing Files with Field Paramter Not Working
I know that the fields parameter can list more than just the default, but when I put parents as a field in the...
Read more >
Searching docs base on visibility not working as expected ...
I'm using the Drive API V2 (files/list). ... It turns out that if you use anyoneCanFind and/or anyoneWithLink... it includes also files shared...
Read more >
drive.files.list - Drive | AnyAPI Documentation
Lists or searches files. ... get https://www.googleapis.com/drive/v3/files ... approximately one million files in which the requested sort order is ignored.
Read more >
Fix common issues in Google Drive
1. Wait and try opening your files again later · 2. Try basic troubleshooting · 3. Try more advanced troubleshooting.
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found