Giter VIP home page Giter VIP logo

Comments (4)

chris968 avatar chris968 commented on May 24, 2024 1

I use free UptimeRobot subscription and it only support HEAD requests which is lead to a 404 error on any path I've tested. (/, /healthcheck/status.json, /healthcheck/status).
I manually modified the routes.php file and it worked as expected.

/**
 * Healthchecks routes
 */
$routes->scope('/healthcheck', function ($routes) {
    $routes->setExtensions(['json']);

    $routes->connect('/status', ['prefix' => 'Healthcheck', 'controller' => 'HealthcheckStatus', 'action' => 'status'])
        ->setMethods(['GET','HEAD']);

    $routes->connect('/', ['prefix' => 'Healthcheck', 'controller' => 'HealthcheckIndex', 'action' => 'index'])
        ->setMethods(['GET']);

    $routes->connect('/error', ['prefix' => 'Healthcheck', 'controller' => 'HealthcheckError', 'action' => 'internal'])
        ->setMethods(['GET','POST', 'PUT', 'DELETE']);
});

from passbolt_api.

stripthis avatar stripthis commented on May 24, 2024

Hello, Can you give us an example of such monitoring platform? Are you doing monitoring on client side or server side? Which API endpoints you would need in particular? Currently we have a GET /healthcheck/status.json that can be used by probes, so we could add HEAD for this.

from passbolt_api.

stripthis avatar stripthis commented on May 24, 2024

Sounds good we'll add this to the v4.7.

from passbolt_api.

ishanvyas22 avatar ishanvyas22 commented on May 24, 2024

Hey @chris968, support for HEAD method is released with v4.7. Feel free to try it out and thank you for your patience.

from passbolt_api.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.