geopython/GeoHealthCheck

POST requests fail with resources requiring authentication

PedroVenancio opened this issue · 1 comments

Describe the bug

Configuring an 'HTTP POST Resource URL with body' test on a WMS with basic authentication, it always fail with an error 401:

    {
      "checks": [
        {
          "check_id": 381,
          "class": "GeoHealthCheck.plugins.check.checks.HttpStatusNoError",
          "message": "HTTP Error status=401",
          "name": "HTTP status should not be errored",
          "response_time": "0.9",
          "success": false
        }
      ],
      "class": "GeoHealthCheck.plugins.probe.http.HttpPost",
      "message": "HTTP Error status=401",
      "name": "HTTP POST Resource URL with body",
      "probe_id": 139,
      "response_time": "0.288622",
      "success": false
    }

This just happen when the resource requires authentication, so it seems POST requests does not send the authentication header.

Context (please complete the following information):

  • GeoHealthCheck Version 0.9.0

@PedroVenancio should be fixed, please test and close issue. Sorry for taking so long!