-
Notifications
You must be signed in to change notification settings - Fork 220
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Chaos Handler not working as expected #1297
Comments
You probably haven't added the middleware directly to the chain when initializing your Client. You can see some docs here : https://github.com/microsoftgraph/msgraph-sdk-javascript/blob/dev/docs/ChaosHandlerSamples.md Also, we have a new offering that offers similar capabilities without the need of configuring your code. You can look at our Microsoft Graph Developer Proxy right here! |
Thanks for your response @sebastienlevert. I am using something like this:
And this throws an error in lambda like this:
Also it looks like there is no documentation to install the Microsoft Graph developer proxy in wsl or linux. |
Any updates on this? We needed this to test this to see how it behaves before we push our code to production. |
FYI @koros. Is it possible the chaos handler has issues? Or what would be the right config to use? |
I can't tell for sure i'd like to do more tests |
Bug Report
Prerequisites
For more information, see the
CONTRIBUTING
guide.Description
I am trying to throw some throttling errors for a graph client using js randomly with 429 status code. So I created Chaos handler and added it as a middleware for that graph request via
middlewareOptions
and checked it, To my surprise, it received the correct response and didn't try to throw the error.Steps to Reproduce
Expected behavior:
I am expecting to throw error so that I can
catch
it and handle it accordingly.Actual behavior:
It returns the response data from the API request.
Additional Context
Add any other context about the problem here..
Usage Information
Request ID - Value of the
requestId
field if you are receiving a Graph API error responseSDK Version - 3.0.5
The text was updated successfully, but these errors were encountered: