Describe the bug
Check https://www.npmx.dev/org/sindresorhus with empty cache. (actually, you need to navigate to the page via the search feature first if you want to see the 400 in your network tab, due to SSR on the direct path I guess)
- Go to the search bar
- Type
@sindresorhus, choose the org result
There's a 400 on trying to enrich all packages via Algolia because there is a 1k item limit on the getObjects endpoint which is not accounted for.
This enters a fallback codepath, which then does 1 API call per 1690 packages, and takes a very long time to load the page.
Additional context
No response
Logs
Describe the bug
Check https://www.npmx.dev/org/sindresorhus with empty cache. (actually, you need to navigate to the page via the search feature first if you want to see the 400 in your network tab, due to SSR on the direct path I guess)
@sindresorhus, choose the org resultThere's a 400 on trying to enrich all packages via Algolia because there is a 1k item limit on the
getObjectsendpoint which is not accounted for.This enters a fallback codepath, which then does 1 API call per 1690 packages, and takes a very long time to load the page.
Additional context
No response
Logs