Shubham Sharma created AMBARI-26062:
---------------------------------------
Summary: Fix python3 type encoding error on configs script
Key: AMBARI-26062
URL: https://issues.apache.org/jira/browse/AMBARI-26062
Project: Ambari
Issue Type: Bug
Components: ambari-server
Affects Versions: 3.0.0
Reporter: Shubham Sharma
Fix For: 3.0.0
Recent applied enhancement to integrate python3 AMBARI-26000
has caused failure in updated encoder handler while fetching and pushing back
config modifications.
{code:java}
Traceback (most recent call last):
File "/var/lib/ambari-server/resources/scripts/configs.py", line 112, in
do_request
response = urllib.request.urlopen(request)
File "/usr/lib64/python3.9/urllib/request.py", line 214, in urlopen
return opener.open(url, data, timeout)
File "/usr/lib64/python3.9/urllib/request.py", line 514, in open
req = meth(req)
File "/usr/lib64/python3.9/urllib/request.py", line 1277, in do_request_
raise TypeError(msg)
TypeError: POST data should be bytes, an iterable of bytes, or a file object.
It cannot be of type str. {code}
--
This message was sent by Atlassian Jira
(v8.20.10#820010)
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]