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

projects.document_list causing Read TimeOut Errors. #156

Open
duckduckgrayduck opened this issue Aug 18, 2023 · 0 comments
Open

projects.document_list causing Read TimeOut Errors. #156

duckduckgrayduck opened this issue Aug 18, 2023 · 0 comments
Labels
bug Something isn't working

Comments

@duckduckgrayduck
Copy link
Contributor

Summary of the problem

Big projects (>10k documents), are having trouble with the wrapper loading the document list.

Steps to reproduce the bug

from documentcloud import DocumentCloud

client = DocumentCloud('invisibleinstitute', password, timeout=400)
project = client.projects.get_by_id(49649)

docs = project.document_list

What did you expect to happen?

It should return the document_list, which can be accessed. Instead, it is returning a read timeout failure. This was originally discovered by Matt Chapman on his Invisible Institute Document set of ~30k documents (1 million pages).

docs = client.documents.search("project:49649") is a workaround for now.

We have to determine if we get rid count for projects, which gets rid of it for project embeds too, in order to resolve this issue.

@duckduckgrayduck duckduckgrayduck added the bug Something isn't working label Aug 18, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant