Carthage: GitHub API request failed: API rate limit exceeded

Created on 12 Jun 2015  路  6Comments  路  Source: Carthage/Carthage

Hi, I get this error when running carthage update with --use-ssh flag. It does work without this flag but I can not use my private repositories this way. Carthage version: 0.7.4.

$ carthage update --use-ssh

*** Fetching Dodo
*** Fetching BrightFutures
*** Fetching Result
*** Fetching Box
GitHub API request failed: API rate limit exceeded for  (But here's the good news: Authenticated requests get a higher rate limit. Check out the documentation for more details.)
checkout question update

Most helpful comment

I'm hitting this issue when running carthage bootstrap or carthage update on Azure Pipelines, even when passing an access token via the GITHUB_ACCESS_TOKEN environment variable. Using --no-use-binaries is not really an option because some of our dependencies are very large and take a significant amount of time to build from source. --use-ssh also seems to have no effect on the behaviour.

Is anyone successfully using Carthage in a hosted CI environment?

All 6 comments

This shouldn鈥檛 be an error, but setting up a credential cache in the meantime should work around it.

Reached the Github API limit today on carthage update command (without --use-ssh flag). With many lines in Cartfile it is becoming an issue for us.

If the errors are still an issue after setting up a credential cache, you can add the --no-use-binaries flag, which will disable the only GitHub API calls in use by Carthage.

Note for some users who might have troubles: after setting the credential cache, you seem to have to pull a private repo on HTTPS (not ssh) so it prompts for the keys. I had to use mitmproxy to understand what happened, it would be great at least to have human error messages :)

I'm hitting this issue when running carthage bootstrap or carthage update on Azure Pipelines, even when passing an access token via the GITHUB_ACCESS_TOKEN environment variable. Using --no-use-binaries is not really an option because some of our dependencies are very large and take a significant amount of time to build from source. --use-ssh also seems to have no effect on the behaviour.

Is anyone successfully using Carthage in a hosted CI environment?

I'm hitting this issue when running carthage bootstrap or carthage update on Azure Pipelines, even when passing an access token via the GITHUB_ACCESS_TOKEN environment variable. Using --no-use-binaries is not really an option because some of our dependencies are very large and take a significant amount of time to build from source. --use-ssh also seems to have no effect on the behaviour.

Is anyone successfully using Carthage in a hosted CI environment?

I have similar issues here within Azure Pipelines.

Was this page helpful?
0 / 5 - 0 ratings