Healthcheck Wrong

Created on 9 October 2024, 2 months ago

Problem/Motivation

After installation and activation of the client_id and client_secret keys, the captcha is not displayed, the healthcheck method of the CaptchaClient file returns a 403 error

Steps to reproduce

  • install the module
  • add the keys
  • activated captchetat on a form in the front

Proposed resolution

Remaining tasks

User interface changes

API changes

Data model changes

🐛 Bug report
Status

Active

Version

2.0

Component

Code

Created by

🇫🇷France sylv

Live updates comments and jobs are added and updated live.
Sign in to follow issues

Comments & Activities

  • Issue created by @sylv
  • 🇫🇷France S3b0uN3t Nantes

    Hello,

    This module is used in several projects without problem today.

    I consider your issue and try to check it (and your patch) as soon as possible.

  • 🇫🇷France sylv

    Thank you,

    I saw the official documentation here : Api Gouv. all of other endpoints are good.

  • 🇫🇷France S3b0uN3t Nantes

    I've checked with original healtcheck API :

    In sandbox mode (with sandbox credentials) : https://sandbox-api.piste.gouv.fr/piste/captcha/healthcheck`

    array(2) {
      ["status"]=>
      string(2) "UP"
      ["components"]=>
      array(4) {
        ["captchaTestHealth"]=>
        array(1) {
          ["status"]=>
          string(2) "UP"
        }
        ["diskSpace"]=>
        array(2) {
          ["status"]=>
          string(2) "UP"
          ["details"]=>
          array(4) {
            ["total"]=>
            int(0)
            ["free"]=>
            int(0)
            ["threshold"]=>
            int(0)
            ["exists"]=>
            bool(true)
          }
        }
        ["memcachedHealth"]=>
        array(1) {
          ["status"]=>
          string(2) "UP"
        }
        ["ping"]=>
        array(1) {
          ["status"]=>
          string(2) "UP"
        }
      }
    }
    

    And in production mode (with production credentials) : `https://sandbox-api.piste.gouv.fr/piste/captcha/healthcheck` :

    array(2) {
      ["status"]=>
      string(2) "UP"
      ["components"]=>
      array(4) {
        ["captchaTestHealth"]=>
        array(1) {
          ["status"]=>
          string(2) "UP"
        }
        ["diskSpace"]=>
        array(2) {
          ["status"]=>
          string(2) "UP"
          ["details"]=>
          array(4) {
            ["total"]=>
            int(0)
            ["free"]=>
            int(0)
            ["threshold"]=>
            int(0)
            ["exists"]=>
            bool(true)
          }
        }
        ["memcachedHealth"]=>
        array(1) {
          ["status"]=>
          string(2) "UP"
        }
        ["ping"]=>
        array(1) {
          ["status"]=>
          string(2) "UP"
        }
      }
    }
    

    At the launch of V2 (in June 2024), not all APIs were available in "/v2". This apparently is now the case. I plan to migrate them all to the new version.

  • 🇫🇷France dxx Bordeaux/Paris/La Baule

    Thanks for the v2.1 just released which brings compatibility with CaptchEtat v2. This issue can now be closed.

  • 🇫🇷France dxx Bordeaux/Paris/La Baule
  • 🇫🇷France S3b0uN3t Nantes

    Thanks for your review.

    I close the issue.

Production build 0.71.5 2024