Timeline for Graph 504 GatewayTimeout leading to CommandConcurrencyLimitReached Error
Current License: CC BY-SA 4.0
5 events
| when toggle format | what | by | license | comment | |
|---|---|---|---|---|---|
| Dec 18, 2025 at 15:16 | comment | added | Christopher Gates | I've already included the lines of code in my original post, really nothing too taxing I wouldn't have thought, and certainly they normally return very quickly, ie <1 second, but we are getting a few a day where they timeout after 30 seconds with the GatewayTimeout with the exact same calls. When this happens, we are not calling concurrently or doing retries ourselves, the only retries that are happening are from kiota (we are using >1.17). And after it has retried a couple of times it gets the concurrent error, it seems the connections aren't being discounted with a GatewayTimeout Error. | |
| Dec 17, 2025 at 14:42 | comment | added | LuKDrn | Could you provide more details or share your code to help us understand better? One of these links might help you: https://stackoverflow.com/questions/57892255/getting-error-504-gateway-timeout-while-fetching-messages-from-the-ms-graph-ap and https://learn.microsoft.com/en-us/answers/questions/1359336/graph-api-returns-504-error-even-for-single-cell-v | |
| Dec 16, 2025 at 16:28 | comment | added | Christopher Gates | Hi, this is not happening when our code is calling concurrently, this is happening when graph reports a GatewayTimeout, which appears to happen when the upstream query (which is basic) is for some reason taking longer than 30 seconds. This then seems to leave the connection recorded against the mailbox and app as still running, and counting towards the concurrency limits. Kiota is then doing multiple retries, having the same issue, resulting in a concurrency limit being hit. Therefore: 1) Why is graph timing out upstream. 2)Why is GatewayTimeout error not releasing the connection count. | |
| Dec 12, 2025 at 15:21 | comment | added | LuKDrn | Cf. https://learn.microsoft.com/en-us/graph/throttling | |
| Dec 11, 2025 at 10:39 | history | asked | Christopher Gates | CC BY-SA 4.0 |