Skip to content

Make the retry-after value in GenericRandomErrorPlugin configurable #520

@waldekmastykarz

Description

@waldekmastykarz

When defining throttling responses, you can configure the GenericRandomErrorPlugin to return a 429 response with a Retry-After header. You can configure the header to a static value or to @dynamic. When you configure it do @dynamic, the Retry-After header will be set to the number of seconds remaining until the throttling window reset. Right now, when you use @dynamic, the reset window is fixed to 5 seconds. Ideally, this value should be configurable to allow for more flexibility.

Steps:

  • Introduce a new configuration property in the GenericRandomErrorPlugin named RetryAfterInSeconds
  • Update docs

Metadata

Metadata

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions