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

feat: batch api requests #143

Merged
merged 7 commits into from
Apr 1, 2025
Merged

feat: batch api requests #143

merged 7 commits into from
Apr 1, 2025

Conversation

edezekiel
Copy link
Contributor

@edezekiel edezekiel commented Mar 28, 2025

Bug: Scan eol fails on any Node version when dealing with thousands of purls

Screenshot 2025-03-28 at 9 43 26 AM

Cause: large lists of purls (several thousand lines) exceeds the BE request entity limit.

Solution: batch requests using Promise.allSettled and combine the results.

API errors with `request entity too large` when there are thousands
of purls.

WIP because this still doesn't work with node 18 for some reason.
Add logging. Still broken on node 18.
Set limit to 1000 purls per request.
@edezekiel edezekiel requested a review from a team as a code owner March 28, 2025 20:42
@edezekiel edezekiel changed the title Ee/batch api requests feat: batch api requests Mar 28, 2025
@marco-ippolito marco-ippolito merged commit 3981b0f into main Apr 1, 2025
14 checks passed
@marco-ippolito marco-ippolito deleted the ee/batch-api-requests branch April 1, 2025 09:51
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.

4 participants