launchdarkly / api-client-php

LaunchDarkly API Client for PHP
Other
2 stars 4 forks source link

Rate limit issue for launchdarkly/api-client-php , version ^11.0 #5

Open Hetalga opened 1 year ago

Hetalga commented 1 year ago

I Install launchdarkly/api-client-php with version ^11.0 with the composer.

I am getting an error for the rate limit as below,

InUserSettingApi.php line 577: [429] client error: 'GET https://app.launchdarkly.com/api/v2/users/default/PROJECT_NAME/USER_KEY/flags/FLAG_NAME' resulted in a 429 to many request response:{code:"rate limit", "message":"You are exceeded the API rate limit. try again later"}

lucywyman commented 1 year ago

Hi @Hetalga ! Does hitting that API directly (through Postman or curl) also throw a 429 error? That error is likely coming from the API itself because you're making too many calls to the API, and isn't an issue with the PHP client itself.

Hetalga commented 1 year ago

It is not causing any issues to the local environment for the same launch darkly data. no matter how many time you run the commands.

I deploy my code to amazon ECR and run a script command from amazon ECS tasks, it gives an error for the rate limit.

Hetalga commented 1 year ago

how many API calls I can do at the time? After then how long I should wait for another calls?