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 error code for ThrottlingError #264

Merged
merged 4 commits into from
May 20, 2024
Merged

Fix error code for ThrottlingError #264

merged 4 commits into from
May 20, 2024

Conversation

ptpaterson
Copy link
Contributor

@ptpaterson ptpaterson commented May 20, 2024

Ticket(s): FE-###

Problem

The error code for 429 throttling errors is limit_exceeded, but we are using throttle, an incorrect placeholder from preexisting code.

See canonical list of error codes from core:
https://github.com/fauna/core/blob/395d2a23d83a95c42102d5b9d02d2b49b191720c/ext/api/src/main/scala/api/fql2/FQL2Response.scala#L281

Solution

Update the error code.

Result

Correct handling of 429 limit-exceeded errors.

Out of scope

Run query limits tests locally by default: FE-5412

Testing

Concourse pipeline covers tests for exceeding query limits.

I installed the local driver in an App I have that is known to have throughput issues. Before this fix, I incorrectly get QueryRuntimeError's. After this fix, I correctly get ThrottlingError's and automatic retries work.


By submitting this pull request, I confirm that you can use, modify, copy, and redistribute this contribution, under the terms of your choice.

pnwpedro
pnwpedro previously approved these changes May 20, 2024
@ptpaterson ptpaterson requested a review from pnwpedro May 20, 2024 18:29
@ptpaterson ptpaterson merged commit b53d946 into main May 20, 2024
5 checks passed
@ptpaterson ptpaterson deleted the fix-limit-exceeded branch May 20, 2024 18:30
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.

2 participants