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

Google Drive source fails indexing due to missing 'parents' #75

Closed
iderdik opened this issue Mar 28, 2023 · 1 comment
Closed

Google Drive source fails indexing due to missing 'parents' #75

iderdik opened this issue Mar 28, 2023 · 1 comment

Comments

@iderdik
Copy link

iderdik commented Mar 28, 2023

The document in question was shared from another use's Drive (in case that matters).

2023-03-28 16:40:40,412 | INFO | google_drive.py:138 | processing file [redacted]
2023-03-28 16:40:41,468 | ERROR | base_data_source.py:120 | Error while indexing data source
Traceback (most recent call last):
  File "/app/data_source/api/base_data_source.py", line 118, in index
    self._feed_new_documents()
  File "/app/data_source/sources/google_drive/google_drive.py", line 105, in _feed_new_documents
    self._feed_drive(drive=drive)
  File "/app/data_source/sources/google_drive/google_drive.py", line 131, in _feed_drive
    self._feed_file(file)
  File "/app/data_source/sources/google_drive/google_drive.py", line 172, in _feed_file
    parent_name = self._get_parents_string(file)
  File "/app/data_source/sources/google_drive/google_drive.py", line 101, in _get_parents_string
    return self._get_parent_name(file['parents'][0]) if file['parents'] else ''
KeyError: 'parents'
@Roey7
Copy link
Contributor

Roey7 commented Apr 6, 2023

Fixed in 0.0.28, thanks! 🧦

@Roey7 Roey7 closed this as completed Apr 6, 2023
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

2 participants