-
-
Notifications
You must be signed in to change notification settings - Fork 43
Proper rate limit error #20
Comments
It would be cool to prompt the user with an option to set up credentials at this point and retry the install. Something like “Request for package X failed due to a GitHub API rate limit. To fix this issue, configure jspm with your GitHub credentials. Would you like to do this now and retry the install?" |
This has been included in f783961. A workflow to immediately correct and resume isn't currently possible with the existing endpoint API, since global configuration changes (saving the new auth) are not currently permitted by endpoints at any time during operation. This works well as a first implementation though. |
To clarify, it looks something like this -
If the user is already authenticated it looks like:
|
Is it possible to save a authentication token in the config, so that it can be used in CI builds? My CI stuff is failing occasionally because of Github rate limits. |
@SteveEdson there's some docs on this in https://github.com/jspm/jspm-cli/wiki/Endpoints#auto-configuring-endpoints. Allowing a local config file for it is also being tracked as a feature. |
Sorry if I have misunderstood, but where do I get the Is there not a way to run Thanks, Steve |
If you read that section, it shows how TravisCI instructions have also now been included in https://github.com/jspm/jspm-cli/wiki/Endpoints#travis-ci. |
On the UX.
What does this mean? |
It means you've set up your GitHub endpoint without credentials or with whatever credentials were already configured. |
Yeah seemed like it was telling me it had done something, but still had rate errors after that. |
All the pages refrenceing Endpoint "Endpoints" to "Registries" https://github.com/jspm/jspm-cli/wiki/Registries |
I haven't been able to find evidence of it in the docs or code, but is it possible to configure this from the environment? |
@kudos not sure exactly what you mean by configure this from the environment? Have you followed https://github.com/jspm/jspm-cli/wiki/Registries#auto-configuring-registries? |
It's probably because I was super tired when trying to figure it out, but the first time I read that page I couldn't see how I could apply the same to Circle CI. Mind if I add a section for Circle there? Also, it could be nice if it passively read that key from the environment instead of needing explicitly passed. Happy to work on a PR for that too if it would be welcome. |
@kudos a documentation PR is welcome. Perhaps we should include links to these sections at the top of the page as well so it's easier to find as many seem to miss it. Supporting an environment variable fallback for the GitHub registry auth token could certainly be an option as well here. |
Post deleted, redirected to: aurelia/skeleton-navigation#38 (comment) |
@trusktr posting this comment once was more than enough. My response is at aurelia/skeleton-navigation#38 (comment). |
The rate limit response looks like:
The text was updated successfully, but these errors were encountered: