Skip to content
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

POST requests fail with resources requiring authentication #459

Open
PedroVenancio opened this issue Sep 6, 2023 · 1 comment
Open

POST requests fail with resources requiring authentication #459

PedroVenancio opened this issue Sep 6, 2023 · 1 comment
Assignees
Labels
Milestone

Comments

@PedroVenancio
Copy link

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
@justb4
Copy link
Member

justb4 commented Apr 9, 2024

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

@justb4 justb4 added this to the Version 0.9.1 milestone Apr 9, 2024
@justb4 justb4 self-assigned this Apr 9, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants