Title: RetryHandler does not retry in case of 429 error · Issue #160 · microsoftgraph/msgraph-sdk-java-core · GitHub
Open Graph Title: RetryHandler does not retry in case of 429 error · Issue #160 · microsoftgraph/msgraph-sdk-java-core
X Title: RetryHandler does not retry in case of 429 error · Issue #160 · microsoftgraph/msgraph-sdk-java-core
Description: Issue Class : com.microsoft.graph.httpcore.RetryHandler When graph endpoint for adding tabs POST: /tabs gives throttling (429) error. When RetryHandler calls retryRequest it checks for isBuffered where it requires header Transfer-Encodin...
Open Graph Description: Issue Class : com.microsoft.graph.httpcore.RetryHandler When graph endpoint for adding tabs POST: /tabs gives throttling (429) error. When RetryHandler calls retryRequest it checks for isBuffered w...
X Description: Issue Class : com.microsoft.graph.httpcore.RetryHandler When graph endpoint for adding tabs POST: /tabs gives throttling (429) error. When RetryHandler calls retryRequest it checks for isBuffered w...
Opengraph URL: https://github.com/microsoftgraph/msgraph-sdk-java-core/issues/160
X: @github
Domain: github.com
IPv4 address: 140.82.113.3
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"RetryHandler does not retry in case of 429 error","articleBody":"\u003c!-- Read me before you submit this issue\r\n\r\nFirst off, thank you for taking the time to open this issue! We do appreciate it. Please bear with us if we don't get to this right away.\r\n\r\nIf this is a question about the Microsoft Graph service API, or a question about how to use this SDK, please post your question to StackOverflow with the [microsoftgraph] tag.\r\nhttps://stackoverflow.com/questions/tagged/microsoft-graph\r\n\r\nThis repo is for the Microsoft Graph Java SDK. Issues opened in this repo should only target this SDK.\r\n\r\nBefore you open this issue, did you:\r\n- Search the issues to determine whether someone already opened this issue?\r\n- Search StackOverflow for an answer?\r\n- Capture the repro steps and gather the information requested in the steps below to reproduce your scenario?\r\n- Review the samples under github.com/microsoftgraph? They can help for some scenarios.\r\n- Take a look at the functional tests in this repo? They may have an example for you. See the [functional tests](https://github.com/microsoftgraph/msgraph-sdk-java/tree/master/src/test/java/com/microsoft/graph/functional)\r\n\r\nPlease provide the following before submitting this issue:\r\n- Expected behavior. Please provide **links to the specific [Microsoft Graph documentation](https://developer.microsoft.com/en-us/graph/docs/concepts/overview)** you used to determine the expected behavior. \r\n- Actual behavior. Provide error codes, stack information, and a [Fiddler](http://www.telerik.com/fiddler) capture of the request and response (please remove personally identifiable information before posting).\r\n- Steps to reproduce the behavior. Include your code, IDE versions, client library versions, and any other information that might be helpful to understand your scenario.\r\n-->\r\n\r\n### Issue Class : com.microsoft.graph.httpcore.RetryHandler\r\n\r\nWhen graph endpoint for adding tabs POST: /tabs gives throttling (429) error. When RetryHandler calls retryRequest it checks for isBuffered where it requires header Transfer-Encoding as Chunked, in order to send True and to set shouldRetry flag as True.\r\n\r\n### Expected behavior\r\nThis \"Transfer-Encoding = Chunked\" header missing case should be handle and it shouldRetry flag should get set as 'True'. So that further it wait for given time and retry again.\r\n\r\n### Actual behavior\r\nSome times header \"Transfer-Encoding = chunked\" is missing in the response headers. Causing it to return False. As a result it sets shouldRetry flag as False and it never retry again. \r\n\r\nResponse Headers : \r\n[\r\n Cache-Control : private, \r\n client-request-id : 5a064a73-9106-40ec-8dff-4069c5752de4, \r\n Content-Length : 885, \r\n Content-Type : application/json, \r\n Date : Fri, 26 Feb 2021 14:03:23 GMT, \r\n request-id : 64638ad8-1f98-49d1-9185-238341d4938e, \r\n Retry-After : 60, \r\n Strict-Transport-Security : max-age=31536000, \r\n x-ms-ags-diagnostic : \r\n {\"ServerInfo\": {\"DataCenter\":\"SouthIndia\",\"Slice\":\"SliceC\",\"Ring\":\"3\", \"ScaleUnit\":\"001\",\"RoleInstance\":\"AGSFE_IN_7\" }}\r\n]\r\n\r\nResponse Body : \r\n{\r\n\t\"error\": {\r\n\t\t\"code\": \"TooManyRequests\",\r\n\t\t\"message\": \"Too many requests from Identifier:9155ce04-4eae-42ae-905e-ac219c282f72+786c9214-bb88-448d-9a43-3afeb1518b52+786c9214-bb88-448d-9a43-3afeb1518b52 under category:throttle.teams.ags.api_complex_level_10.tenant_normal.app_normal.operation_write_sustained. Please try again later.\",\r\n\t\t\"innerError\": {\r\n\t\t\t\"date\": \"2021-02-26T14:03:23\",\r\n\t\t\t\"request-id\": \"64638ad8-1f98-49d1-9185-238341d4938e\",\r\n\t\t\t\"client-request-id\": \"5a064a73-9106-40ec-8dff-4069c5752de4\",\r\n\t\t\t\"status\": 429,\r\n\t\t\t\"code\": \"429\",\r\n\t\t\t\"message\": \"Too many requests from Identifier:9155ce04-4eae-42ae-905e-ac219c282f72+786c9214-bb88-448d-9a43-3afeb1518b52+786c9214-bb88-448d-9a43-3afeb1518b52 under category:throttle.teams.ags.api_complex_level_10.tenant_normal.app_normal.operation_write_sustained. Please try again later.\"\r\n\t\t}\r\n\t}\r\n}\r\n\r\n### Steps to reproduce the behavior\r\n1. Throttle the /tabs end point, by sending multiple tab addition requests for microsoft teams channels.\r\n2. Use microsoft graph SDK for java to add tab in channel.\r\n\r\n\u003ccode>\r\nIGraphServiceClient graphClient = GraphServiceClient.builder().authenticationProvider(authProvider).buildClient(); \r\n\u003c/code>\r\n\u003c/br>\r\n\u003ccode>\r\nTeamsTab responseTeamsTab = mGraphClient.teams(teamId).channels(channelId).tabs().buildRequest().post(lTeamsTab)\r\n\u003c/code>\r\n\r\n \r\n\r\n\r\n\r\n \r\n[AB#8330](https://microsoftgraph.visualstudio.com/0985d294-5762-4bc2-a565-161ef349ca3e/_workitems/edit/8330)","author":{"url":"https://github.com/Aaditya-Rane","@type":"Person","name":"Aaditya-Rane"},"datePublished":"2021-02-26T15:23:59Z","url":"https://github.com/microsoftgraph/msgraph-sdk-java-core/issues/160"}
| react-profiling | 0 |
| react-import-map | react,react-dom,react-dom/client,react-dom/profiling,react-is,react/compiler-runtime,react/jsx-dev-runtime,react/jsx-runtime,scheduler@b8488ee2c322 |
| route-pattern | /_view_fragments/issues/show/:user_id/:repository/:id/issue_layout(.:format) |
| route-controller | voltron_issues_fragments |
| route-action | issue_layout |
| fetch-nonce | v2:37583390-90d2-25a8-76ce-027a29b13075 |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | DBDA:1E9A:115D814:173007A:6B052B8F |
| html-safe-nonce | 818683edf9858d92429414287a5af4c635154cfc38d93d8e34591074a6eb2c5a |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJEQkRBOjFFOUE6MTE1RDgxNDoxNzMwMDdBOjZCMDUyQjhGIiwidmlzaXRvcl9pZCI6IjM4NjczNDk0MzU5OTg4NzQ1MTEiLCJyZWdpb25fZWRnZSI6ImlhZCIsInJlZ2lvbl9yZW5kZXIiOiJpYWQifQ== |
| visitor-hmac | 9806b248e4fc9268840676679ca2e1217d314280aa734cc7c9773b5cbd32a2c1 |
| hovercard-subject-tag | issue:817445039 |
| github-keyboard-shortcuts | repository,issues,copilot |
| google-site-verification | Apib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I |
| octolytics-url | https://collector.github.com/github/collect |
| analytics-location | / |
| fb:app_id | 1401488693436528 |
| apple-itunes-app | app-id=1477376905, app-argument=https://github.com/_view_fragments/issues/show/microsoftgraph/msgraph-sdk-java-core/160/issue_layout |
| twitter:image | https://opengraph.githubassets.com/f11b6931bc787950ba5252b0b86b5a1182e941bc82725ff3bf95b4c9caf4a42d/microsoftgraph/msgraph-sdk-java-core/issues/160 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/f11b6931bc787950ba5252b0b86b5a1182e941bc82725ff3bf95b4c9caf4a42d/microsoftgraph/msgraph-sdk-java-core/issues/160 |
| og:image:alt | Issue Class : com.microsoft.graph.httpcore.RetryHandler When graph endpoint for adding tabs POST: /tabs gives throttling (429) error. When RetryHandler calls retryRequest it checks for isBuffered w... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | Aaditya-Rane |
| hostname | github.com |
| expected-hostname | github.com |
| None | 854d880890b5e847b3fce9d1b31f032107baeddeebad2aa379c48aa4f1451f6b |
| turbo-cache-control | no-preview |
| go-import | github.com/microsoftgraph/msgraph-sdk-java-core git https://github.com/microsoftgraph/msgraph-sdk-java-core.git |
| octolytics-dimension-user_id | 17304259 |
| octolytics-dimension-user_login | microsoftgraph |
| octolytics-dimension-repository_id | 154607328 |
| octolytics-dimension-repository_nwo | microsoftgraph/msgraph-sdk-java-core |
| octolytics-dimension-repository_public | true |
| octolytics-dimension-repository_is_fork | false |
| octolytics-dimension-repository_network_root_id | 154607328 |
| octolytics-dimension-repository_network_root_nwo | microsoftgraph/msgraph-sdk-java-core |
| turbo-body-classes | logged-out env-production page-responsive |
| disable-turbo | false |
| browser-stats-url | https://api.github.com/_private/browser/stats |
| browser-errors-url | https://api.github.com/_private/browser/errors |
| release | 220e980097d94ce616d5d11fbd5316d208e3fc93 |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
| react-app-name | issues |
Links:
| Server | github.com |
| Content-Type | text/html; charset=utf-8 |
| Cache-Control | max-age=0, private, must-revalidate |
Viewport: width=device-width