Provide support for Chaos Handler
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
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 🙌
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
Will work with v3! Closing as fixed in our @next branch!