Requests.get() not working in CI pipeline

Problem to solve

Dear all,

We are running the CI/CD pipeline on a Python script containing a line requests.get(urlname, verify=True). The runner fails on this line and throws the following error:

requests.exceptions.ProxyError: HTTPSConnectionPool(host='xxx.xx', port=443): Max retries exceeded with url: xxx (Caused by ProxyError('Unable to connect to proxy', OSError('Tunnel connection failed: 403 Forbidden')))

Is it possible to change the configuration of the Runner so that requests.get() does not fail?

PS: I am a user of the Enterprise Edition of GitLab and do not find any config.toml file in my account, so that I guess I am not entitled to configure the Runner myself. If possible, I guess I would then have to contact my administrator.

Thank you in advance for the assistance.

Versions

  • GitLab.com SaaS

Versions

  • GitLab: GitLab Enterprise Edition v17.5.1-ee
  • GitLab Runner: gitlab-runner 16.11.1

Generally, if you are updating your Gitlab server, then you should also be updating your Gitlab runner as well. You have Gitlab 17.5.1 installed, but your runner is way older. My runner:

root@gitlab-runner:~# dpkg -l | grep gitlab-runner
ii  gitlab-runner                   17.5.3-1                       amd64        GitLab Runner

my Gitlab version:

root@gitlab:~# rpm -qa | grep -i gitlab-ce
gitlab-ce-17.5.1-ce.0.el9.x86_64

First update your runner to match your Gitlab version to see if that resolves the problem.

Thanks for the quick reply!

I will have to check with my administrator first, as I have not installed the runner myself and am not the one managing the runner.

I will come back here once the runner is updated.

1 Like

The runner is now updated to version 17.5.3. The same issue remains…