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

Fix issue with limit duplication leading to errors #204

Merged
merged 1 commit into from
Oct 11, 2023

Conversation

garethr
Copy link
Collaborator

@garethr garethr commented Oct 11, 2023

this commit introduced a default limit in the client. However, the limit is also present in the URL. That leads to the 2nd and subsequent pages failing due to passing limit=X&limit=X. That is interpreted as an array by the server, and will fail with a client error.

The fix checks the URL for the limit, and avoids the duplication if present.

[this
commit](dc75bc9)
introduced a default limit in the client. However, the limit is also
present in the URL. That leads to the 2nd and subsequent pages failing
due to passing `limit=X&limit=X`. That is interpreted as an array by the
server, and will fail with a client error.

The fix checks the URL for the limit, and avoids the duplication if
present.
@garethr garethr added the bug Something isn't working label Oct 11, 2023
@garethr garethr requested a review from lili2311 October 11, 2023 08:27
@lili2311 lili2311 merged commit 9ec5552 into master Oct 11, 2023
2 checks passed
@lili2311 lili2311 deleted the fix-limit-duplication branch October 11, 2023 09:48
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants