dosubot[bot] commented on issue #8535: URL: https://github.com/apache/incubator-devlake/issues/8535#issuecomment-3184375496
<!-- Answer --> The 504 Gateway Timeout is almost certainly caused by a hardcoded 2-second timeout in the Azure DevOps plugin’s API client. If any call to the Azure DevOps API takes longer than 2 seconds (which is common for repo listing in some environments), the request fails and surfaces as a 504, regardless of your nginx or ingress settings. There’s no retry logic, so even a brief delay can break the whole operation. You can confirm this by checking your DEBUG logs for errors like "context deadline exceeded" or similar timeout messages. Unfortunately, the only real fix is to increase the timeout in the plugin code—there’s currently no config option for this. As a workaround, you could try reducing the number of projects/repos or running DevLake in an environment with lower latency to Azure DevOps, but a code change is ultimately needed to make the timeout configurable. If you share specific DEBUG log lines, I can help interpret them to confirm this diagnosis. Reference: [Azure DevOps plugin client code](https://github.com/apache/incubator-devlake/blob/2c15ad880dce830c6512fa58039527cbf4745b8b/backend/plugins/azuredevops_go/api/azuredevops/client.go) <!-- Dosu Comment Footer --> *To reply, just mention [@dosu](https://go.dosu.dev/dosubot).* --- <sup>How did I do? [Good](https://app.dosu.dev/response-feedback/48b3cff1-d323-41a3-84b0-68ad4b2ce640?feedback_type=great_response) | [Irrelevant](https://app.dosu.dev/response-feedback/48b3cff1-d323-41a3-84b0-68ad4b2ce640?feedback_type=irrelevant_answer) | [Incorrect](https://app.dosu.dev/response-feedback/48b3cff1-d323-41a3-84b0-68ad4b2ce640?feedback_type=incorrect_sources) | [Verbose](https://app.dosu.dev/response-feedback/48b3cff1-d323-41a3-84b0-68ad4b2ce640?feedback_type=too_verbose) | [Hallucination](https://app.dosu.dev/response-feedback/48b3cff1-d323-41a3-84b0-68ad4b2ce640?feedback_type=hallucination) | [Report 🐛](https://app.dosu.dev/response-feedback/48b3cff1-d323-41a3-84b0-68ad4b2ce640?feedback_type=bug_report) | [Other](https://app.dosu.dev/response-feedback/48b3cff1-d323-41a3-84b0-68ad4b2ce640?feedback_type=other)</sup> [](https://app.dosu.dev/b4e8e847-d479-4541-83a8-d88d83fea5c9/ask?utm_source=githu b) [](https://go.dosu.dev/discord-bot) [](https://twitter.com/intent/tweet?text=%40dosu_ai%20helped%20me%20solve%20this%20issue!&url=https%3A//github.com/apache/incubator-devlake/issues/8535) -- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. To unsubscribe, e-mail: dev-unsubscr...@devlake.apache.org For queries about this service, please contact Infrastructure at: us...@infra.apache.org