users API returns "protocol violation. Seciton=ResponseStatusLine" after a variable number of pages.
Using https://online-sql-editor.com/gitlab/com/stable/Sql we trigger API calls. Specifically for the users end point, we get a return message:
The server committed a protocol violation. Section=ResponseStatusLine
after a variable number of page of 20 rows. On our own recent EE version with 12 users, we don't get that error.
The error occurs after 30 - 50 - 100 pages, there is no clear number after which the problem occurs.
Reproduction scenario:
Either manually execute:
https://gitlab.com/api/v3/users?page=129&per_page=20
with continuously increasing page number.
Or run select * from users
on https://online-sql-editor.com/gitlab/com/stable/Sql
Expected behaviour: GitLab returns all users in pages of 20 till the last user has been fetched.
Version of GitLab running on GitLab.com unknown, but version of 10-10-2016.