langchain/docs
Anatolii Kmetiuk 34a64101cc
Add explanations to GoogleDriveLoader how to avoid errors (#11335)
- **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.

---------

Co-authored-by: Erick Friis <erick@langchain.dev>
2023-10-04 11:12:54 -04:00
..
_scripts llm feat table revision (#10947) 2023-09-22 10:29:12 -07:00
api_reference add model feat table (#10921) 2023-09-22 01:10:27 -07:00
docs_skeleton Use term keyword according to the official python doc glossary (#11338) 2023-10-03 12:56:08 -07:00
extras Add explanations to GoogleDriveLoader how to avoid errors (#11335) 2023-10-04 11:12:54 -04:00
snippets Docs: improve similarity search examples (#11298) 2023-10-03 21:47:08 -04:00
.local_build.sh Update local script for docs build (#8377) 2023-07-27 13:13:59 -07:00
vercel_requirements.txt Add api cross ref linking (#8275) 2023-07-26 12:38:58 -07:00