Skip to content

fix(core): extract large pagination arrays without stack overflow - #880

Open
Marve10s wants to merge 1 commit into
alchemy-run:mainfrom
Marve10s:fix/pagination-large-item-arrays
Open

Marve10s wants to merge 1 commit into
alchemy-run:mainfrom
Marve10s:fix/pagination-large-item-arrays

Conversation

@Marve10s

Copy link
Copy Markdown

extractItems throws RangeError: Maximum call stack size exceeded when a response contains a large item array. A page with 200,000 items fails before emitting its items because getItems spreads the array into arguments to push.

Append the items individually so extraction avoids the engine's argument limit while preserving item order and array iteration behavior.

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.

1 participant