Hello, here in the documentation you will find this caution which is not handled in the Pager class.
This exception appears when invoking getProjects() method from the ProjectApi :
org.gitlab4j.api.GitLabApiException: Missing 'X-Total-Pages' header from server

Caution: For performance reasons since GitLab 11.8 and behind the api_kaminari_count_with_limit feature flag, if the number of resources is more than 10,000, the X-Total and X-Total-Pages headers as well as the rel="last" Link are not present in the response headers.
Best regards. 👍