I want to list all the issues in a github repository.
Python3 code:
import gitlab
gl = gitlab.Gitlab('https://git.myinternalsite.com/project', private_token='XXXXXXXXXXXXXXX', api_version=4)
issues = gl.issues.list()
This generates the following error:
SSLError: HTTPSConnectionPool(host='git.zonetrading.com', port=443): Max retries exceeded with url: /cloudquant/user-issues/api/v4/issues (Caused by SSLError(SSLError("bad handshake: Error([('SSL routines', 'ssl3_get_server_certificate', 'certificate verify failed')],)",),))
Any ideas on how to correct the error?
The problem seems to be a faulty configured webserver.
The TLS certificate is only certified for the domain www.parkingcrew.com
and not for git.zonetrading.com
this leads to the certificate verify failed
error.
To fix this you have to request a new certificate which includes the target domain, in this case git.zonetrading.com
.
To confirm this is the only error, you can turn off the certificate verification in the client using the ssl_verify
parameter.
gl = gitlab.Gitlab('https://git.myinternalsite.com/project', private_token='XXXXXXXXXXXXXXX', api_version=4, ssl_verify=False)
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With