Welcome! Log In Create A New Profile

Advanced

Re: proxy_next_upstream exemption for 429 "too many requests"

Marques Johansson
October 20, 2016 08:32AM
I was mistaken. I wasn't triggering 429s reliably. They are being passed
through as expected.

I will use proxy_pass_header Retry-After to get the behavior I wanted for
503s.

Some of my server 503s may be application/json while others are text/html.

I would like to pass the json responses through while nginx returns its
own 503 response instead of server 503 html responses.

That doesn't seem to be possible with the existing proxy options.

On Wed, Oct 19, 2016 at 8:37 PM, Piotr Sikora <piotrsikora@google.com>
wrote:

> Hey Marques,
>
> > "proxy_next_upstream error" has exemptions for 402 and 403. Should it
> not
> > have exemptions for 429 "Too many requests" as well?
> >
> > I want proxied servers' 503 and 429 responses with "Retry-After" to be
> > delivered to the client as the server responded. The 429s in this case
> > contain json bodies.
>
> Actually, after re-reading your email, I'm confused... 429 responses
> aren't matched by "proxy_next_upstream error" (with or without my
> patches), and are passed as-is to the client.
>
> Maybe you're using "proxy_intercept_errors" with custom error pages?
>
> Best regards,
> Piotr Sikora
>
> _______________________________________________
> nginx mailing list
> nginx@nginx.org
> http://mailman.nginx.org/mailman/listinfo/nginx
>
_______________________________________________
nginx mailing list
nginx@nginx.org
http://mailman.nginx.org/mailman/listinfo/nginx
Subject Author Posted

proxy_next_upstream exemption for 429 "too many requests"

Marques Johansson October 19, 2016 04:40PM

Re: proxy_next_upstream exemption for 429 "too many requests"

Piotr Sikora October 19, 2016 08:22PM

Re: proxy_next_upstream exemption for 429 "too many requests"

Piotr Sikora October 19, 2016 08:38PM

Re: proxy_next_upstream exemption for 429 "too many requests"

Marques Johansson October 20, 2016 08:32AM



Sorry, only registered users may post in this forum.

Click here to login

Online Users

Guests: 318
Record Number of Users: 8 on April 13, 2023
Record Number of Guests: 421 on December 02, 2018
Powered by nginx      Powered by FreeBSD      PHP Powered      Powered by MariaDB      ipv6 ready