Describe the bug
gdk component list -t fails
It appears the request is not formed in a way acceptable by github
To Reproduce
❯ gdk component list -t
[2024-11-27 22:19:27] INFO - Listing all the available component templates from Greengrass Software Catalog.
[2024-11-27 22:19:27] ERROR - Failed to list the available components from Greengrass Software Catalog. Please try again after sometime.
=============================== ERROR ===============================
[2024-11-27 22:19:27] ERROR - 403 Client Error: Forbidden for url: https://raw.githubusercontent.com/aws-greengrass/aws-greengrass-software-catalog/main/cli-components/templates.json
Traceback (most recent call last):
File "/home/ubuntu/gdk-python-venv/lib/python3.12/site-packages/gdk/CLIParser.py", line 186, in main
parse_args_actions.run_command(args_namespace)
File "/home/ubuntu/gdk-python-venv/lib/python3.12/site-packages/gdk/common/parse_args_actions.py", line 26, in run_command
call_action_by_name(method_name, d_args)
File "/home/ubuntu/gdk-python-venv/lib/python3.12/site-packages/gdk/common/parse_args_actions.py", line 47, in call_action_by_name
method_to_call(d_args)
File "/home/ubuntu/gdk-python-venv/lib/python3.12/site-packages/gdk/commands/methods.py", line 25, in _gdk_component_list
component.list(d_args)
File "/home/ubuntu/gdk-python-venv/lib/python3.12/site-packages/gdk/commands/component/component.py", line 22, in list
ListCommand(d_args).run()
File "/home/ubuntu/gdk-python-venv/lib/python3.12/site-packages/gdk/commands/component/ListCommand.py", line 18, in run
li = self.get_component_list_from_github(consts.templates_list_url)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/home/ubuntu/gdk-python-venv/lib/python3.12/site-packages/gdk/commands/component/ListCommand.py", line 33, in get_component_list_from_github
response.raise_for_status()
File "/home/ubuntu/gdk-python-venv/lib/python3.12/site-packages/requests/models.py", line 1024, in raise_for_status
raise HTTPError(http_error_msg, response=self)
requests.exceptions.HTTPError: 403 Client Error: Forbidden for url: https://raw.githubusercontent.com/aws-greengrass/aws-greengrass-software-catalog/main/cli-components/templates.json
Environment
- OS:
Linux ip-172-31-21-121 6.8.0-1018-aws #20-Ubuntu SMP Thu Oct 10 18:48:14 UTC 2024 aarch64 aarch64 aarch64 GNU/Linux
- GDK version: 1.6.2
Additional context
The machine has access to the content, no network issue
❯ curl https://raw.githubusercontent.com/aws-greengrass/aws-greengrass-software-catalog/main/cli-components/templates.json
{
"HelloWorld-python": "https://github.com/aws-greengrass/aws-greengrass-component-templates/releases/download/v1.0/HelloWorld-python.zip",
"HelloWorld-java": "https://github.com/aws-greengrass/aws-greengrass-component-templates/releases/download/v1.0/HelloWorld-java.zip",
"LocalPubSub-python": "https://github.com/aws-greengrass/aws-greengrass-component-templates/releases/download/v1.0/LocalPubSub-python.zip",
"LocalPubSub-java": "https://github.com/aws-greengrass/aws-greengrass-component-templates/releases/download/v1.0/LocalPubSub-java.zip",
"TestingFramework-java": "https://github.com/aws-greengrass/aws-greengrass-component-templates/releases/download/v1.0/TestingFramework-java.zip"
}%
Describe the bug
gdk component list -tfailsIt appears the request is not formed in a way acceptable by github
To Reproduce
Environment
Linux ip-172-31-21-121 6.8.0-1018-aws #20-Ubuntu SMP Thu Oct 10 18:48:14 UTC 2024 aarch64 aarch64 aarch64 GNU/LinuxAdditional context
The machine has access to the content, no network issue