Code Monkey home page Code Monkey logo

Comments (7)

davidor avatar davidor commented on August 22, 2024 1

This is a duplicate of #368

from apicast.

MarkCheshire avatar MarkCheshire commented on August 22, 2024

I am all for improving this, but I would prefer to take a bit more time and do a proper implementation with the ability to customize the response. The code to handle that was designed in a good extensible manner. The second phase beyond that would be to provide meta data response to the client about the rate limit and the time remaining until the next window.

from apicast.

kevprice83 avatar kevprice83 commented on August 22, 2024

I agree we can wait. Especially as it seems we can use the X-3scale header that will be supported according to @unleashed. This should cover most scenarios in the meantime.

from apicast.

andrewdavidmackenzie avatar andrewdavidmackenzie commented on August 22, 2024

OK.

Will the X-3scale be documented in the trouble-shooting guide. I see this behavior as a trouble-shooting problem for providers....

from apicast.

kevprice83 avatar kevprice83 commented on August 22, 2024

Once it is supported and documented it makes sense to document it also in the troubleshooting guide.

from apicast.

unleashed avatar unleashed commented on August 22, 2024

The response header referred by @kevprice83 would be (with the corresponding value):

3scale-rejection-reason: limits_exceeded

For this to work the gateway will need to provide a header in its request to backend with the following form:

3scale-options: rejection_reason_header=1

and if it not parsing the body, use instead:

3scale-options: no_body=1&rejection_reason_header=1

This needs to wait until deployment of the affected backend version, which we are working towards completing today (or given the current time, probably on Monday).

from apicast.

unleashed avatar unleashed commented on August 22, 2024

Just chipping it to say that the deployment of support for that header happened a while ago.

from apicast.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.