GenericRandomErrorPlugin
從包含模擬錯誤的檔案中隨機選取錯誤的要求失敗。
外掛程式實例定義
{
"name": "GenericRandomErrorPlugin",
"enabled": true,
"pluginPath": "~appFolder/plugins/dev-proxy-plugins.dll",
"configSection": "genericRandomErrorPlugin",
"urlsToWatch": [
"https://api.openai.com/*"
]
}
設定範例
{
"genericRandomErrorPlugin": {
"errorsFile": "errors.json"
}
}
設定屬性
屬性 | 描述 | 預設 |
---|---|---|
errorsFile |
包含錯誤回應的檔案路徑。 | 無預設值 |
retryAfterInSeconds |
重試要求之前要等候的秒數。 包含在 Retry-After 動態節流的響應標頭中。 |
5 |
命令列選項
無