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

The Retry-After header is (potentially) overridden by App Runner #244

Open
infinerh opened this issue Apr 11, 2024 · 0 comments
Open

The Retry-After header is (potentially) overridden by App Runner #244

infinerh opened this issue Apr 11, 2024 · 0 comments

Comments

@infinerh
Copy link

We have a Nest JS service which is compiled and built into a Docker image, hosted on ECR and deployed by App Runner.
We have implemented rate limiting strategies for certain requests and as such we can return responses with a 429 status and the Retry-After header set to a seconds value.
We notice that when this happens on the application deploy to App Runner, the header returned in the response contains a 0 seconds value.
This is not a problem when we run the same service locally or even when we run the Docker image from the ECR locally and logs from the instance deployed to App Runner confirm that the number of seconds is calculated correctly even if we do not receive that number in the response.
It is obviously difficult to confirm, since the system is a black box, but it seems that App Runner may be overriding the value of the Retry-After header. Is this something that happens and, if so, why? How can we ensure that the value the application returns is respected?

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

No branches or pull requests

1 participant