GenericRandomErrorPlugin
Fails requests with a random selected error from file containing mocked errors.
Plugin instance definition
{
"name": "GenericRandomErrorPlugin",
"enabled": true,
"pluginPath": "~appFolder/plugins/dev-proxy-plugins.dll",
"configSection": "genericRandomErrorPlugin",
"urlsToWatch": [
"https://api.openai.com/*"
]
}
Configuration example
{
"genericRandomErrorPlugin": {
"errorsFile": "errors.json"
}
}
Configuration properties
Property | Description | Default |
---|---|---|
errorsFile |
Path to the file that contains error responses. | No default |
retryAfterInSeconds |
The number of seconds to wait before retrying the request. Included on the Retry-After response header for dynamic throttling. |
5 |
Command line options
None
Collaborate with us on GitHub
The source for this content can be found on GitHub, where you can also create and review issues and pull requests. For more information, see our contributor guide.