FAQ | This is a LIVE service | Changelog

Skip to content

Pin httpie version used in trigger-renovatebot job

In https://gitlab.developers.cam.ac.uk/uis/devops/iam/activate-account/infrastructure/-/issues/87#note_1029570 it was noted that release 3.2.4 of httpie has a bug whereby it is not setting the Content-Type or Accept-Encoding headers. This is causing renovatebot triggering to fail with a HTTP 415 status.

This regression happened when the 3.2.4 image was released. Since we do not pin a known good version, we are at the mercy of bugs like this. Pin the version of httpie to 3.2.3 which has been demonstrated to function correctly.

$ docker run --rm alpine/httpie:3.2.4 --ignore-stdin \
  POST "https://europe-west2-gitlab-bots-prod-364942b0.cloudfunctions.net/renovatebot-trigger-8d99" \
  "Authorization:bearer $(gcloud auth print-identity-token)" \
  "projects[0]="
<!doctype html>
<html lang=en>
<title>415 Unsupported Media Type</title>
<h1>Unsupported Media Type</h1>
<p>Did not attempt to load JSON data because the request Content-Type was not &#39;application/json&#39;.</p>
$ docker run --rm alpine/httpie:3.2.3 --ignore-stdin \
  POST "https://europe-west2-gitlab-bots-prod-364942b0.cloudfunctions.net/renovatebot-trigger-8d99" \
  "Authorization:bearer $(gcloud auth print-identity-token)" \
  "projects[0]="
{"error": {"description": "1 validation error for RequestBody\nprojects.0\n  Assertion failed, project  is not within uis/devops group [type=assertion_error, input_value='', input_type=str]\n    For further information visit https://errors.pydantic.dev/2.11/v/assertion_error"}}
Edited by Dr Rich Wareham