module_utils/urls.py: TypeError: a bytes-like object is required, not 'str' #31109
Labels
affects_2.4
This issue/PR affects Ansible v2.4
bug
This issue/PR relates to a bug.
c:module_utils/urls
python3
support:core
This issue/PR relates to code supported by the Ansible Engineering Team.
Projects
ISSUE TYPE
COMPONENT NAME
ansible/module_utils/urls.py
ANSIBLE VERSION
CONFIGURATION
No configuration
OS / ENVIRONMENT
Debian stretch
Python 3.5.4
SUMMARY
When running a playbook with a
uri
task and havinghttps_proxy
environment variable set, the task fails with:TypeError: a bytes-like object is required, not 'str'
Running the same task but without
https_proxy
succeeds.STEPS TO REPRODUCE
EXPECTED RESULTS
The task successfully retrieves the URL.
ACTUAL RESULTS
The text was updated successfully, but these errors were encountered: