jenkins-to-graphite icon indicating copy to clipboard operation
jenkins-to-graphite copied to clipboard

cannot get jenkins response

Open volviq opened this issue 6 years ago • 1 comments

When running

./jenkins-to-graphite.py --graphite-server=graphite-ip --jenkins-url=https://jenkins-url:9443 --jenkins-user=myuser --jenkins-password=mypassword

I get the following error:

WARNING:root:Unable to get jenkins response for url computer/api/json: Invalid header value 'Basic c2JyYW5kbmVyOk0wcjFzY2huLA==\n'

I get the same, in case the "mypassword" is a wrong password.

Without any password and username I get:

WARNING:root:Unable to get jenkins response for url computer/api/json: <urlopen error [SSL: CERTIFICATE_VERIFY_FAILED] certificate verify failed (_ssl.c:661)>

In both cases the urls like: https://jenkins-url:9443/computer/api/json work well in the browser - with and without active login.

I'm using python 2.7.13

volviq avatar Apr 11 '18 14:04 volviq

Hi, this solution (https://stackoverflow.com/questions/42098126/mac-osx-python-ssl-sslerror-ssl-certificate-verify-failed-certificate-verify) helps me to resolve a similar issue on OSX and python3. might it can be useful for you

mimin0 avatar May 18 '18 09:05 mimin0