[GH-ISSUE #1296] [BUG]: Error importing Github repository #814

Closed
opened 2026-02-22 18:21:31 -05:00 by yindo · 7 comments
Owner

Originally created by @giovanniscalar on GitHub (May 6, 2024).
Original GitHub issue: https://github.com/Mintplex-Labs/anything-llm/issues/1296

How are you running AnythingLLM?

Docker (local)

What happened?

When you use data connector for import an entire Github repository, the folders on the repo aren't imported.

Are there known steps to reproduce?

image
Originally created by @giovanniscalar on GitHub (May 6, 2024). Original GitHub issue: https://github.com/Mintplex-Labs/anything-llm/issues/1296 ### How are you running AnythingLLM? Docker (local) ### What happened? When you use data connector for import an entire Github repository, the folders on the repo aren't imported. ### Are there known steps to reproduce? <img width="1423" alt="image" src="https://github.com/Mintplex-Labs/anything-llm/assets/149009837/ed10e7b6-6fe0-49f6-bfcb-25d527d25d6a">
yindo added the possible bug label 2026-02-22 18:21:31 -05:00
yindo closed this issue 2026-02-22 18:21:32 -05:00
Author
Owner

@timothycarambat commented on GitHub (May 6, 2024):

If you hover over the triangle icon you will see why that is the case. if you do not define a PAT for this connector only the top-level files are retrieved as to prevent a rate-limiting error from deep-nesting of the repo

@timothycarambat commented on GitHub (May 6, 2024): If you hover over the triangle icon you will see why that is the case. if you do not define a PAT for this connector only the top-level files are retrieved as to prevent a rate-limiting error from deep-nesting of the repo
Author
Owner

@giovanniscalar commented on GitHub (May 6, 2024):

Sorry I thought the access token was required for private repositories only. I will try that.

@giovanniscalar commented on GitHub (May 6, 2024): Sorry I thought the access token was required for private repositories only. I will try that.
Author
Owner

@Freffles commented on GitHub (May 8, 2024):

FYI, you can get your PAT via this link (assuming you are logged in 😁) https://github.com/settings/tokens?type=beta

@Freffles commented on GitHub (May 8, 2024): FYI, you can get your PAT via this link (assuming you are logged in 😁) [https://github.com/settings/tokens?type=beta](url)
Author
Owner

@JOduMonT commented on GitHub (Dec 23, 2024):

Hi @timothycarambat ;

I tried with a granular and a classic Token but still have

Unable to fetch repository files: 404 {"message":"Not Found" , "documentation_url"-"https://docs-github.com/rest/repos/contents#get-repository-content","status":"404"}

While my repo is only containing the basic:

  • README
  • LICENCE
  • .gitignore

I was not expecting an error

Do you have more hints, so I can debug this situation ?

@JOduMonT commented on GitHub (Dec 23, 2024): Hi @timothycarambat ; I tried with a **granular** and a **classic** Token but still have > Unable to fetch repository files: 404 {"message":"Not Found" , "documentation_url"-"https://docs-github.com/rest/repos/contents#get-repository-content","status":"404"} While my repo is only containing the basic: - README - LICENCE - .gitignore I was not expecting an error Do you have more hints, so I can debug this situation ?
Author
Owner

@mer0mingian commented on GitHub (Jan 17, 2025):

Replicated this issue with AnythinLLM Desktop on Linux.

@mer0mingian commented on GitHub (Jan 17, 2025): Replicated this issue with AnythinLLM Desktop on Linux.
Author
Owner

@gberger-panda commented on GitHub (Jan 23, 2025):

Replicate also with AnythingLLM Desktop on macbook pro

@gberger-panda commented on GitHub (Jan 23, 2025): Replicate also with AnythingLLM Desktop on macbook pro
Author
Owner

@timothycarambat commented on GitHub (Jan 23, 2025):

Everyone who is getting this issue, it would be helpful to know:

  • Link to repo (if public)
  • Using PAT or not
  • How you provisioned the PAT in Github

The core functionality works, it ultimately comes down to the token and rate limits.

@timothycarambat commented on GitHub (Jan 23, 2025): Everyone who is getting this issue, it would be helpful to know: - Link to repo (if public) - Using PAT or not - How you provisioned the PAT in Github The core functionality works, it ultimately comes down to the token and rate limits.
yindo changed title from [BUG]: Error importing Github repository to [GH-ISSUE #1296] [BUG]: Error importing Github repository 2026-06-05 14:37:20 -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#814