diff --git a/modules/migrations/github.go b/modules/migrations/github.go index cb61086b2ad6b..282e3b4786151 100644 --- a/modules/migrations/github.go +++ b/modules/migrations/github.go @@ -132,6 +132,11 @@ func (g *GithubDownloaderV3) sleep() { func (g *GithubDownloaderV3) RefreshRate() error { rates, _, err := g.client.RateLimits(g.ctx) if err != nil { + // if rate limit is not enabled, ignore it + if strings.Contains(err.Error(), "404") { + g.rate = nil + return nil + } return err }