Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

ibmcloud rate limit support - feature request #60

Open
jmgalvez opened this issue Oct 24, 2018 · 3 comments
Open

ibmcloud rate limit support - feature request #60

jmgalvez opened this issue Oct 24, 2018 · 3 comments

Comments

@jmgalvez
Copy link

Hi there,

We have a bash script to run the 'ibmcloud' command several times in order to set up our IBM Cloud stuff.

Sometimes we are getting an error from the API server (status code 429) related to the rate limits.

FAILED
Error response from server. Status code: 429; description: The request frequency from this IP exceeded the allowable rate of 30 per 60000 ms with a minimum separation of 0 ms. Please check the 'X-RateLimit-Limit', and 'X-RateLimit-Reset' header values returned by the server..

Is it planned to add support for this in the upcoming releases of the ibmcloud cli? In this way, the ibmcloud manage the 429 status code, wait a while and re-attempt again X times.

It would be very interesting to have this support natively in the command line.

@boyang9527
Copy link
Contributor

thanks for this feature request. Will move this to dev backlog and let you know once it is planned.

@archerzz
Copy link

@jmgalvez would you mind if you could tell us the URL path in which you met this error? Thanks.

@jmgalvez
Copy link
Author

jmgalvez commented Oct 28, 2018

@archerzz We always obtain this 429 when calling CF related commands, not detected yet with IAM related commands. Mainly, when we try 'ibmcloud account org-role-set' and 'ibmcloud account space-role-set' commands. Likely with the 'unset' equivalent commands as well.

For example, yesterday, first we got a 429 and when we tried again we got a 500.

FAILED
Error response from server. Status code: 500; description: Error while querying /v2/organizations?q=name%3Amy-beautiful-org&region=eu-de for region eu-de: "failed to GET https://api.eu-de.bluemix.net/v2/organizations?q=name%3Amy-beautiful-org&region=eu-de: Error: Parse Error".

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants