-
Notifications
You must be signed in to change notification settings - Fork 9
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Jenkins version example gives error "TypeError: string indices must be integers" #5
Comments
Hello! Thanks for bugreport, which version of Jenkins and package are you using? |
Jenkins 2.332.3 and ujenkins 0.3.0 |
@manox I've installed same versions using docker, but all is okay. Could you please add print to 152 line of response = self._http_request('GET', CRUMB_ISSUER_URL)
print(response) And to ``/usr/local/lib/python3.9/dist-packages/ujenkins/core.py` in 43 line print(response.headers)
if 'application/json' in response.headers.get('Content-Type', ''): It seems somehow Jenkins returns header without json and it's unpacked from str to json. Where is your Jenkins server, maybe some proxy is using? |
First of all, thanks for the help. The Jenkins server is local on the network and I access it via a local IP. I used a Jenkins image that I believe has a reverse proxy built in.
Edit: I just noticed that it works when attaching the port (8080) to the server address. Problem is therefore solved. Thanks! |
@manox anyway there is bug in package, it's because of redirect is not processed, could you share please your reverse proxy config of apache? |
OK, sure.
|
@manox fixed in https://github.com/pbelskiy/ujenkins/releases/tag/v0.3.3 please check it |
At first it was not possible to install the package from the sources. I had to add the encoding in
Now when I try to reach the server without specifying the port the following happens. Since it is only a local test setup I have not installed an SSl certificate.
|
Thanks for another issue. About your problem, you can disable ssl check using Jenkins(..., verify=False) |
Thanks, it works when disabling ssl checks. |
* enable http redirects by default pbelskiy/ujenkins#5 * disable restart test * ignore location existss * disable test
When running the sync Jenkins version example (https://github.com/pbelskiy/ujenkins#usage) I get the following errror. What am i doing wrong?
The text was updated successfully, but these errors were encountered: