Bug Report
Prerequisites
Description
When using the Chaos Handler in Javascript, it feels like the next retry never happens because the Retry-After is set at 300 seconds. Making it 3 seconds (like on the C# SDK) would be beneficial to test code with proper timings.
Steps to Reproduce
- I'm creating an Array of Middleware with the following middlewares
const middleware: Middleware[] = [
new AuthenticationHandler(this),
new RetryHandler(new RetryHandlerOptions()),
new ChaosHandler(
new ChaosHandlerOptions(ChaosStrategy.MANUAL, 'An error', 429, 50, {
error: { code: 'ApplicationThrottled', message: 'Application is over its MailboxConcurrency limit.' },
})
),
new TelemetryHandler(),
new HTTPMessageHandler(),
];
- When calling Graph, 50% of the time, ChaosHandler picks up but waits for 300 seconds before a second attempt occurs
Expected behavior:
I'm expecting my request to be retried within 3 seconds
Actual behavior: [What actually happened]
Usage Information
SDK Version - 3.0.0
Node Version - [The version of Node you are using]
Browser Name - Edge
Version - 89.0
AB#9062
Bug Report
Prerequisites
Description
When using the Chaos Handler in Javascript, it feels like the next retry never happens because the Retry-After is set at 300 seconds. Making it 3 seconds (like on the C# SDK) would be beneficial to test code with proper timings.
Steps to Reproduce
Expected behavior:
I'm expecting my request to be retried within 3 seconds
Actual behavior: [What actually happened]
Usage Information
SDK Version - 3.0.0