Hitting rate limit using a0deploy export

When using a0deploy export against the dev environment it keeps freezing when trying to retrieve the branding data:

2023-01-13T20:33:48.451Z - info: Loading Auth0 Tenant Data
2023-01-13T20:33:48.663Z - info: Retrieving rules data from Auth0
2023-01-13T20:33:48.958Z - info: Retrieving rulesConfigs data from Auth0
2023-01-13T20:33:49.199Z - info: Retrieving hooks data from Auth0
2023-01-13T20:33:49.713Z - info: Retrieving pages data from Auth0
2023-01-13T20:33:50.002Z - info: Retrieving resourceServers data from Auth0
2023-01-13T20:33:50.646Z - info: Retrieving clients data from Auth0
2023-01-13T20:33:50.921Z - info: Retrieving databases data from Auth0
2023-01-13T20:33:51.283Z - info: Retrieving connections data from Auth0
2023-01-13T20:33:51.673Z - info: Retrieving tenant data from Auth0
2023-01-13T20:33:51.973Z - info: Retrieving emailProvider data from Auth0
2023-01-13T20:33:52.632Z - info: Retrieving emailTemplates data from Auth0
2023-01-13T20:33:53.344Z - info: Retrieving clientGrants data from Auth0
2023-01-13T20:33:53.806Z - info: Retrieving guardianFactors data from Auth0
2023-01-13T20:33:54.066Z - info: Retrieving guardianFactorProviders data from Auth0
2023-01-13T20:33:54.425Z - info: Retrieving guardianFactorTemplates data from Auth0
2023-01-13T20:33:54.722Z - info: Retrieving guardianPolicies data from Auth0
2023-01-13T20:33:54.927Z - info: Retrieving guardianPhoneFactorSelectedProvider data from Auth0
2023-01-13T20:33:55.152Z - info: Retrieving guardianPhoneFactorMessageTypes data from Auth0
2023-01-13T20:33:59.320Z - info: Retrieving roles data from Auth0
2023-01-13T20:33:59.965Z - info: Retrieving branding data from Auth0

When I look at the logs I see a ‘Rate Limit On API’ error:

{
  "date": "2023-01-13T20:34:01.638Z",
  "type": "api_limit",
  "description": "Global per second default group limit has been reached",
  "client_id": "<REDACTED>",
  "client_name": "",
  "details": {
    "request": {
      "method": "get",
      "path": "/api/v2/prompts/{prompt}/custom-text/{language}"
    },
    "response": {}
  },
  "log_id": "<REDACTED>",
  "_id": "<REDACTED>",
  "isMobile": false,
  "user_agent": "Other 0.0.0 / Other 0.0.0",
  "id": "<REDACTED>"
}

Is there anything I can do to get around this.

Hi @donkaiser,

Welcome to the Auth0 Community!

I understand that you have hit the rate limits for the Management API when using the Auth0 Deploy CLI to export your dev tenant settings.

Firstly, what you have observed is expected since tenants with the “Development” Environment Tag have different Rate Limits compared to tenants with the “Production” Environment Tag.

You can see these rate limit differences here:

Most of the time when you experience this “freezing” behavior, you will just need to wait it out. Essentially, the Auth0 Deploy CLI will attempt to perform the request once it is possible to do so. In other words, the Auth0 Deploy CLI is waiting until it is not rate-limited to continue with the requests.

I hope this answers your questions and concerns.

Please let me know if there is anything else I can do to help.

Thanks,
Rueben

This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.