File "/opt/splunk/lib/python3.7/site-packages/splunk/clilib/cli_common.py", line 126, in bom_aware_readline if sys.version_info >= (3, 0): return line.decode() UnicodeDecodeError: 'utf-8' codec can't decode byte x in position y: invalid start byte
The problem is caused by non-ASCII/UTF-8 characters, that are present in your configuration and are not supported.
You can remediate the problem:
1. Either remove non-ASCII/UTF-8 characters from your configuration files.
2. Or take a backup of '$SPLUNK_HOME/lib/python3.7/site-packages/splunk/clilib/cli_common.py' and in line 127:
Add parameter to "line.decode" - either "errors='replace' ", or "errors='ignore' ".
Eg:
line.decode(errors='replace')
| Revision | Publish Date | Comments |
|---|---|---|
1.0 |
29-Sep-2026
|
Initial Release |