pyjolokia icon indicating copy to clipboard operation
pyjolokia copied to clipboard

Authentication fails

Open Yoiro opened this issue 7 years ago • 0 comments

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()

Yoiro avatar Dec 27 '17 09:12 Yoiro