You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Failed to fetch all projects visible in https://xxxx.com. Query timeout was reached #162
Activity
brendan-kellam commentedon Jan 15, 2025
Looks like you hit a timeout - Are you also using a
token? If not, try using a token since the allowed number of requests will be largerj14ncn commentedon Jan 15, 2025
yes ,We using
token. Use thecurlcommand can get the correct data.brendan-kellam commentedon Jan 15, 2025
How many repositories are in your GitLab install? I was mistaken, it's not rate limiting it's a query timeout
j14ncn commentedon Jan 15, 2025
About
6,300repos. Can we modify the query timeout?j14ncn commentedon Jan 15, 2025
brendan-kellam commentedon Jan 15, 2025
Looking at the gitbeaker docs, it defaults to 5 minutes, but can be modified via the
queryTimeoutparam in the Gitlab client.I think we can bump this to something like 30 minutes, which should be sufficient for use cases like yours with a ton of repos.
I can add that tomorrow, or feel free to open up a PR in the meantime 🤠
j14ncn commentedon Jan 15, 2025
Maybe it's not a query timeout issue, I have another gitlab instance with only 10 repos and it still has a query timeout error.
brendan-kellam commentedon Jan 15, 2025
Are you hitting the query timeout error with curl?
j14ncn commentedon Jan 15, 2025
time curl -X GET "https://xxx.cn/api/v4/projects?per_page=1000" \ -H "Private-Token: tokens"|jq0.08s user 0.03s system 1% cpu 6.210 total
j14ncn commentedon Jan 15, 2025
We modify
packages/backend/src/gitlab.ts:21queryTimeout: 600000and it seems to be working fine.huaying commentedon Jul 20, 2025
We had the same issue. Is it possible to allow user to customize the config?
brendan-kellam commentedon Jul 20, 2025
@j14ncn @huaying - I've added an environment variable in #390 , lmk if this solves your use case