Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

folderResponse.folders from example always empty #54

Open
obriankevin11 opened this issue Feb 26, 2020 · 0 comments
Open

folderResponse.folders from example always empty #54

obriankevin11 opened this issue Feb 26, 2020 · 0 comments

Comments

@obriankevin11
Copy link

obriankevin11 commented Feb 26, 2020

Hi,

First thank you for your lib.

I have a problem using it, I think your example is incomplete.

I get

UnhandledPromiseRejectionWarning: Unhandled promise rejection (rejection id: 1): ReferenceError: NodeGoogleDrive is not defined

If I write
const { NodeGoogleDrive } = require('node-google-drive');

I get

UnhandledPromiseRejectionWarning: Unhandled promise rejection (rejection id: 1): TypeError: NodeGoogleDrive is not a constructor

[Edit]
I have no error with:
const NodeGoogleDrive = require('node-google-drive');

But folderResponse.folders is always empty.

[Edit]
OK I'm using a service account so I needed to share my root folder with it!

Thank you

@obriankevin11 obriankevin11 changed the title Example doesn't work folderResponse.folders from example always empty Feb 26, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant