I am using GitLab API v4 to fetch project forks.
This is my target GitLab.com / www-gitlab-com · GitLab.
I am executing page 1
GET
https://gitlab.com/api/v4/projects/7764/forks?order_by=created_at&sort=desc&per_page=100&page=1
HEADERS
Private-Token: my_real_private_token_here
Accept: application/json
Response contains information that there is 10 pages of data.
Then I am trying execute for page 5 & 6
GET
https://gitlab.com/api/v4/projects/7764/forks?order_by=created_at&sort=desc&per_page=100&page=5
HEADERS
Private-Token: my_real_private_token_here
Accept: application/json
Response
{
“message”: “500 Internal Server Error”
}
And then pages 7, 8, 9 & 10 response OK with proper data.
Interesting fact: when I executing page 5 & 6 with no token
GET
https://gitlab.com/api/v4/projects/7764/forks?order_by=created_at&sort=desc&per_page=100&page=5
HEADERS
Accept: application/json
Response contains data and public server allow me to do this with no 403 error.
Can anyone help to understand why such behavior happened on this actual repository history data?
Thanks
Alex