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

Sharepoint connector indexing error #2804

Open
4l4n4r0 opened this issue Oct 15, 2024 · 0 comments
Open

Sharepoint connector indexing error #2804

4l4n4r0 opened this issue Oct 15, 2024 · 0 comments

Comments

@4l4n4r0
Copy link

4l4n4r0 commented Oct 15, 2024

Hi! I got an error during the indexing phase of a Sharepoint connector, in particular in the function _convert_driveitem_to_document.

I'm running Danswer via docker, built from source from commit ba712d4.

Here's the full error trace:

Traceback (most recent call last):
  File "/app/danswer/background/indexing/run_indexing.py", line 198, in _run_indexing
    for doc_batch in connector_runner.run():
  File "/app/danswer/connectors/connector_runner.py", line 48, in run
    yield from self.doc_batch_generator
  File "/app/danswer/connectors/sharepoint/connector.py", line 171, in _fetch_from_sharepoint
    doc_batch.append(_convert_driveitem_to_document(driveitem))
                     ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/app/danswer/connectors/sharepoint/connector.py", line 43, in _convert_driveitem_to_document
    file=io.BytesIO(driveitem.get_content().execute_query().value),
         ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
TypeError: a bytes-like object is required, not 'list'
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