Skip to content

fix: handle empty collections in download endpoint#264

Merged
joaquingx merged 1 commit intomainfrom
dev
Aug 26, 2025
Merged

fix: handle empty collections in download endpoint#264
joaquingx merged 1 commit intomainfrom
dev

Conversation

@joaquingx
Copy link
Copy Markdown
Contributor

Previously, the download endpoint would throw a 500 error when attempting to download from empty collections due to division by zero when calculating docs_limit. Now gracefully handles this case by falling back to MAX_WEB_DOWNLOAD_SIZE when the collection is empty or size estimation fails.

🤖 Generated with Claude Code

Previously, the download endpoint would throw a 500 error when attempting to download from empty collections due to division by zero when calculating docs_limit. Now gracefully handles this case by falling back to MAX_WEB_DOWNLOAD_SIZE when the collection is empty or size estimation fails.

🤖 Generated with [Claude Code](https://claude.ai/code)

Co-Authored-By: Claude <noreply@anthropic.com>
@joaquingx joaquingx merged commit 00e6c07 into main Aug 26, 2025
1 check passed
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

Successfully merging this pull request may close these issues.

2 participants