okta-aws-cli
okta-aws-cli copied to clipboard
Polling should handle `slow_down` response
I'm getting Error: fetching access token polling received unexpected API polling error "slow_down" - "Slow down the polling frequency. Please try again later."
while trying to get stuff. It says it's a 400 instead of a 429 if that matters at all.
In case it helps, here's a redacted request:
okta-aws-cli --aws-acct-fed-app-id XXXXXXXXXXXX \
--oidc-client-id XXXXXXXXXXXX \
--org-domain XXXXXXXXXXXX \
--format aws-credentials \
--write-aws-credentials \
--profile XXXXXXXXXXXX \
--aws-iam-idp arn:aws:iam::XXXXXXXXXXXX \
--aws-iam-role arn:aws:iam::XXXXXXXXXXXX -d
okta-aws-cli version 2.1.2 aws-cli/2.15.25 Python/3.11.8 Linux/5.15.133.1-microsoft-standard-WSL2 exe/x86_64.ubuntu.20 prompt/off
Thanks @xaocon I'll see about adding that in, the behavior of the Okta API must have changed recently on polling rate limits.
Handling this goes out in the next release this week.
Thanks. I wanted to help by putting a PR in but I'm no gopher and I couldn't figure out a good way to slow down the requests.