Skip to content

fix: only lookup up to 200 ids per request#166

Open
jonaskuske wants to merge 3 commits intofacundoolano:masterfrom
jonaskuske:patch-1
Open

fix: only lookup up to 200 ids per request#166
jonaskuske wants to merge 3 commits intofacundoolano:masterfrom
jonaskuske:patch-1

Conversation

@jonaskuske
Copy link

@jonaskuske jonaskuske commented Oct 15, 2021

The /lookup endpoint can only handle up to 200 ids per request, if you send more you get 502 Bad Gateway.

This is what's happening here: #161

To avoid this error, we can split up all requested IDs into chunks of 200, then send a separate request per chunk and merge the results of the requests into a single result array again.

fix #161

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.

Error on search method with short term fields

1 participant