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

Issue for CF-RateLimitV2APIExceeded #478

Open
michael1011101 opened this issue Apr 6, 2023 · 4 comments
Open

Issue for CF-RateLimitV2APIExceeded #478

michael1011101 opened this issue Apr 6, 2023 · 4 comments

Comments

@michael1011101
Copy link

When I executed the "terraform apply", it failed with error code "CF-RateLimitV2APIExceeded".

│ Error: Error when loading default quota: Unexpected Response
│ Response code: 429
│ CC code:       10018
│ CC error code: CF-RateLimitV2APIExceeded
│ Request ID:    ***
│ Description:   Rate Limit of V2 API Exceeded. Please consider using the V3 API

The provider version is

cloudfoundry = {
      source  = "cloudfoundry-community/cloudfoundry"
      version = "0.50.3"
}

Do you have any ideas to solve or workaround this issue?

@janosbinder
Copy link
Collaborator

Hi Wang,

I think one of the API calls have been not ported to CFAPIv3. Can you give more details, on which call type do you see this error?

@sleungcy
Copy link
Collaborator

sleungcy commented Apr 6, 2023

@janosbinder is there a way to get the provider to print out the api calls used?

To print out the output to standard out:

export TF_LOG=debug

In my case, I found the below api calls, obsfucated all sensitive info with 'x'

GET /v2/apps?q=x&q=space_guid=x 
GET /v2/info 
GET /v2/service_keys?q=x&q=service_instance_guid=x 
GET /v3/apps/x 
GET /v3/apps/x/droplets/current 
GET /v3/apps/x/environment_variables 
GET /v3/apps/x/features/ssh 
GET /v3/apps/x/processes/web 
GET /v3/apps/x/routes 
GET /v3/apps?guids=x 
GET /v3/domains 
GET /v3/domains/x 
GET /v3/domains?page=2&per_page=50 
GET /v3/organization_quotas?names=default 
GET /v3/organizations/x 
GET /v3/organizations?names=x 
GET /v3/routes?guids=x 
GET /v3/service_credential_bindings/x/details 
GET /v3/service_credential_bindings?app_guids=x 
GET /v3/service_credential_bindings?names=x&service_instance_guids=x 
GET /v3/service_instances/x/credentials 
GET /v3/service_instances?guids=x 
GET /v3/service_instances?names=x&space_guids=x
GET /v3/service_offerings?fields%5Bservice_broker%5D=name%2Cguid&names=x
GET /v3/service_offerings?fields%5Bservice_broker%5D=name%2Cguid&names=x 
GET /v3/service_plans?service_offering_guids=x 
GET /v3/spaces/x 
GET /v3/spaces?names=x&organization_guids=x 
GET /v3/stacks/x 
GET /v3/stacks?guids=x 
GET /v3/stacks?names=x 

@michael1011101
Copy link
Author

It failed with the following codes. @janosbinder

data "cloudfoundry_org" "myorg" {
  name = var.org_name
}

data "cloudfoundry_space" "myspace" {
  name = var.space_name
  org = data.cloudfoundry_org.myorg.id
}

@Thanhphan1147
Copy link
Contributor

Thanhphan1147 commented Jun 21, 2023

Indeed these datasources have not been updated to use the v3 API. The process is quite simple however, I'll see if I can find the time to do it.

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

4 participants