pyjolokia
pyjolokia copied to clipboard
Authentication fails
When trying to call Jolokia with authentication, I'm always getting a 403. By searching a bit into the pyjolokia.py file, I figured that the base64 string is not well encoded:
print(request.headers) in the function _getJson gives this result:
{'Content-type': 'application/json', 'Authorization': "Basic b'[myAuth]'"}
I found a workaround solution by putting this (pyjolokia.py, line 125):
authheader = "Basic %s" % base64string.decode()