-
Notifications
You must be signed in to change notification settings - Fork 208
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Pulling from GitLab returning code 500 #807
Comments
There have been quite a few issues with Gitlab.com today: https://status.gitlab.com/pages/history/5b36dc6502d06804c08349f7, you may want to retry ;-) |
Seems like I'm gifted with dealing with awesome software on terrible days. 😅 It looks like the instability still goes on for me, unfortunately, but this time is a 405 error.
|
Guys, is there something I'm missing here?
The 500 error still persists though. Any advice to better log what might be happening? I'd like to be able to provide you with better information than just say it's not working, I never feel right when I just relay superficial information for developers (I know that's the worst thing that can come from non-developing users 😞). |
My best guess is that when you exceeded the pagination limits and received the 405 (perhaps multiple times) that caused one of gitlab's server's designed to defend against abuse to flag you and return a 500 when you go on future paging sprees. We could expand bugwarrior's pagination capability by switching to keyset pagination but I'm doubtful anybody actually needs that. The real question is: why is bugwarrior requesting a list of over 50,000 projects (page 501 with 100 per page) when you only have 5? I believe it's because you aren't applying any filter to the projects so bugwarrior is trying to go through all the public projects on the server. This is insane for gitlab.com but probably fine for most private gitlab instances. We should probably add a sanity check to prevent people from encountering this confusing error message though (#813). However, the filter I believe you want is undocumented because our documentation is like 3 years out of date (#812). At any rate, I think you want to add to your configuration:
Thanks for your persistence and let us know if that solves your problem. |
Re keyset pagination: they're only rolling it out on an API-per-API basis, so you need to make sure the API that you request actually supports it. I've tried it before, and it just silently falls back to standard pagination if it's not yet activated. Very annoying, although transitive. Maybe it's an idea to fire a warning if you don't have any sane filters? I went through this problem too, a few years ago, and I imagine a lot of BugWarrior+Gitlab users go through this. |
That was it, @ryneeverett! Bummed that the problem here was located between the chair and the keyboard 😅, but glad that this could also help you guys improve Bugwarrior. Hope to also contribute in the near future and thank you for you patience as well. |
So I set up the rc file inside
.config/bugwarrior/bugwarriorrc
to work with a GitLab token enabled for read_user, read_api, read_repository and read_registry:But calling
bugwarrior-pull
never went past the line stating it was working on Gitlab: no errors or additional messages after 3 runs and aborting after a minute or so. Given that I only have 5 repositories on my user and only one of them has issues (3, in its case), my thoughts it can't be latency in the responses from the GitLab server.I ended up forcefully interrupting, but I never found out how to output more messages to try and capture the exact cause of this (the
--debug
flag also never showed more than these four lines).I tried to test out if it wasn't a connection problem, but Bugwarrior responded accordingly when I revoked my access token in the middle of the run:
I eventually left it running and at last it returned an error code 500 from the server:
Am I missing something here? I have successfully managed to get some response using
requests
on the projects endpoint (same token), not sure if this has to do with the endpoint or if Bugwarrior tries to access v3 instead of v4 in Gitlab.If there is anything I can contribute with coding I'll be glad to help.
The text was updated successfully, but these errors were encountered: