Insights fails to register during provisioning with UnicodeEncodeError: 'ascii' codec can't encode character '\ufffd' in position 94: ordinal not in range(128)
Issue
- Insights fails to register during provisioning (in
%post
section of the kickstart profile):
# insights-client --register --verbose
--- Logging error ---
Traceback (most recent call last):
File "/usr/lib64/python3.6/logging/__init__.py", line 996, in emit
stream.write(msg)
UnicodeEncodeError: 'ascii' codec can't encode character '\ufffd' in position 94: ordinal not in range(128)
Call stack:
File "/usr/lib/python3.6/site-packages/insights_client/run.py", line 18, in <module>
sys.exit(phase())
File "/etc/insights-client/rpm.egg/insights/client/phase/v1.py", line 32, in _f
func(client, config)
File "/etc/insights-client/rpm.egg/insights/client/phase/v1.py", line 129, in update
client.update()
File "/etc/insights-client/rpm.egg/insights/client/__init__.py", line 258, in update
egg_paths = self.fetch()
File "/etc/insights-client/rpm.egg/insights/client/__init__.py", line 157, in fetch
force)
File "/etc/insights-client/rpm.egg/insights/client/__init__.py", line 72, in _init_connection
return func(self, *args, **kwargs)
File "/etc/insights-client/rpm.egg/insights/client/__init__.py", line 208, in _fetch
response = self.connection.get(url)
File "/etc/insights-client/rpm.egg/insights/client/connection.py", line 195, in get
return self._http_request(url, 'GET', **kwargs)
File "/etc/insights-client/rpm.egg/insights/client/connection.py", line 191, in _http_request
logger.log(NETWORK, "HTTP Response Text: %s", res.text)
Message: 'HTTP Response Text: %s'
Environment
- Red Hat Enterprise Linux 8.5
- insights-client version 3.1.7-1.el8_5
Subscriber exclusive content
A Red Hat subscription provides unlimited access to our knowledgebase, tools, and much more.