You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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.
The text was updated successfully, but these errors were encountered:
bennuttall
changed the title
Add circuit breaker to while loop in getMatomoInfo() in newslab header
Add circuit breaker to while loop in getMatomoInfo() in newslabs header
Apr 29, 2024
If the backend (
/whois
or/whoami
endpoints) 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
getMatomoInfo
function, so does not cause downstream services to exit.The text was updated successfully, but these errors were encountered: