Chaos Handler not working as expected
@koros já está trabalhando nisso.
Desde 21/7/2023.
Avaliação
Esta issue ainda não foi avaliada.
Descrição
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?
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
- Initialise a graphClient using @microsoft/microsoft-graph-client
- Added chaos Handler something like this:
await graphClient.api(path).middlewareOptions([
new ChaosHandlerOptions(
ChaosStrategy.MANUAL,
'Retry Error',
429,
100,
)]).get()
- So As the chaos percentage is 100%, I should be expecting all throtling exceptions, But it didn't happen.
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 response
SDK Version - 3.0.5
- Node (Check, if using Node version of SDK)
Node Version - 18.13.0
- Browser (Check, if using Browser version of SDK)
Browser Name - [The name of Browser that you are using for SDK]
Version - [The version of the browser you are using]
- Linguagem predominante
- TypeScript
- Estrelas
- 833
- Forks
- 240
- Métricas de merge de PRs
- Nenhum PR com merge em 30d
Guia de contribuição
Primeiros passos
- Leia a issue inteira e depois o guia de contribuição do projeto.
- Comente na issue dizendo que vai assumir — evita que duas pessoas façam o mesmo trabalho.
- Faça um fork do repositório e trabalhe em uma branch.
- Abra um pull request que referencie o número da issue.
Mais de microsoftgraph/msgraph-sdk-javascript
-
status:waiting-for-triage
Dificuldade 1/5 Menos de uma hora Facilidade para iniciantes 62/100
-
Is anyone here? Aberta
Dificuldade 4/5 3-5 dias Facilidade para iniciantes 25/100
microsoftgraph/msgraph-sdk-javascript#2005 · 1 reação ·
-
Is it really correct that the Javascript version of the graph SDK doesn't offer typed requests? Abertastatus:waiting-for-triage
Dificuldade 5/5 Mais de uma semana Facilidade para iniciantes 42/100
-
status:waiting-for-triage type:bug
Dificuldade 3/5 1-2 dias Facilidade para iniciantes 48/100
microsoftgraph/msgraph-sdk-javascript#1999 · 2 comentários · 1 reação ·
-
status:waiting-for-triage type:bug
Dificuldade 4/5 3-5 dias Facilidade para iniciantes 45/100
Todas as issues de microsoftgraph/msgraph-sdk-javascript
Issues semelhantes
-
blocklist removal
Dificuldade 2/5 1-3 horas Facilidade para iniciantes 65/100
MetaMask/eth-phishing-detect#296544 ·
-
Dificuldade 2/5 1-3 horas Facilidade para iniciantes 70/100
pastelsky/bundlephobia#1122 ·
-
Dificuldade 2/5 1-3 horas Facilidade para iniciantes 70/100
-
category/development priority/P2 scope/file-operations scope/testing type/enhancement
Dificuldade 2/5 1-3 horas Facilidade para iniciantes 75/100
-
Enatega Customer and Rider app: Add-ons price is not visible to customer after order is placed. Aberta
Dificuldade 2/5 1-3 horas Facilidade para iniciantes 75/100