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

Add explanations to GoogleDriveLoader how to avoid errors #11335

Merged
merged 2 commits into from
Oct 4, 2023

Conversation

anatoliykmetyuk
Copy link
Contributor

  • Description: add a paragraph to the GoogleDriveLoader doc on how to bypass errors on authentication.

For some reason, specifying credential path via credentials_path constructor parameter when creating GoogleDriveLoader makes it so that the oAuth screen is never showing up when first using GoogleDriveLoader. Instead, the RefreshError: ('invalid_grant: Bad Request', {'error': 'invalid_grant', 'error_description': 'Bad Request'}) error happens. Setting it via os.environ["GOOGLE_APPLICATION_CREDENTIALS"] = ... solves the problem. Also, token_path constructor parameter is mandatory, otherwise another error happens when trying to load() for the first time.

These errors are tricky and time-consuming to figure out, so I believe it's good to mention them in the docs.

@vercel
Copy link

vercel bot commented Oct 3, 2023

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Comments Updated (UTC)
langchain ✅ Ready (Inspect) Visit Preview 💬 Add feedback Oct 4, 2023 0:42am

@dosubot dosubot bot added Ɑ: doc loader Related to document loader module (not documentation) 🤖:docs Changes to documentation and examples, like .md, .rst, .ipynb files. Changes to the docs/ folder labels Oct 3, 2023
@efriis efriis self-assigned this Oct 3, 2023
@efriis efriis added the lgtm PR looks good. Use to confirm that a PR is ready for merging. label Oct 4, 2023
@efriis
Copy link
Member

efriis commented Oct 4, 2023

Thanks @anatoliykmetyuk !

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Ɑ: doc loader Related to document loader module (not documentation) 🤖:docs Changes to documentation and examples, like .md, .rst, .ipynb files. Changes to the docs/ folder lgtm PR looks good. Use to confirm that a PR is ready for merging.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants