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

github API rate limiting when running terraenv terragrunt install #15

Open
booya opened this issue Jan 27, 2021 · 1 comment
Open

github API rate limiting when running terraenv terragrunt install #15

booya opened this issue Jan 27, 2021 · 1 comment
Labels
bug Something isn't working

Comments

@booya
Copy link

booya commented Jan 27, 2021

We've been running into an issue occasionally in our deployment pipelines where we use the terraenv terragrunt install command:

> terraenv terragrunt install
API rate limit exceeded for XX.XX.63.182. (But here's the good news: Authenticated requests get a higher rate limit. Check out the documentation for more details.)
Traceback (most recent call last):
  File "/usr/local/bin/terraenv", line 46, in <module>
    args.func(args)
  File "/usr/local/lib/python3.7/dist-packages/commands/install.py", line 89, in install
    download_program(args, program, version)
  File "/usr/local/lib/python3.7/dist-packages/commands/install.py", line 19, in download_program
    available_versions = list_remote(args)
  File "/usr/local/lib/python3.7/dist-packages/commands/list.py", line 68, in list_remote
    available_versions.append(version['name'].lstrip('v'))
TypeError: string indices must be integers

The issue appears to happen because running the terragrunt install command first runs the list command to fetch a list of available versions. Perhaps the list command can be skipped when a specific version is requested (we're using .terraenv file for this). If "latest" is provided, then it would still be necessary to figure out which is the latest version. But for a specific version, maybe it's better to just try to download that version, and fail if it is invalid?

@aaratn
Copy link
Owner

aaratn commented Jan 27, 2021

@booya Thanks for reporting this, I've seen this aswell and will plan a fix soon in next release !!

@aaratn aaratn added the bug Something isn't working label Jan 27, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants