# Unknown error when attempting to call Galaxy at 'https://galaxy.ansible.com/api/'

**URL:** <https://forum.ansible.com/t/unknown-error-when-attempting-to-call-galaxy-at-https-galaxy-ansible-com-api/4269>\
**Category:** Get Help\
**Tags:** ansible-galaxy, windows, collections, galaxy-ng\
**Created:** [March 8, 2024, 11:32am UTC](https://forum.ansible.com/t/unknown-error-when-attempting-to-call-galaxy-at-https-galaxy-ansible-com-api/4269 "2024-03-08T11:32:19Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![xpillons](https://avatars.discourse-cdn.com/v4/letter/x/dc4da7/32.png) [@xpillons](https://forum.ansible.com/u/xpillons)\
**Post date:** [March 8, 2024, 11:32am UTC](https://forum.ansible.com/t/unknown-error-when-attempting-to-call-galaxy-at-https-galaxy-ansible-com-api/4269/1 "2024-03-08T11:32:19Z")

</div>

Since yesterday I’m unable to install any galaxy component. Below is the erro being reported, the content of my requirements.yml is

```yml
collections:
  - name: ansible.windows
    source: https://galaxy.ansible.com
  - name: ansible.posix
    source: https://galaxy.ansible.com
  - name: community.windows
    source: https://galaxy.ansible.com
  - name: community.general
    source: https://galaxy.ansible.com

```

```bash
ansible-galaxy collection install -vv -r requirements.yml

ansible-galaxy [core 2.14.14]
  config file = None
  configured module search path = ['/root/.ansible/plugins/modules', '/usr/share/ansible/plugins/modules']
  ansible python module location = /az-hop/miniconda/lib/python3.12/site-packages/ansible
  ansible collection location = /root/.ansible/collections:/usr/share/ansible/collections
  executable location = /az-hop/miniconda/bin/ansible-galaxy
  python version = 3.12.1 | packaged by Anaconda, Inc. | (main, Jan 19 2024, 15:51:05) [GCC 11.2.0] (/az-hop/miniconda/bin/python3)
  jinja version = 3.1.3
  libyaml = True
No config file found; using defaults
Reading requirement file at '/az-hop/toolset/scripts/requirements.yml'
Starting galaxy collection install process
Process install dependency map
Initial connection to galaxy_server: https://galaxy.ansible.com
Opened /root/.ansible/galaxy_token
Calling Galaxy at https://galaxy.ansible.com/api/
[WARNING]: Skipping Galaxy server https://galaxy.ansible.com. Got an unexpected error when getting available versions of collection ansible.windows: Unknown error when attempting to call Galaxy
at 'https://galaxy.ansible.com/api/': HTTPSConnection. __init__ () got an unexpected keyword argument 'cert_file'. HTTPSConnection. __init__ () got an unexpected keyword argument 'cert_file'
ERROR! Unknown error when attempting to call Galaxy at 'https://galaxy.ansible.com/api/': HTTPSConnection. __init__ () got an unexpected keyword argument 'cert_file'. HTTPSConnection. __init__ () got an unexpected keyword argument 'cert_file'

```

Any idea how to fix this issue ?  
Thank you  
Xavier

---

<div class="post-metadata">

**Author:** ![xpillons](https://avatars.discourse-cdn.com/v4/letter/x/dc4da7/32.png) [@xpillons](https://forum.ansible.com/u/xpillons)\
**Post date:** [March 8, 2024, 1:40pm UTC](https://forum.ansible.com/t/unknown-error-when-attempting-to-call-galaxy-at-https-galaxy-ansible-com-api/4269/2 "2024-03-08T13:40:22Z")

</div>

This has been solved as we were using an old ansible version in our requirements.txt file, we were on 7.6. Moving to 8.5.0 and later fixed this issue.

---

<div class="post-metadata">

**Author:** ![pat-s](https://sea1.discourse-cdn.com/ansible/user_avatar/forum.ansible.com/pat-s/32/4242_2.png) [@pat-s](https://forum.ansible.com/u/pat-s)\
**Post date:** [October 4, 2024, 2:55pm UTC](https://forum.ansible.com/t/unknown-error-when-attempting-to-call-galaxy-at-https-galaxy-ansible-com-api/4269/3 "2024-10-04T14:55:56Z")

</div>

For others arriving here: I faced this error with ansible 2.14.17 - using 2.16.11 worked fine. Not sure which version exactly is the cutoff point.
