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.
If the backend (
/whoisor/whoamiendpoints) is unreachable, this results in thegetMatomoInfo()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
getMatomoInfofunction, so does not cause downstream services to exit.