[GH-ISSUE #2049] [BUG]: GitLab RepoLoader doesn't fetch all files from large repositories #1337

Closed
opened 2026-02-22 18:24:19 -05:00 by yindo · 0 comments
Owner

Originally created by @mehmetunlu on GitHub (Aug 5, 2024).
Original GitHub issue: https://github.com/Mintplex-Labs/anything-llm/issues/2049

How are you running AnythingLLM?

Local development

What happened?

I try to fetch files from a big GitLab repository with "GitLab Repo" data connector.
However it always fails to fetch any files with message "No files were found for those settings.".
The repo has ~700 folders and ~9000 files in total.

I checked the code and saw that GitLab RepoLoader stops fetching paginated repo tree if the current page doesn't have any 'blob' objects, which doesn't make sense in my opinion:
https://github.com/Mintplex-Labs/anything-llm/blob/master/collector/utils/extensions/RepoLoader/GitlabRepo/RepoLoader/index.js#L226

Are there known steps to reproduce?

  1. For any workspace, open Data Connectors -> GitLab Repo.
  2. Add a gitlab repository with >100 folders.
  3. Click Submit.
  4. It fails to fetch files with message "No files were found for those settings."
Originally created by @mehmetunlu on GitHub (Aug 5, 2024). Original GitHub issue: https://github.com/Mintplex-Labs/anything-llm/issues/2049 ### How are you running AnythingLLM? Local development ### What happened? I try to fetch files from a big GitLab repository with "GitLab Repo" data connector. However it always fails to fetch any files with message "No files were found for those settings.". The repo has ~700 folders and ~9000 files in total. I checked the code and saw that GitLab RepoLoader stops fetching paginated repo tree if the current page doesn't have any 'blob' objects, which doesn't make sense in my opinion: https://github.com/Mintplex-Labs/anything-llm/blob/master/collector/utils/extensions/RepoLoader/GitlabRepo/RepoLoader/index.js#L226 ### Are there known steps to reproduce? 1. For any workspace, open Data Connectors -> GitLab Repo. 2. Add a gitlab repository with >100 folders. 3. Click Submit. 4. It fails to fetch files with message "No files were found for those settings."
yindo added the possible bug label 2026-02-22 18:24:19 -05:00
yindo closed this issue 2026-02-22 18:24:19 -05:00
yindo changed title from [BUG]: GitLab RepoLoader doesn't fetch all files from large repositories to [GH-ISSUE #2049] [BUG]: GitLab RepoLoader doesn't fetch all files from large repositories 2026-06-05 14:40:14 -04:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: Mintplex-Labs/anything-llm#1337