microsoft-graph-toolkit icon indicating copy to clipboard operation
microsoft-graph-toolkit copied to clipboard

Provide support for Chaos Handler

Open Ryan365Apps opened this issue 4 years ago • 3 comments

Proposal: Provide support for Chaos Handler

Description

As per discussion with @sebastienlevert opening this issue to request full support for the chaos handler functionality from the Graph API JS SDK

Rationale

To allow for testing of error handling, such as when Graph API throttling occurs, when using mgt-element providers

Preferred Solution

Either allow the request pipeline to be created and passed to the client or include flags to include chaos, perhaps by the codes chosen, and adjust the pipeline accordingly.

Additional Context

Blog post on approach available using .Net https://camerondwyer.com/2021/09/23/how-to-use-the-microsoft-graph-sdk-chaos-handler-to-simulate-graph-api-errors/

Twitter conversation https://twitter.com/sebastienlevert/status/1491555809498701826?s=20&t=WzI218wVN4MJ2b47tBCQcw

Ryan365Apps avatar Feb 11 '22 10:02 Ryan365Apps

Hello Ryan365Apps, thank you for opening an issue with us!

I have automatically added a "needs triage" label to help get things started. Our team will analyze and investigate the issue, and escalate it to the relevant team if possible. Other community members may also look into the issue and provide feedback 🙌

ghost avatar Feb 11 '22 10:02 ghost

Thanks @Ryan365Apps! We will be looking at this, but I'm thinking this might require a bump of our dependency on the Graph JS SDK. This was added in the v3 of the SDK and I wouldn't want to work backwards. https://github.com/microsoftgraph/msgraph-sdk-javascript/pull/429

sebastienlevert avatar Feb 14 '22 17:02 sebastienlevert

Will work with v3! Closing as fixed in our @next branch!

sebastienlevert avatar Nov 01 '22 20:11 sebastienlevert