Skip to content

Add circuit breaker to while loop in getMatomoInfo() in newslabs header #8

@dannymeloy

Description

@dannymeloy

If the backend (/whois or /whoami endpoints) is unreachable, this results in the getMatomoInfo() function not returning / erroring, which in turn stops downstream services (ie. C&M) from being able to boot.

This appears to have occurred during testing.

A early return statement could be added or an error could be thrown if this request is unsuccessful after a number of attempts.

Note: If the request times out, whilst it shows in the network tab, the error is not thrown inside the getMatomoInfo function, so does not cause downstream services to exit.

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