Skip to content

ChaosHandler send a Retry-After of 300 seconds #426

@sebastienlevert

Description

@sebastienlevert

Bug Report

Prerequisites

  • Can you reproduce the problem?
  • Are you running the latest version?
  • Are you reporting to the correct repository?
  • Did you perform a cursory search?

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

  1. 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(),
    ];
  1. 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

Node Version - [The version of Node you are using]

  • Browser

Browser Name - Edge

Version - 89.0
AB#9062

Metadata

Metadata

Labels

No labels
No labels

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions