Skip to content

TypeError from HealthcheckResult #15

@Rid

Description

@Rid

In certain circumstances, we can see the following error:

PHP Fatal error: Uncaught TypeError: Docker\API\Model\HealthcheckResult::setStart(): Argument #1 ($start) must be of type ?DateTimeInterface, bool given, called in /usr/local/cylo-serverapi/vendor/beluga-php/docker-php-api/src/Normalizer/HealthcheckResultNormalizer.php on line 47 and defined in /usr/local/cylo-serverapi/vendor/beluga-php/docker-php-api/src/Model/HealthcheckResult.php:63

I'm not 100% certain what the circumstances are to reproduce the error yet, it may be a fresh container which has not run a healthcheck yet, in which case returning a boolean is not documented in the docker swagger: https://github.com/moby/moby/blob/217054ddea5517d391b69c4826b3a4cfa393b1e6/api/swagger.yaml#L852

If it is intended behaviour the swagger file will need to be updated.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions