github API rate limit(60 count) has occurred in composer.phar on PHP.
Hello AppVeyor team.
I have a project using PHP and composer.phar.
I have installed PHP and composer.phar, but there is trouble when i
run the command: $ composer install
.
- Installing erusev/parsedown (1.5.3)
Downloading: Connecting...
Could not fetch https://api.github.com/repos/erusev/parsedown/zipball/b9e5228e92e5f5c17d7774cfb2de8e5e8362de1a, please create a GitHub OAuth token to go over the API rate limit
Head to https://github.com/settings/tokens/new?scopes=repo&description=Composer+on+appvyr-win20122+2015-06-03+1603
to retrieve a token. It will be stored in "C:/Users/appveyor/AppData/Roaming/Composer/auth.json" for future use by Composer.
Token (hidden):
It looks like composer.phar fails to get a package, after exceeding the access limit (60).
In a typical local PC environment, getting the access token from
github, and running $ composer config -g
github-oauth.github.com <oauthtoken>
solves it, but
how can I solve it, in an AppVeyor environment?
Help me.
Thank you.
Comments are currently closed for this discussion. You can start a new one.
Keyboard shortcuts
Generic
? | Show this help |
---|---|
ESC | Blurs the current field |
Comment Form
r | Focus the comment reply box |
---|---|
^ + ↩ | Submit the comment |
You can use Command ⌘
instead of Control ^
on Mac
Support Staff 1 Posted by Feodor Fitsner on 04 Jun, 2015 03:53 AM
Generate OAuth token and put it into
appveyor.yml
as secure variable: http://www.appveyor.com/docs/build-configuration#secure-variablesThen add the same command before calling composer:
where
oauthtoken
is the name of secure variable.2 Posted by Tomoya Koyanagi on 04 Jun, 2015 05:16 AM
it has solved!
Thank you so much! |:-D
Ilya Finkelshteyn closed this discussion on 25 Aug, 2018 01:56 AM.