okta-aws-cli icon indicating copy to clipboard operation
okta-aws-cli copied to clipboard

Polling should handle `slow_down` response

Open xaocon opened this issue 11 months ago • 1 comments

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

xaocon avatar Mar 04 '24 21:03 xaocon

Thanks @xaocon I'll see about adding that in, the behavior of the Okta API must have changed recently on polling rate limits.

monde avatar Mar 12 '24 14:03 monde

Handling this goes out in the next release this week.

monde avatar Jul 08 '24 22:07 monde

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.

xaocon avatar Jul 11 '24 12:07 xaocon