We are having same issue trying to install community.aws. Here is verbose output.
10:23:58 Initial connection to galaxy_server: https://galaxy.ansible.com
10:23:58 Created /root/.ansible/galaxy_token
10:23:58 Calling Galaxy at https://galaxy.ansible.com/api/
10:23:58 Found API version 'v3, pulp-v3, v1' with Galaxy server default (https://galaxy.ansible.com/api/)
10:23:58 Calling Galaxy at https://galaxy.ansible.com/api/v3/collections/community/aws/
10:23:58 Calling Galaxy at https://galaxy.ansible.com/api/v3/collections/community/aws/versions/?limit=100
10:23:58 Calling Galaxy at https://galaxy.ansible.com/api/v3/plugin/ansible/content/published/collections/index/community/aws/versions/?limit=100&offset=100
10:23:59 [WARNING]: Skipping Galaxy server https://galaxy.ansible.com/api/. Got an
10:23:59 unexpected error when getting available versions of collection community.aws: '
10:23:59 /api/v3/plugin/ansible/content/published/collections/index/community/aws/versio
10:23:59 ns/'
10:23:59 ERROR! Unexpected Exception, this is probably a bug: '/api/v3/plugin/ansible/content/published/collections/index/community/aws/versions/'
10:23:59 the full traceback was:
10:23:59
10:23:59 Traceback (most recent call last):
10:23:59 File "/usr/local/lib/python3.9/site-packages/resolvelib/resolvers.py", line 171, in _merge_into_criterion
10:23:59 crit = self.state.criteria[name]
10:23:59 KeyError: 'community.aws'
10:23:59
10:23:59 During handling of the above exception, another exception occurred:
10:23:59
10:23:59 Traceback (most recent call last):
10:23:59 File "/usr/local/bin/ansible-galaxy", line 135, in <module>
10:23:59 exit_code = cli.run()
10:23:59 File "/usr/local/lib/python3.9/site-packages/ansible/cli/galaxy.py", line 552, in run
10:23:59 return context.CLIARGS['func']()
10:23:59 File "/usr/local/lib/python3.9/site-packages/ansible/cli/galaxy.py", line 75, in method_wrapper
10:23:59 return wrapped_method(*args, **kwargs)
10:23:59 File "/usr/local/lib/python3.9/site-packages/ansible/cli/galaxy.py", line 1186, in execute_install
10:23:59 self._execute_install_collection(
10:23:59 File "/usr/local/lib/python3.9/site-packages/ansible/cli/galaxy.py", line 1213, in _execute_install_collection
10:23:59 install_collections(
10:23:59 File "/usr/local/lib/python3.9/site-packages/ansible/galaxy/collection/__init__.py", line 512, in install_collections
10:23:59 dependency_map = _resolve_depenency_map(
10:23:59 File "/usr/local/lib/python3.9/site-packages/ansible/galaxy/collection/__init__.py", line 1326, in _resolve_depenency_map
10:23:59 return collection_dep_resolver.resolve(
10:23:59 File "/usr/local/lib/python3.9/site-packages/resolvelib/resolvers.py", line 453, in resolve
10:23:59 state = resolution.resolve(requirements, max_rounds=max_rounds)
10:23:59 File "/usr/local/lib/python3.9/site-packages/resolvelib/resolvers.py", line 318, in resolve
10:23:59 name, crit = self._merge_into_criterion(r, parent=None)
10:23:59 File "/usr/local/lib/python3.9/site-packages/resolvelib/resolvers.py", line 173, in _merge_into_criterion
10:23:59 crit = Criterion.from_requirement(self._p, requirement, parent)
10:23:59 File "/usr/local/lib/python3.9/site-packages/resolvelib/resolvers.py", line 79, in from_requirement
10:23:59 cands = build_iter_view(provider.find_matches([requirement]))
10:23:59 File "/usr/local/lib/python3.9/site-packages/ansible/galaxy/dependency_resolution/providers.py", line 214, in find_matches
10:23:59 coll_versions = self._api_proxy.get_collection_versions(first_req)
10:23:59 File "/usr/local/lib/python3.9/site-packages/ansible/galaxy/collection/galaxy_api_proxy.py", line 101, in get_collection_versions
10:23:59 return set(
10:23:59 File "/usr/local/lib/python3.9/site-packages/ansible/galaxy/collection/galaxy_api_proxy.py", line 101, in <genexpr>
10:23:59 return set(
10:23:59 File "/usr/local/lib/python3.9/site-packages/ansible/galaxy/collection/galaxy_api_proxy.py", line 82, in _get_collection_versions
10:23:59 raise last_error
10:23:59 File "/usr/local/lib/python3.9/site-packages/ansible/galaxy/collection/galaxy_api_proxy.py", line 61, in _get_collection_versions
10:23:59 versions = api.get_collection_versions(requirement.namespace, requirement.name)
10:23:59 File "/usr/local/lib/python3.9/site-packages/ansible/galaxy/api.py", line 126, in wrapped
10:23:59 return method(self, *args, **kwargs)
10:23:59 File "/usr/local/lib/python3.9/site-packages/ansible/galaxy/api.py", line 867, in get_collection_versions
10:23:59 data = self._call_galaxy(to_native(next_link, errors='surrogate_or_strict'),
10:23:59 File "/usr/local/lib/python3.9/site-packages/ansible/module_utils/api.py", line 157, in run_function
10:23:59 return call_retryable_function()
10:23:59 File "/usr/local/lib/python3.9/site-packages/ansible/galaxy/api.py", line 394, in _call_galaxy
10:23:59 path_cache = self._cache[cache_id][url_info.path]
10:23:59 KeyError: '/api/v3/plugin/ansible/content/published/collections/index/community/aws/versions/'